Podcast Lookup

Use case · ChatbotAPI

Let fans ask the show anything

Years of episodes hold answers nobody can find. Load a show’s transcripts, retrieve the right moments, and let Claude answer with the speaker, the episode and a link to the second it was said.

Made forPodcast networksCreatorsCourse platformsDeveloper tools

Ask Mass Extract - Podcast

What did Ismael Esn talk about in “Comment sortir du casino avant que ton business s'effondre ?”?

Here’s the stretch of the conversation that answers it, with the moments to listen to:

“Ouais, bon, sauf que tu n'as pas fait une joint venture avec Meta.”
Ismael Esn▶ 41:41
“Non, par contre, tu peux acheter des actions Meta.”
Rémi de Truchis de Varennes▶ 41:43
“Quand vous donnez beaucoup, beaucoup, beaucoup de blé à une boîte cotée, c'est toujours pertinent d'acheter un petit peu de ces actions.”
Rémi de Truchis de Varennes▶ 41:45
Ask a follow-up…

Quotes, speakers and timestamps from real transcripts.

Answers with sources

Each answer cites the episode, the speaker and the timestamp, so fans can check it, and keep listening.

Knows who said it

Speaker names are part of every line: ask what one guest thinks, or how the host’s view changed over the years.

Your stack, your data

Store transcripts in your own database or vector store. Answering questions costs no credits.

How it works

3 steps. Real endpoints, real fields.

Copy the code as it is: it calls the same API the website runs on. Swap in your key and your shows.

  1. 1

    Load the back catalogue

    List every episode, 100 per call, and fetch the transcripts that exist. Request the missing ones once.

    load.ts
    const API_BASE = "https://www.podcastlookup.com/api/v1"
    const lookup = (path: string, init?: RequestInit) =>
      fetch(API_BASE + path, {
        ...init,
        headers: { Authorization: `Bearer ${process.env.PODCAST_LOOKUP_API_KEY}` },
      }).then((res) => res.json())
    
    const podcastId = 4458228
    const transcripts = []
    for (let page = 1; ; page++) {
      const body = await lookup(`/podcasts/${podcastId}/episodes?page=${page}&page_size=100`)
      for (const ep of body.episodes) {
        if (ep.transcript) transcripts.push(await lookup(`/podcasts/${podcastId}/episodes/${ep.id}/transcript`))
      }
      if (page * body.page_size >= body.total) break
    }
  2. 2

    Cut it into moments

    Group consecutive lines into chunks of a minute or two. Keep the speaker, the start time and the episode link on each chunk.

    chunk.ts
    const chunks = transcripts.flatMap((t) => {
      const out = []
      for (let i = 0; i < t.segments.length; i += 8) {
        const lines = t.segments.slice(i, i + 8)
        out.push({
          url: `${t.url}#t=${Math.floor(lines[0].start_seconds)}`,
          text: lines.map((s) => `${s.speaker}: ${s.text}`).join("\n"),
        })
      }
      return out
    })
    // Embed and store chunks in pgvector, Turbopuffer, Pinecone…
  3. 3

    Answer with Claude

    Retrieve the closest chunks for each question and ask Claude to answer only from them, citing the links.

    answer.ts
    import Anthropic from "@anthropic-ai/sdk"
    
    const context = (await search(question, 8)) // your vector search
      .map((c) => `<moment url="${c.url}">\n${c.text}\n</moment>`)
      .join("\n")
    
    const message = await new Anthropic().messages.create({
      model: "claude-opus-5-5",
      max_tokens: 16000,
      system: "Answer only from the moments given. Name the speaker and cite the url.",
      messages: [{ role: "user", content: `${context}\n\nQuestion: ${question}` }],
    })

What it costs

One credit per call.

Loading is a one-off; after that, only new episodes cost a credit each.

List episodes, per 100
1
One transcript
1
A 200-episode show, loaded once
≈ 202
Answering questions
0

What’s behind it

The data you’d otherwise build.

Feeds crawled, episodes stored, conversations transcribed with every speaker named.

4.7M

podcasts, refreshed daily

128

languages

56K

episodes stored

199.5K

words transcribed

Questions, answered

4.7M podcasts. One API key away.

Choose a plan, create an API key, and make your first call.