Genre breakdown
GET https://api.rewind.rest/v1/listening/genres
Returns a genre breakdown over time, grouped by period and designed for stacked bar charts.
Authorization
AuthorizationrequiredAPI key. Read keys (rw_live_...) access GET endpoints. Admin keys (rw_admin_...) access all endpoints.
Query Parameters
dateSingle day (YYYY-MM-DD). Overrides from/to.
fromRange start, inclusive (ISO 8601)
toRange end, inclusive (ISO 8601)
group_byAllowed values
weekmonthyearlimitMax genres to return (rest grouped as "Other")
compare_toWhen set to previous_year, returns a compare array with the same shape as data but for the window shifted back one year. Requires from + to or date to be set; ignored otherwise.
Allowed values
previous_yearResponse
application/json
Genre breakdown by period
datarequiredcompare