# Search transcripts

> Find what was said across every transcript, with the speaker, the episode and the second it was said.

Source: https://www.podcastlookup.com/documentation/rest-api/search-transcripts

`GET /api/v1/transcripts` (1 credit)

Searches the words spoken in every transcript at once. Results are episodes, most matches first, each with its best matching lines: who said them, when, and a link that plays the moment.

## Query parameters

| Field | Type | Default | Description |
| --- | --- | --- | --- |
| `q` (required) | `string` |  | What to find. Words must all appear in a line; "quotes" match an exact phrase; OR matches either word; -word leaves lines with that word out. Case and accents are ignored. Max 200 characters. |
| `podcast_id` | `integer, repeatable` |  | Only these podcasts. Up to 10. |
| `person` | `string, repeatable` |  | Only lines spoken by these people, by slug (the end of /people/<slug>), e.g. greg-isenberg. Up to 10. |
| `lang` | `string, repeatable` |  | Only transcripts in these languages, ISO 639-1. Up to 10. |
| `sort` | `"relevance" \| "newest"` | `relevance` | Most matching lines first, or newest episodes first. |
| `page` | `integer` | `1` | 10 episodes per page, up to page 50. |

When no whole word matches, words are looked for inside longer words instead ("anthrop" finds "Anthropic"), and `partial_words` is `true`.

## Example

**curl**

```bash
curl -G "https://www.podcastlookup.com/api/v1/transcripts" \
  --data-urlencode 'q="open source" -crypto' \
  -d lang=en \
  -H "Authorization: Bearer $PODCAST_LOOKUP_API_KEY"
```

**JavaScript**

```ts
const params = new URLSearchParams({ q: '"open source" -crypto', lang: "en" })
const response = await fetch(`https://www.podcastlookup.com/api/v1/transcripts?${params}`, {
  headers: { Authorization: `Bearer ${process.env.PODCAST_LOOKUP_API_KEY}` },
})
const { total, results } = await response.json()
for (const episode of results)
  for (const moment of episode.moments)
    console.log(`${moment.speaker} (${episode.podcast_title}): ${moment.text}\n${moment.url}`)
```

**Python**

```python
response = requests.get(
    "https://www.podcastlookup.com/api/v1/transcripts",
    params={"q": '"open source" -crypto', "lang": "en"},
    headers={"Authorization": f"Bearer {os.environ['PODCAST_LOOKUP_API_KEY']}"},
)
for episode in response.json()["results"]:
    for moment in episode["moments"]:
        print(moment["speaker"], moment["start_seconds"], moment["text"])
```

## Response

```json
{
  "query": "\"open source\" -crypto",
  "sort": "relevance",
  "page": 1,
  "page_size": 10,
  "total": 6,
  "total_matches": 124,
  "partial_words": false,
  "results": [
    {
      "podcast_id": 4458228,
      "podcast_title": "The Startup Ideas Podcast",
      "episode_id": "open-source-ai-is-creating-millionaires-1a2b3c4d5e",
      "episode_title": "Open Source + AI is Creating Millionaires",
      "published_at": "2026-11-30T12:00:00.000Z",
      "language": "en",
      "transcript_source": "podcast_lookup",
      "matches": 102,
      "url": "https://www.podcastlookup.com/p/the-startup-ideas-podcast-4458228/episodes/open-source-ai-is-creating-millionaires-1a2b3c4d5e",
      "moments": [
        {
          "speaker": "Greg Isenberg",
          "role": "host",
          "start_seconds": 426.1,
          "end_seconds": 433.8,
          "text": "Before we talk about how these open source apps make money, can you just explain why it feels like open source is having a moment in the agentic age?",
          "url": "https://www.podcastlookup.com/p/the-startup-ideas-podcast-4458228/episodes/open-source-ai-is-creating-millionaires-1a2b3c4d5e#transcript-turn-112"
        }
      ]
    }
  ]
}
```

| Field | Type | Default | Description |
| --- | --- | --- | --- |
| `total` | `integer` |  | Episodes with at least one matching line. |
| `total_matches` | `integer` |  | Matching lines across all of them. |
| `results[].podcast_id / episode_id` | `integer / string` |  | Use them with get-transcript for the whole conversation. episode_id is null for the few episodes not yet listed through the API: list the podcast's episodes first. |
| `results[].matches` | `integer` |  | Matching lines in this episode. |
| `results[].transcript_source` | `"podcast_lookup" \| "publisher"` |  | Ours, or the show's own transcript. In publisher transcripts, speaker can be null, and start_seconds and end_seconds are null when the file has no timestamps. |
| `results[].moments` | `object[]` |  | Up to 3 of its best matching lines, in the order they were said. |
| `moments[].url` | `string` |  | The episode page, scrolled to this line. |

## Searching tips

- **All words, any order**: `pricing churn` finds lines with both words.
- **Exact phrase**: `"joint venture"`.
- **Either word**: `Claude OR ChatGPT`.
- **Leave words out**: `IA -Claude`.
- **One person's words**: add `person=marc-antoine-serfaty`. People and their slugs are listed at [/people](https://www.podcastlookup.com/people).

## Errors

| Status | Code | Meaning |
| --- | --- | --- |
| 400 | `missing_query` | `q` is empty. |
| 400 | `invalid_podcast_id`, `invalid_person`, `invalid_language`, `invalid_sort`, `invalid_page` | A parameter is malformed. |
| 400 | `too_many_values` | More than 10 values for one filter. |

## MCP equivalent

`search_transcripts` with `query`, `podcast_ids`, `people`, `languages`, `sort` and `page`.