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

# Trends

> The history of a podcast's social reach and Spotify followers.

```
GET https://api.rephonic.com/api/trends/
```

See how the social reach and Spotify followers of up to three podcasts have changed over time. Each metric is a list of `[unix_timestamp, value]` pairs, newest first, going back up to five years. Every value except the newest is an average of the readings around it.

## Parameters

| Field | In | Description | Default | Max | Required |
|-------|----|-------------|---------|-----|----------|
| podcast_ids | query | Up to three podcast IDs, separated by commas. |  |  | Yes |
| metrics | query | Which metrics you want, separated by commas. It takes `social_reach`, `spotify_followers` or both. |  |  | Yes |

## Response Fields

- `trends` (object): The history of each podcast you asked for, keyed by its ID. A metric we have no data for is left out.
  - `{podcast_id}` (object)
    - `social_reach` (array of arrays, sometimes absent): The show's social reach over time, newest first. See `social_reach` on [get a podcast](https://rephonic.com/developers/docs/1.1/get-podcast.md).
    - `spotify_followers` (array of arrays, sometimes absent): The show's Spotify followers over time, newest first.

## Example Request

```bash
curl -G https://api.rephonic.com/api/trends/ \
  -H "X-Rephonic-Api-Key: YOUR_API_KEY" \
  --data-urlencode "podcast_ids=climate-one" \
  --data-urlencode "metrics=social_reach,spotify_followers"
```

## Example Response

```json
{
  "trends": {
    "climate-one": {
      "spotify_followers": [
        [1690643855, 16000],
        [1681155421, 15000],
        [1669679979, 14000]
      ],
      "social_reach": [
        [1690643855, 500000],
        [1681155421, 495000],
        [1669679979, 490000]
      ]
    }
  }
}
```
