curl --request GET \
--url https://api.rewind.rest/v1/listening/genres \
--header 'Authorization: Bearer <token>'{
"data": [
{
"period": "2026-01",
"genres": {
"Rock": 245,
"Hip-Hop": 112,
"Electronic": 87,
"Other": 89
},
"total": 533
},
{
"period": "2026-02",
"genres": {
"Pop": 180,
"Rock": 150,
"Hip-Hop": 95,
"Other": 76
},
"total": 501
},
{
"period": "2026-03",
"genres": {
"Grunge": 120,
"Rock": 110,
"Pop": 90,
"Other": 67
},
"total": 387
}
]
}Returns genre breakdown over time, grouped by period. Designed for stacked bar charts. Pass compare_to=previous_year to also receive the same window shifted back by one year as a compare array — useful for ghost-overlay charts that need both windows in a single round trip.
curl --request GET \
--url https://api.rewind.rest/v1/listening/genres \
--header 'Authorization: Bearer <token>'{
"data": [
{
"period": "2026-01",
"genres": {
"Rock": 245,
"Hip-Hop": 112,
"Electronic": 87,
"Other": 89
},
"total": 533
},
{
"period": "2026-02",
"genres": {
"Pop": 180,
"Rock": 150,
"Hip-Hop": 95,
"Other": 76
},
"total": 501
},
{
"period": "2026-03",
"genres": {
"Grunge": 120,
"Rock": 110,
"Pop": 90,
"Other": 67
},
"total": 387
}
]
}Documentation Index
Fetch the complete documentation index at: https://docs.rewind.rest/llms.txt
Use this file to discover all available pages before exploring further.
API key. Read keys (rw_live_...) access GET endpoints. Admin keys (rw_admin_...) access all endpoints.
Single day (YYYY-MM-DD). Overrides from/to.
^\d{4}-\d{2}-\d{2}$"2025-02-17"
Range start, inclusive (ISO 8601)
"2025-02-01T00:00:00Z"
Range end, inclusive (ISO 8601)
"2025-02-28T23:59:59Z"
week, month, year "month"
Max genres to return (rest grouped as "Other")
1 <= x <= 5010
When 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.
previous_year "previous_year"