> Part of the Rephonic API reference. The full list of pages is at https://rephonic.com/llms.txt.

# Chart Rankings

> The latest chart for one platform, country and category.

```
GET https://api.rephonic.com/api/charts/{platform}/{country}/{category}/
```

Get a whole chart, such as the top comedy podcasts on Apple Podcasts in the United States. Each row has the podcast's place and how many places it moved since the previous chart. Charts update once a day.

A YouTube chart can include shows that aren't in Rephonic yet. Their rows still have the show's name and publisher from the chart, but `id`, `itunes_id` and `publisher.id` are `null`, `genres` is empty and the artwork is a placeholder. You can't pass these shows to the other endpoints.

## Parameters

| Field | In | Description | Default | Max | Required |
|-------|----|-------------|---------|-----|----------|
| platform | path | The app whose charts you want. One of `apple`, `spotify`, `youtube`. |  |  | Yes |
| country | path | The country's slug, e.g. `united-states`. Get it from [chart categories](https://rephonic.com/developers/docs/1.1/chart-categories.md). |  |  | Yes |
| category | path | The category's slug, e.g. `comedy`, from [chart categories](https://rephonic.com/developers/docs/1.1/chart-categories.md). Use `all` for the country's top chart on Apple Podcasts and Spotify. YouTube has one chart per country, `popular-podcasts`. |  |  | Yes |

## Response Fields

- `podcasts` (array of objects): The podcasts in the chart, in order.
  - `id` (string or null): The podcast's Rephonic ID. It's `null` for a show on a YouTube chart that isn't in Rephonic.
  - `name` (string or null): The podcast's name.
  - `itunes_id` (integer or null): The podcast's Apple Podcasts ID. It's `null` for a show on a YouTube chart that isn't in Rephonic.
  - `publisher` (object)
    - `id` (string or null): The publisher's Rephonic ID. It's `null` for a show on a YouTube chart that isn't in Rephonic.
    - `name` (string or null): The publisher's name.
  - `genres` (array of strings): The Apple Podcasts categories the show is in, main category first.
  - `artwork_url` (string): The cover art, 600 by 600 pixels.
  - `artwork_thumbnail_url` (string): The cover art, 70 by 70 pixels.
  - `active` (boolean or null): Whether the show published an episode in the last 60 days.
  - `sponsors` (object)
    - `accepted` (boolean or null): Whether the show takes sponsors. It's `null` when we haven't analysed the show yet.
  - `guests` (object)
    - `accepted` (boolean or null): Whether the show is likely to take guests. It's `null` when we haven't analysed the show yet.
  - `position` (integer): The podcast's place in the chart, starting at 1.
  - `change` (integer or null): How many places the podcast moved since the previous chart. Positive means it went up. It's `null` when we can't compare, e.g. the podcast is new to the chart or isn't in Rephonic.

## Example Request

```bash
curl https://api.rephonic.com/api/charts/apple/united-states/all/ \
  -H "X-Rephonic-Api-Key: YOUR_API_KEY"
```

## Example Response

```json
{
  "podcasts": [
    {
      "id": "strike-force-five",
      "name": "Strike Force Five",
      "itunes_id": 1704871055,
      "publisher": {
        "id": "strike-force-five",
        "name": "Strike Force Five"
      },
      "genres": ["Comedy"],
      "artwork_url": "https://img.rephonic.com/placeholder.jpg?width=600&height=600&quality=95",
      "artwork_thumbnail_url": "https://img.rephonic.com/placeholder.jpg?width=70&height=70&quality=95",
      "active": true,
      "sponsors": {
        "accepted": true
      },
      "guests": {
        "accepted": true
      },
      "position": 1,
      "change": 2
    },
    {
      "id": "the-daily",
      "name": "The Daily",
      "itunes_id": 1200361736,
      "publisher": {
        "id": "the-new-york-times",
        "name": "The New York Times"
      },
      "genres": ["News", "Daily News"],
      "artwork_url": "https://img.rephonic.com/artwork/the-daily.jpg?width=600&height=600&quality=95",
      "artwork_thumbnail_url": "https://img.rephonic.com/artwork/the-daily.jpg?width=70&height=70&quality=95",
      "active": true,
      "sponsors": {
        "accepted": true
      },
      "guests": {
        "accepted": true
      },
      "position": 3,
      "change": null
    }
  ]
}
```
