Skip to main content

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 the x-ty-api-key header.

Available Actions

The Songs API uses an action parameter to determine what data to retrieve:

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 year
  • W - Literal “W”
  • ww - Two digit week number (01-53)
Examples:
  • 2026-W01 - First week of 2026
  • 2026-W04 - Fourth week of 2026
  • 2025-W52 - Last week of 2025

Error Handling

If required parameters are missing, you’ll receive a helpful error response:

Get Songs Data

Access trending songs data with various actions. Use the `action` parameter to specify what data to retrieve.