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

# Search Podcasts

> Search podcasts by topic, title or publisher, with optional filters.

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

Find podcasts by subject, name or publisher, or list every podcast that matches some [filters](https://rephonic.com/developers/docs/1.1/search-filters.md). You can use a query and filters together.

By default, a query matches the subjects podcasts cover. To match podcast names instead, set `mode` to `titles`, or set it to `publishers` to match publisher names. In the default `topics` mode, `exact_matches` also lists up to three podcasts whose name contains the query.

You can page through the first 10,000 results.

## Parameters

| Field | In | Description | Default | Max | Required |
|-------|----|-------------|---------|-----|----------|
| query | query | What to search for. Up to 200 characters. Every word has to match, so `climate farming` only finds results with both words. Put `OR` in capitals between words to match either of them, as in `climate OR weather`. Put a phrase in quotes to match it exactly, as in `"climate change"`, and put a minus sign before a word to leave out results that have it, as in `climate -politics`. Use parentheses to group words, as in `(climate OR weather) farming`. |  |  |  |
| mode | query | What the query matches. One of `topics`, `titles`, `publishers`. | topics |  |  |
| per_page | query | How many results to get on each page. | 50 | 100 |  |
| page | query | Which page of results to get, starting at 1. | 1 |  |  |
| filters | query | Narrow the results with [search filters](https://rephonic.com/developers/docs/1.1/search-filters.md), separated by commas. |  |  |  |

## Response Fields

- `page` (integer): The page you asked for.
- `total_reach` (integer): The `downloads_per_episode` of every matching podcast added up, across all pages.
- `more` (boolean): Whether there is another page of results.
- `count` (integer): How many results match, up to 10,000.
- `per_page` (integer): How many results are on each page.
- `spelling_suggestion` (string or null): A corrected spelling of the query when we think it is misspelled, or `null`.
- `exact_matches` (array of objects or null): In `topics` mode, up to three English-language podcasts whose name contains the query. It's `null` in the other modes, and when there are none.
  - `id` (string): The podcast's Rephonic ID.
  - `itunes_id` (integer): The podcast's Apple Podcasts ID.
  - `name` (string): The podcast's name.
  - `publisher` (object)
    - `id` (string): The publisher's Rephonic ID.
    - `name` (string): The publisher's name.
  - `artwork_url` (string): The cover art, 600 by 600 pixels.
  - `artwork_thumbnail_url` (string): The cover art, 70 by 70 pixels.
  - `genres` (array of strings): The Apple Podcasts categories the show is in.
- `podcasts` (array of PodcastSearchResult objects): The podcasts on this page.

## Example Request

```bash
curl -G https://api.rephonic.com/api/search/podcasts/ \
  -H "X-Rephonic-Api-Key: YOUR_API_KEY" \
  --data-urlencode "query=hardcore history" \
  --data-urlencode "filters=active:is:true"
```

## Example Response

```json
{
  "page": 1,
  "total_reach": 540883624,
  "more": true,
  "count": 10000,
  "per_page": 50,
  "spelling_suggestion": null,
  "exact_matches": [
    {
      "id": "dan-carlins-hardcore-history",
      "itunes_id": 173001861,
      "name": "Dan Carlin's Hardcore History",
      "publisher": {
        "id": "dan-carlin",
        "name": "Dan Carlin"
      },
      "artwork_url": "https://img.rephonic.com/artwork/dan-carlins-hardcore-history.jpg?width=600&height=600&quality=95",
      "artwork_thumbnail_url": "https://img.rephonic.com/artwork/dan-carlins-hardcore-history.jpg?width=70&height=70&quality=95",
      "genres": ["History"]
    }
  ],
  "podcasts": [
    {
      "badges": null,
      "id": "dan-carlins-hardcore-history",
      "publisher": {
        "id": "dan-carlin",
        "name": "Dan Carlin"
      },
      "founded": "2006-07-27T00:00:00Z",
      "added": "2020-01-28T09:54:15.184Z",
      "name": "Dan Carlin's Hardcore History",
      "short_name": "Dan Carlin's Hardcore History",
      "description": "In Hardcore History journalist and broadcaster Dan Carlin takes his unorthodox way of thinking and applies it to the past.",
      "summary": null,
      "artwork_url": "https://img.rephonic.com/artwork/dan-carlins-hardcore-history.jpg?width=600&height=600&quality=95",
      "artwork_thumbnail_url": "https://img.rephonic.com/artwork/dan-carlins-hardcore-history.jpg?width=70&height=70&quality=95",
      "feed_url": "https://feeds.feedburner.com/dancarlin/history?format=xml",
      "itunes_id": 173001861,
      "language": "en",
      "sponsors": {
        "accepted": false,
        "profile": null,
        "outreach": null
      },
      "cross_promos": {
        "accepted": false
      },
      "guests": {
        "accepted": false,
        "profile": null,
        "outreach": null
      },
      "branded": false,
      "active": true,
      "deleted": false,
      "genres": ["History"],
      "num_episodes": 16,
      "num_ratings": 110461,
      "frequency": "infrequently",
      "social_reach": 437787,
      "engagement": 85,
      "identifiers": {
        "itunes": 173001861,
        "apple": 173001861,
        "spotify": "72qiPaoDRf8HkGKEChvG5q",
        "castbox": 3624,
        "podchaser": 33310,
        "tpa": 19,
        "podaddict": 4096,
        "playerfm": 2483,
        "tunein": "p1147487",
        "podbean": "dir192322,2pxby",
        "audible": "B08JJP95KL",
        "podrepublic": 173001861,
        "goodpods": 173001861
      },
      "publishing_model": {
        "apple": null
      },
      "verified": false,
      "weekly_downloads": 465199,
      "downloads_per_episode": 13931851,
      "entities": null,
      "links": null
    }
  ]
}
```

## 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).
