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

# Rephonic API

> Start here to get set up and make your first request.

## Introduction

The Rephonic API has data on millions of podcasts. You can search podcasts and episodes, and get each podcast's listener estimates, audience demographics, contacts, transcripts, reviews and chart positions.

**Base URL:** `https://api.rephonic.com`

You need a Rephonic API subscription to use it. The plans are on the [developers page](https://rephonic.com/developers#pricing).

## Your First Request

Send your API key in the `X-Rephonic-Api-Key` header. Here's a request for Huberman Lab's details, using its Rephonic ID, `huberman-lab`.

```bash
curl https://api.rephonic.com/api/podcasts/huberman-lab/ \
  -H "X-Rephonic-Api-Key: YOUR_API_KEY"
```

[Podcast IDs](#podcast-ids) explains how to find a podcast's ID.

## Authentication

Your API key comes with your API plan. You'll find it in the Rephonic API section of your [account settings](https://rephonic.com/account). Send it in the `X-Rephonic-Api-Key` header with every request. If it's missing or wrong, you'll get a `401` error.

Treat your key like a password. Call the API from your own server rather than from a web page or mobile app, where other people could see it.

## Versions

The current version is `1.1`. Any change that could break your code comes out as a new version, so your integration keeps working until you choose to upgrade.

When you sign up for the API, your account is set to the latest version, and your requests use it. Your [account page](https://rephonic.com/account) shows your version, and your team's owner or an administrator can upgrade there when a new one comes out.

To try a different version on a request, send it in the `X-Rephonic-Api-Version` header. The response has the same header, so you can see which version answered. If you ask for a version that doesn't exist, or one older than your account's, you'll get a `400` error.

## Errors and Limits

When a request fails, the response is a JSON object with an `error` key that says what went wrong:

```json
{ "error": "Podcast not found." }
```

| Status | Meaning                                                                                                                                       |
| ------ | --------------------------------------------------------------------------------------------------------------------------------------------- |
| `400`  | The request is wrong, e.g. a missing parameter or a podcast that doesn't exist, or you've used up your monthly quota. The message says which. |
| `401`  | The API key is missing, or we don't recognise it.                                                                                             |
| `429`  | You hit the rate limit.                                                                                                                       |

### Rate Limits

Rate limits are per API key, per minute. Most endpoints allow 60 requests a minute, with these exceptions:

| Endpoint                                                                                                                                                                                          | Requests per minute |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------- |
| [Search episodes](https://rephonic.com/developers/docs/1.1/search-episodes.md)                                                                                                                                   | 120                 |
| [Graph](https://rephonic.com/developers/docs/1.1/audience-graph.md)                                                                                                                                              | 30                  |
| [List episodes](https://rephonic.com/developers/docs/1.1/list-episodes.md), [get an episode](https://rephonic.com/developers/docs/1.1/get-episode.md) and [episode transcript](https://rephonic.com/developers/docs/1.1/episode-transcript.md) | 60 between them     |
| [Chart categories](https://rephonic.com/developers/docs/1.1/chart-categories.md) and [chart rankings](https://rephonic.com/developers/docs/1.1/chart-rankings.md)                                                               | 60 between them     |

If you go over, you get a `429` error. Wait a minute and try again.

### Monthly Quota

Your plan includes a set number of requests each month. We only count requests that succeed, so errors don't use any of it. Once you've used it all, you get a `400` error until it resets at the start of the next calendar month (UTC).

[API quota](https://rephonic.com/developers/docs/1.1/quota.md) shows how much you've used.

## Podcast IDs

Every podcast has a Rephonic ID, a short slug like `huberman-lab` or `the-daily`. A podcast's ID never changes, even if the show is renamed, so you can store it. Most endpoints take it, either in the URL, as in `/api/podcasts/huberman-lab/`, or in the `podcast_id` parameter.

### Finding an ID

- If you know the podcast's Apple Podcasts ID, Spotify ID, YouTube channel ID or RSS feed URL, [look it up](https://rephonic.com/developers/docs/1.1/lookup-podcast.md).
- Otherwise, [search](https://rephonic.com/developers/docs/1.1/search-podcasts.md) by topic, title or publisher. Each result has the podcast's `id`.

The podcasts in episode search results, chart rankings, similar podcasts and the audience graph have the same IDs.

### Episode IDs

Episodes have their own Rephonic IDs, like `kzaca-huberman-lab-dr-brian-keating-charting-the-a`. You get them from [episode search](https://rephonic.com/developers/docs/1.1/search-episodes.md), [list episodes](https://rephonic.com/developers/docs/1.1/list-episodes.md) or a podcast's `latest_episode`, and pass them to [get an episode](https://rephonic.com/developers/docs/1.1/get-episode.md) and [episode transcript](https://rephonic.com/developers/docs/1.1/episode-transcript.md).

## Other Ways to Use the API

- [Python SDK and CLI](https://github.com/getrephonic/rephonic-python): a Python method for every endpoint, and the `rephonic` command-line tool. Install them with `pip install rephonic`.
- [MCP server](https://rephonic.com/developers/mcp): connect Claude, ChatGPT or another AI assistant to the same data.
- [llms.txt](https://rephonic.com/llms.txt) and [llms-full.txt](https://rephonic.com/llms-full.txt): this reference as Markdown, for AI agents and LLMs.
- [OpenAPI spec](https://rephonic.com/openapi.json): this reference as an OpenAPI 3.1 file, to import into Postman or a client generator.

## Endpoints

- `GET /api/search/podcasts/` - [Search Podcasts](https://rephonic.com/developers/docs/1.1/search-podcasts.md): Search podcasts by topic, title or publisher, with optional filters.
- `GET /api/search/episodes/` - [Search Episodes](https://rephonic.com/developers/docs/1.1/search-episodes.md): Search episode titles, show notes and transcripts.
- `GET /api/search/autocomplete/` - [Autocomplete](https://rephonic.com/developers/docs/1.1/autocomplete.md): Suggestions as someone types a search.
- `GET /api/podcasts/lookup/` - [Find a Podcast's ID](https://rephonic.com/developers/docs/1.1/lookup-podcast.md): From an Apple, Spotify or YouTube ID, or an RSS feed URL.
- `GET /api/podcasts/{id}/` - [Get a Podcast](https://rephonic.com/developers/docs/1.1/get-podcast.md): One podcast's details, including subscriber counts and how to pitch it.
- `GET /api/podcasts/{id}/people/` - [Hosts, Guests and Crew](https://rephonic.com/developers/docs/1.1/podcast-people.md): Hosts, guests and crew, with their contacts.
- `GET /api/podcasts/{id}/demographics/` - [Demographics](https://rephonic.com/developers/docs/1.1/podcast-demographics.md): Estimates of the listeners' age, location, income, education, jobs and interests.
- `GET /api/podcasts/{id}/promotions/` - [Sponsors and Cross-Promos](https://rephonic.com/developers/docs/1.1/podcast-promotions.md): Sponsors and cross-promotions, with the full ad reads.
- `GET /api/podcasts/{id}/rankings/` - [Rankings](https://rephonic.com/developers/docs/1.1/podcast-rankings.md): The podcast's current Apple Podcasts, Spotify and YouTube chart positions.
- `GET /api/episodes/` - [List Episodes](https://rephonic.com/developers/docs/1.1/list-episodes.md): List a podcast's episodes, newest first.
- `GET /api/episodes/{id}/` - [Get an Episode](https://rephonic.com/developers/docs/1.1/get-episode.md): Episode details, including topics, guests and key moments.
- `GET /api/episodes/{id}/transcript/` - [Episode Transcript](https://rephonic.com/developers/docs/1.1/episode-transcript.md): Full episode transcript, with speaker names where we know them.
- `GET /api/contacts/` - [Contacts](https://rephonic.com/developers/docs/1.1/contacts.md): A podcast's email addresses, contact pages and social accounts.
- `GET /api/social/accounts/` - [Social Accounts](https://rephonic.com/developers/docs/1.1/social-accounts.md): Social media accounts and their follower numbers.
- `GET /api/feedback/` - [Ratings and Feedback](https://rephonic.com/developers/docs/1.1/feedback.md): Ratings and review counts in each podcast app, and a summary of the reviews.
- `GET /api/reviews/` - [Reviews](https://rephonic.com/developers/docs/1.1/reviews.md): Listener reviews from each podcast app, newest first.
- `GET /api/trends/` - [Trends](https://rephonic.com/developers/docs/1.1/trends.md): The history of a podcast's social reach and Spotify followers.
- `GET /api/similar/graph/` - [Graph](https://rephonic.com/developers/docs/1.1/audience-graph.md): Shows that share listeners with a given podcast.
- `GET /api/charts/{platform}/` - [Chart Categories](https://rephonic.com/developers/docs/1.1/chart-categories.md): The chart categories and countries for Apple Podcasts, Spotify or YouTube.
- `GET /api/charts/{platform}/{country}/{category}/` - [Chart Rankings](https://rephonic.com/developers/docs/1.1/chart-rankings.md): The latest chart for one platform, country and category.
- `GET /api/common/categories/` - [Categories](https://rephonic.com/developers/docs/1.1/categories.md): Podcast categories, for search filters.
- `GET /api/common/countries/` - [Countries](https://rephonic.com/developers/docs/1.1/countries.md): Countries, for search filters.
- `GET /api/common/languages/` - [Languages](https://rephonic.com/developers/docs/1.1/languages.md): Languages, for search filters.
- `GET /api/common/sponsors/` - [Sponsors](https://rephonic.com/developers/docs/1.1/sponsors.md): Search sponsors we've seen on podcasts.
- `GET /api/common/professions/` - [Professions](https://rephonic.com/developers/docs/1.1/professions.md): Search listener professions.
- `GET /api/common/interests/` - [Interests](https://rephonic.com/developers/docs/1.1/interests.md): Search listener interests.
- `GET /api/accounts/quota/` - [API Quota](https://rephonic.com/developers/docs/1.1/quota.md): Your API usage and quota this month.
