Songs API
The Songs API provides access to trending songs data, chart rankings, and historical performance across different countries and time periods.Pricing
Each API call costs 10 credits, regardless of the action performed.Authentication
All requests require an API key passed in thex-ty-api-key header.
Available Actions
The Songs API uses anaction parameter to determine what data to retrieve:
| Action | Description | Required Parameters |
|---|---|---|
countries | Get list of available countries | None |
weeks | Get available weeks for a country | country_code |
date-ranges | Get available date ranges | None |
rankings | Get song rankings for a country | country, optional: week |
global | Get global song rankings | Optional: week |
new-entries | Get new chart entries for a country | country |
search | Search for songs | q |
song-history | Get historical data for a song | song_id, country_code |
compare | Compare rankings between two weeks | country, week1, week2 |
Action Examples
Get Available Countries
Get Available Weeks
Get Rankings for a Country
Get Global Rankings
Get New Chart Entries
Search Songs
Get Song History
Compare Two Weeks
Response Format
All responses follow this structure:Week Format
Weeks are specified in ISO week format:YYYY-Www
YYYY- Four digit yearW- Literal “W”ww- Two digit week number (01-53)
2026-W01- First week of 20262026-W04- Fourth week of 20262025-W52- Last week of 2025
