Appearance
Charts
All paths are under /v1, public (no token needed), and Cache-Control: public, max-age=300. Charts are computed by scheduled jobs from qualified streams (suspected fraud excluded): daily for the previous UTC day at 01:30, weekly (Monday to Sunday) every Monday at 02:45. Scopes: global, country (needs country, ISO alpha-2), genre (needs genreId). listeners sums daily distinct listeners across the period and countries (listener-days).
| Method | Path | Query | Response | Errors |
|---|---|---|---|---|
| GET | /charts | kind? (daily/weekly), scope? | { items: ChartView[] }, every chart of the newest period | VALIDATION_FAILED |
| GET | /charts/latest | kind?, scope?, country?, genreId? | ChartView | CHART_NOT_FOUND, VALIDATION_FAILED |
| GET | /charts/history | kind?, scope?, country?, genreId?, cursor?, limit? | page of ChartView, newest first | VALIDATION_FAILED, PAGINATION_CURSOR_INVALID |
| GET | /charts/:chartId/entries | cursor?, limit? (≤100) | page of ChartEntry by rank | CHART_NOT_FOUND, PAGINATION_CURSOR_INVALID |
ChartView: { id, kind, scope, countryCode|null, genreId|null, periodStart, periodEnd (exclusive), entryCount, publishedAt }.
ChartEntry: { rank, recordingId, streams, listeners, previousRank|null, peakRank, periodsOnChart, movement: new|re_entry|up|down|same }. Entries name recordings only; clients load recording details from the catalogue in one batch.