# Podcasts

Podcast shows and episodes.

```text
"sources": ["podcasts"]
```

The `podcasts` source searches podcast episodes. A result is one episode, with the show it belongs to, its date and a link to the audio. The snippet is the episode's description.

## Good for

- Finding episodes on a subject, or interviews with a person.
- Long-form expert conversation that never became an article.
- Building a listening list: `extra.audio_url` is the episode's audio file.

## Not the place for

- Quoting what was said in an episode. The snippet is the description the show published, not a transcript.
- Breaking news.

## What a result carries

Every result has the same fields whatever the source; the [Search reference](https://millionshort.com/docs/search/parameters#a-result) lists them. What differs is which of them are filled in:

| Field | In this source |
|---|---|
| `published_date` | Set on every result. |
| `page_type` | `null`. |
| `topic` | Set. |
| `popularity` | The popularity of the site that hosts the episode page. |
| `signals` (with `explain`) | Partly set. |
| `extra` | `podcast` (the show), `publisher` and `audio_url`. |

The `extra` keys are what this source returns today. Treat every one of them as optional: read it if it is there.

## Example queries

- `sleep science`
- `history of jazz`
- `startup fundraising`

Ten episodes with their show and date:

```bash
curl https://api.millionshort.com/v1/search \
  -H "Authorization: Bearer $MILLIONSHORT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "query": "history of jazz",
    "sources": ["podcasts"],
    "num_results": 10
  }'
```

```python
import os

from millionshort import MillionShort

client = MillionShort(api_key=os.environ["MILLIONSHORT_API_KEY"])

r = client.search(
    "history of jazz",
    sources=["podcasts"],
    num_results=10,
)
for hit in r.results:
    print(hit["published_date"], hit["extra"].get("podcast"), hit["title"])
print(r.usage.credits, "credit(s)")
```

```ts
import { MillionShort } from 'millionshort';

const client = new MillionShort({ apiKey: process.env.MILLIONSHORT_API_KEY });

const r = await client.search('history of jazz', {
  sources: ['podcasts'],
  numResults: 10,
});
for (const hit of r.results) {
  console.log(hit.published_date, hit.extra.podcast, hit.title);
}
console.log(r.usage?.credits, 'credit(s)');
```

The same call as a tool of the MCP server:

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "search",
    "arguments": {
      "query": "history of jazz",
      "sources": [
        "podcasts"
      ],
      "num_results": 10
    }
  }
}
```

## Combine it with

`web` for show notes and transcripts published as pages. One call can ask up to five sources and returns one merged list; each result says which source it came from in `source`. See [Mixture of Experts](https://millionshort.com/docs/search/mixture-of-experts).

## Cost and limits

A search of this source costs 1 credit, like every source, and covers the first 10 results of the call. It is not one of the heavy sources, so only the plan's ordinary requests-per-minute limit applies. [Credits and limits](https://millionshort.com/docs/credits-and-limits) has the numbers.

With [Monitor](https://millionshort.com/docs/monitor/parameters), a query monitor can watch this source, with a shortest interval of 24 hours.
