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.
Authentication
Your API key comes with your API plan. You'll find it in the Rephonic API section of your account settings. 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 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:
{ "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 | 120 |
| Graph | 30 |
| List episodes, get an episode and episode transcript | 60 between them |
| Chart categories and chart rankings | 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 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.
- Otherwise, search 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, list episodes or a podcast's latest_episode, and pass them to get an episode and episode transcript.
Endpoints
Search
Podcasts
GET / api/ podcasts/ {id}/Hosts, Guests and CrewGET / api/ podcasts/ {id}/ people/DemographicsGET / api/ podcasts/ {id}/ demographics/Sponsors and Cross-PromosGET / api/ podcasts/ {id}/ promotions/RankingsGET / api/ podcasts/ {id}/ rankings/ContactsGET / api/ contacts/Social AccountsGET / api/ social/ accounts/Ratings and FeedbackGET / api/ feedback/ReviewsGET / api/ reviews/TrendsGET / api/ trends/GraphGET / api/ similar/ graph/