---
title: "Get Deezer Top-Track Chart"
method: GET
path: "/api/charts/deezer"
tags: ["Charts"]
---

# Get Deezer Top-Track Chart

`GET /api/charts/deezer`

## Request

- Base URL: `https://api.chartmetric.com`
- URL: `https://api.chartmetric.com/api/charts/deezer`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/chartmetric/apis/chartmetric-developer-api/docs/api/charts/deezer/get.ts> (a function with typed inputs; its response is checked against the schema)

Return the Deezer top-track chart for a given `country_code` and `date`. Each row merges track-basic-info (from `Track.getBasicInfoBatch`) with the chart row from `QUERY_GET_DEEZER_CHARTS` and the per-track `rankStats` history.

## Query parameters

- `country_code` string, required: ISO 3166-1 alpha-2 country code (2 letters, e.g. 'US', 'BR', 'GB').
- `date` string, date-time: Date for the time-slice (YYYY-MM-DD). Required unless `latest=true`.
- `latest` boolean: If true, use the most recently available date and ignore `date`.

## Response `200`

Success

- object
  - `obj` object, required
    - `length` integer, required: Number of chart rows in `data`.
    - `data` object[], required: Chart rows ordered by rank (1 = highest).
      - `id` union: Deezer track ID.
        - integer
        - string
      - `deezer` integer, nullable: Internal Deezer chart row ID.
      - `deezer_album` union: Deezer album ID or album-info object.
        - object
        - number, float
        - string
      - `deezer_artist_names` string[], nullable: Deezer artist names.
      - `deezer_artist_ids` string[], nullable: Deezer artist IDs.
      - `deezer_track_ids` string[], nullable: Deezer track IDs.
      - `deezer_album_ids` string[], nullable: Deezer album IDs.
      - `rank` integer, nullable: Current chart rank (1 = top).
      - `added_at` string, date-time, nullable: Timestamp the chart row was inserted.
      - `code2` string, nullable: Chart country code (ISO 3166-1 alpha-2).
      - `velocity` number, float, nullable: Rank-velocity signal (positive = climbing).
      - `pre_rank` integer, nullable: Position on the previous chart period.
      - `peak_rank` integer, nullable: Best (lowest-numbered) rank reached.
      - `peak_date` string, date-time, nullable: Date `peak_rank` was achieved.
      - `time_on_chart` union: Length of time on the chart (integer count of periods or duration string).
        - integer
        - string
      - `rankStats` object[], nullable: Per-row historical rank samples.
        - `rank` integer, nullable: Rank at `timestp` (1 = top).
        - `timestp` string, date-time, nullable: Timestamp at which the rank was recorded.
      - `cm_track` integer, nullable: Chartmetric track ID.
      - `name` string, nullable: Track name.
      - `isrc` string, nullable: International Standard Recording Code.
      - `image_url` string, nullable: Track or album cover image URL.
      - `cm_artist` union: Chartmetric artist ID(s) — single value or array depending on platform.
        - integer
        - integer[]
      - `artist_names` string[], nullable: Track artist names.
      - `code2s` string[], nullable: Country codes per artist (ISO 3166-1 alpha-2).
      - `artist_images` string[], nullable: Artist profile image URLs.
      - `artist_covers` string[], nullable: Artist cover image URLs.
      - `album_ids` integer[], nullable: Chartmetric album IDs.
      - `album_names` string[], nullable: Album names.
      - `album_upc` string[], nullable: Album UPC values.
      - `album_label` string[], nullable: Record labels for the album(s).
      - `release_dates` string[], nullable: Album release dates.
      - `artists` object[], nullable: Normalized artist info objects for the track.
        - `id` integer, nullable: Chartmetric artist ID.
        - `name` string, nullable: Artist name.
        - `code2` string, nullable: Artist country code (ISO 3166-1 alpha-2).
        - `image_url` string, nullable: Artist image URL.
        - `career_stage` string, nullable: Artist career stage (e.g. `undiscovered`, `developing`, `mid-level`, `mainstream`, `superstar`, `legendary`).
      - `album` union: Album info object (or array of objects) associated with the track.
        - object[]
        - object
      - `duration_ms` integer, nullable: Track duration in milliseconds.
      - `explicit` boolean, nullable: Whether the track is flagged as explicit.
      - `preview_url` string, nullable: Audio preview URL.
      - `track_genre` union: Track genre(s) — string or array of strings.
        - string
        - unknown[]
          - unknown
      - `spotify_popularity` integer, nullable: Spotify popularity score (0–100).

---

[API](https://skmtc.dev/chartmetric/apis/chartmetric-developer-api.md) - [All operations](https://skmtc.dev/chartmetric/apis/chartmetric-developer-api/llms.txt) - [OpenAPI document](https://skmtc.dev/chartmetric/apis/chartmetric-developer-api/revisions/94dac96833a3?raw)
