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

# Find a Podcast's ID

> From an Apple, Spotify or YouTube ID, or an RSS feed URL.

```
GET https://api.rephonic.com/api/podcasts/lookup/
```

Use this when you know a podcast's Apple Podcasts ID, Spotify ID, YouTube channel ID or RSS feed URL, and need its Rephonic ID. Send one of them per request.

```
GET /api/podcasts/lookup/?itunes_id=1545953110
GET /api/podcasts/lookup/?spotify_id=79CkJF3UJTHFV8Dse3Oy0P
GET /api/podcasts/lookup/?feed_url=https%3A%2F%2Ffeeds.megaphone.fm%2Fhubermanlab
GET /api/podcasts/lookup/?youtube_channel_id=UC2D2CMWXMOVWx7giW1n3LIg
```

The `podcasts` field is a list, because more than one podcast can share a feed URL or YouTube channel. Pass a podcast's `id` to [get a podcast](https://rephonic.com/developers/docs/1.1/get-podcast.md) and the other endpoints.

When nothing matches, you get an empty list.

## Parameters

| Field | In | Description | Default | Max | Required |
|-------|----|-------------|---------|-----|----------|
| itunes_id | query | The Apple Podcasts ID, a number. |  |  |  |
| feed_url | query | The full RSS feed URL. URL-encode it. Case and trailing slashes don't matter. |  |  |  |
| spotify_id | query | The Spotify show ID, the 22-character code in the show's Spotify URL. Not the whole URL. |  |  |  |
| youtube_channel_id | query | The YouTube channel ID, which starts with `UC`. |  |  |  |

## Response Fields

- `podcasts` (array of PodcastSearchResult objects): The podcasts that match. Empty when none do.

## Example Request

```bash
curl -G https://api.rephonic.com/api/podcasts/lookup/ \
  -H "X-Rephonic-Api-Key: YOUR_API_KEY" \
  --data-urlencode "itunes_id=1545953110"
```

## Example Response

```json
{
  "podcasts": [
    {
      "badges": null,
      "id": "huberman-lab",
      "publisher": {
        "id": "scicomm-media",
        "name": "Scicomm Media"
      },
      "founded": "2020-12-21T00:00:00Z",
      "added": "2020-12-23T03:22:16.476Z",
      "name": "Huberman Lab",
      "short_name": "Huberman Lab",
      "description": "The Huberman Lab podcast is hosted by Andrew Huberman, Ph.D...",
      "summary": "This podcast engages listeners through a thoughtful exploration of neuroscience...",
      "artwork_url": "https://img.rephonic.com/artwork/huberman-lab.jpg?width=600&height=600&quality=95",
      "artwork_thumbnail_url": "https://img.rephonic.com/artwork/huberman-lab.jpg?width=70&height=70&quality=95",
      "feed_url": "https://feeds.megaphone.fm/hubermanlab",
      "entities": null,
      "links": null,
      "itunes_id": 1545953110,
      "language": "en",
      "sponsors": {
        "accepted": true,
        "profile": null,
        "outreach": null
      },
      "cross_promos": {
        "accepted": false
      },
      "guests": {
        "accepted": true,
        "profile": null,
        "outreach": null
      },
      "branded": false,
      "active": true,
      "deleted": false,
      "genres": ["Life Sciences", "Science", "Health & Fitness"],
      "num_episodes": 268,
      "num_ratings": 163756,
      "frequency": "twiceweekly",
      "social_reach": 11015653,
      "engagement": 90,
      "identifiers": {
        "itunes": 1545953110,
        "apple": 1545953110,
        "spotify": "79CkJF3UJTHFV8Dse3Oy0P",
        "castbox": 4758848,
        "podchaser": 1576373,
        "tpa": 1827966,
        "podaddict": 3795736,
        "playerfm": 2849974,
        "tunein": "p1608844",
        "podbean": "dir1587013,8d9kj",
        "audible": "B08K4RXYSR",
        "podrepublic": 1545953110,
        "goodpods": 1545953110
      },
      "publishing_model": {
        "apple": null
      },
      "verified": false,
      "weekly_downloads": 2679678,
      "downloads_per_episode": 1793629
    }
  ]
}
```

## Objects

Objects that the fields above refer to by name.

### PodcastSearchResult Object

A podcast in search and lookup results. It has the fields of the full podcast object except `subscribers`, `latest_episode`, `topics`, `political_leaning`, `youtube` and `similar`.

- `badges` (array of strings or null): Always `null` here. See [get a podcast](https://rephonic.com/developers/docs/1.1/get-podcast.md).
- `id` (string): The podcast's Rephonic ID, e.g. `huberman-lab`. Pass it to the other endpoints.
- `publisher` (object)
  - `id` (string): The publisher's Rephonic ID.
  - `name` (string): The publisher's name.
- `founded` (timestamp or null): When the show started, taken from its Apple Podcasts listing.
- `added` (timestamp): When Rephonic added the show.
- `name` (string): The podcast's name.
- `short_name` (string): The name without subtitles, host credits or "presents" prefixes. "This Past Weekend w/ Theo Von" becomes "This Past Weekend". The same as `name` when there's nothing to remove.
- `description` (string or null): The show's own description, from its RSS feed or Apple Podcasts, as plain text.
- `summary` (string or null): Our short summary of the show, or `null` until we've analysed it.
- `artwork_url` (string): The cover art, 600 by 600 pixels.
- `artwork_thumbnail_url` (string): The cover art, 70 by 70 pixels.
- `feed_url` (string or null): The show's RSS feed.
- `itunes_id` (integer): The podcast's Apple Podcasts ID.
- `language` (string or null): The show's language code, e.g. `en`. Use it in the `languages` search filter.
- `sponsors` (object)
  - `accepted` (boolean or null): Whether the show takes sponsors, judging by its recent episodes. It's `null` when we haven't analysed the show yet.
  - `profile` (string or null): Always `null` here. See [get a podcast](https://rephonic.com/developers/docs/1.1/get-podcast.md).
  - `outreach` (object or null): Always `null` here. See [get a podcast](https://rephonic.com/developers/docs/1.1/get-podcast.md).
- `cross_promos` (object)
  - `accepted` (boolean or null): Whether the show is likely to do cross-promotions with other podcasts, judging by its recent episodes. 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, judging by its recent episodes. It's `null` when we haven't analysed the show yet.
  - `profile` (string or null): Always `null` here. See [get a podcast](https://rephonic.com/developers/docs/1.1/get-podcast.md).
  - `outreach` (object or null): Always `null` here. See [get a podcast](https://rephonic.com/developers/docs/1.1/get-podcast.md).
- `branded` (boolean or null): Whether we think it's a corporate podcast, made to promote a company or organisation.
- `active` (boolean or null): Whether the show published an episode in the last 60 days.
- `deleted` (boolean): Whether the show has gone from the Apple Podcasts directory.
- `genres` (array of strings): The Apple Podcasts categories the show is in, main category first.
- `num_episodes` (integer or null): How many episodes the show has published.
- `num_ratings` (integer or null): How many star ratings the show has, added up across Apple Podcasts (every country), Spotify and Podchaser.
- `frequency` (string or null): How often the show publishes, from the average gap between its episodes. Values: `daily`, `twiceweekly`, `weekly`, `twicemonthly`, `monthly`, `infrequently`.
- `social_reach` (integer or null): The total followers across the show's social media accounts, plus its Patreon patrons. See [social accounts](https://rephonic.com/developers/docs/1.1/social-accounts.md).
- `engagement` (integer or null): How engaged the show's listeners are, from 0 to 100. We look at the growth in new listener reviews and ratings over the past 180 days. A score of 90 or more means listeners are highly engaged, and 70 or more moderately engaged. It's `null` for inactive shows and when we don't have enough data.
- `identifiers` (object): The show's ID in each podcast app. An ID is `null` when we haven't found the show in that app.
  - `itunes` (integer): The Apple Podcasts ID.
  - `apple` (integer): The Apple Podcasts ID, the same as `itunes`.
  - `spotify` (string or null): The Spotify show ID.
  - `castbox` (integer or null): The Castbox channel ID.
  - `podchaser` (integer or null): The Podchaser ID.
  - `tpa` (integer or null): The Podcast App ID.
  - `podaddict` (integer or null): The Podcast Addict ID.
  - `playerfm` (integer or null): The Player FM ID.
  - `tunein` (string or null): The TuneIn ID, like `p1608844`.
  - `podbean` (string or null): The Podbean ID.
  - `audible` (string or null): The Audible ASIN.
  - `podrepublic` (integer): The Podcast Republic ID.
  - `goodpods` (integer): The Goodpods ID.
- `publishing_model` (object)
  - `apple` (string or null): Whether the show's episodes on Apple Podcasts are free (`free`), a mix of free and paid (`hybrid`) or all paid (`paid`). It's `null` when we don't know. Values: `free`, `hybrid`, `paid`.
- `verified` (boolean): Whether `downloads_per_episode` and `weekly_downloads` are measured by [OP3](https://op3.dev), an open podcast analytics service, instead of estimated by us.
- `weekly_downloads` (integer or null): Our estimate of listeners per week. See `downloads_per_episode`.
- `downloads_per_episode` (integer or null): Our estimate of listeners per episode, based on public data. It doesn't include YouTube views. It's `null` when we don't have a reliable estimate, which is usual for shows that aren't active.
- `entities` (array or null): Always `null` here. See [get a podcast](https://rephonic.com/developers/docs/1.1/get-podcast.md).
- `links` (array or null): Always `null` here. See [get a podcast](https://rephonic.com/developers/docs/1.1/get-podcast.md).
