Get Apple Music Track Charts

​

Return tracks charting on Apple Music for a given date. Supports type = top / daily / city; city requires city_id, and every other type requires country_code. genre applies to top only and defaults to All Genres — Apple Music's own un-segmented chart, ranked alongside the per-genre ones rather than combining them. Entries combine chart position + historical rankStats with the track basic info. The top S3-backed chart path applies pagination after the fetch.

Query Parameters

  • Date for the time-slice (YYYY-MM-DD). Required unless latest=true.

  • Apple Music chart type. genre applies to top only; city requires city_id instead of country_code.

  • Chart genre filter. Defaults to the un-segmented 'All Genres' chart when omitted.

  • Chartmetric city ID. Required when type=city to scope the chart to a city.

  • ISO 3166-1 alpha-2 country code (uppercase, e.g. 'US') or the literal 'GLOBAL' for cross-country charts.

  • Number of items to skip from the start of the result set; pair with limit to paginate.

  • If true, use the most recently available date and ignore date.

Responses

  • application/json
Request Example for get/api/charts/applemusic/tracks
curl 'https://api.chartmetric.com/api/charts/applemusic/tracks?type=top' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{
  "obj": {
    "length": 1,
    "data": [
      {
        "id": 15678739,
        "name": "Angels",
        "isrc": "USRC11700153",
        "image_url": "https://i.scdn.co/image/5026fddc",
        "cm_track": 15678739,
        "itunes": 12345,
        "rank": 5,
        "pre_rank": 7,
        "peak_rank": 1,
        "peak_date": "2024-02-01T00:00:00.000Z",
        "added_at": "2024-05-01T00:00:00.000Z",
        "chart_type": "top",
        "chart_name": "Top Tracks",
        "code2": "US",
        "country": "United States",
        "velocity": 0.1,
        "time_on_chart": "10 days",
        "rankStats": [
          {
            "rank": 5,
            "timestp": "2024-05-01T00:00:00.000Z"
          }
        ],
        "artist_names": [
          "Khalid"
        ],
        "cm_artist": [
          209693
        ],
        "itunes_artist_ids": [
          "479756766"
        ],
        "track_genre": "pop"
      }
    ]
  }
}