Get Track Stats by Platform
Return historical stats for a track on a platform. mode selects the aggregation bucket. platform accepts chartmetric, spotify, youtube, tiktok, etc. type query param selects the stat column (e.g. streams, popularity). Wrapped in a single-element array under obj.
Request
- Base URLhttps://api.chartmetric.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
Streaming platform whose stats to retrieve. One of shazam, spotify, youtube, tiktok, genius, soundcloud, chartmetric, line, melon, radio.
Selection algorithm when multiple platform tracks map to one Chartmetric track. highest-playcounts picks the most-played; most-history picks the longest-tracked.
Query parameters
Inclusive start of the stat date range in YYYY-MM-DD format. Defaults to 180 days before today.
Inclusive end of the stat date range in YYYY-MM-DD format. Defaults to today.
If true, return only the most recent data point regardless of since/until.
If true, fill gaps in the time series with interpolated values to produce a smooth curve. Not applicable for Spotify.
If true, treat id as a platform-native ID rather than a Chartmetric track ID. Defaults to false.
Extrapolation mode for projecting values outside the observed range. One of before, after, both.
Response
Success
Changes
No recorded changes to this operation across all 1 revision of this API.