Search Episode Transcript

POST https://api.podengine.ai/api/v1/search/episodes/:episodeId/transcript

Search within the transcript of the episode identified by episodeId in the URL. Send the original searchOptions, pageSize and optional cursor in the body; do not repeat episodeId in the body. Count and browse matching passages for that episode. The best passage is separate from paginated additional passages. Counts are exact (eq) or lower bounds (gte); at most 100 passages can be browsed. Initial episode totals still count episodes. Reuse nextCursor with the same episode and query; HTTP 409 means restart without the cursor. Passages use the same Elasticsearch analyzer and sentence boundaries as matchSnippet; nearby terms in one passage count once. Highlighting failures, including transcripts exceeding the index analysis limit, are errors, never zero matches or silently partial counts.

Request

Path parameters

episodeIdstringrequireduuid

Pod Engine UUID of the episode.

Request body

searchOptionsobjectrequired41 fields

Original episode search options, including all positive and excluded terms. Episode pagination is ignored.

cursorstringnullable

Pagination cursor for fetching the next page of results. This cursor is stateless and does not expire. However, because it uses search_after pagination, results may be inconsistent if the underlying data changes between requests (e.g., you may see duplicate or missing results if documents are added/removed).

pageSizeinteger1 – 1000

Number of results to return per page

projectobject6 fields

Details about any Project this search is associated with. If included will filter out podcasts related to the project.

projectIdstringrequired

The Pod Engine Project ID

If true, will not include any podcasts marked as ignored on this project in the results.

If true, will not include any podcasts on the project list in the results.

If the podcast relevancy should be included with the search results. Note that including this will limit your search results to 20 total and also slow down the search results response

excludeRelvancyValuesarray of number

If provided, will exclude podcasts with these relevancy values. Valid values are 1-5. Note this is a server side filter and will only work if includePodcastRelevancy is set.

If true, will force a recalculation of the podcast relevancy values for this search. Note this will slow down the search results response and should only be used if you believe the relevancy values are out of date.

projectIdstring

[DEPRECATED] Project ID to associate the search with

searchTermsarray of object4 fields

Terms to search for in the episode title, the episode description, the transcript, or the parent podcast's title and description.

searchTermstringrequiredmin 2 characters

The text to look for. Wrapping it in single or double quotes forces a phrase match, the same as setting searchTermOptions.phraseMatch.

searchTypeenumrequired

How to match the term. 'text' runs keyword matching against each of the searchTargets.

text
searchTargetsarray of enumrequired

Which fields to match this term against. A result matches if the term hits any one of its targets, so listing several widens the search rather than narrowing it.

podcast-titlepodcast-descriptionepisode-titleepisode-descriptiontranscript
searchTermOptionsobject4 fields

How this term is matched: whether it is required, treated as a phrase, or matched loosely.

matchModeenumdefault "optional"

How this term combines with the others. 'optional' (the default) lets the term raise a result's relevance without being required, though a result still has to match at least one term. 'must' requires it. 'not' excludes anything it matches.

mustnotoptional

Whether to match the search term as a phrase

slopnumber

How many words apart tokens can appear in a document to be considered a match

fuzzyboolean

Whether to use fuzzy matching

excludeItunesGenresarray of string

iTunes genres to exclude from results

excludePodcastIdsarray of string

Specific podcast IDs to exclude from results

excludeEpisodeIdsarray of string

Specific episode IDs to exclude from results

Filter by explicit content rating

cleanexplicit

Filter podcasts founded after this date

Filter podcasts that have primary contact information

hasSocialsarray of enum

Filter podcasts with specific social media presence from beehiiv, behance, bluesky, discord, facebook, github, instagram, linkedin, linktree, mastodon, medium, patreon, pinterest, reddit, snapchat, soundcloud, substack, threads, tiktok, tumblr, twitch, twitter, vimeo, whatsapp, youtube

beehiivbehanceblueskydiscordfacebookgithubinstagramlinkedinlinktreemastodonmediumpatreonpinterestredditsnapchatsoundcloudsubstackthreadstiktoktumblrtwitchtwittervimeowhatsappyoutube
includeItunesGenresarray of string

iTunes genres to include in results

includePodcastIdsarray of string

Specific podcast IDs to include in results

languagesarray of string

Filter podcasts by language

Filter podcasts with episodes published after this date

maxTotalEpisodesintegermin 1

Maximum number of total episodes

minCastboxPlaysintegermin 1

Minimum number of Castbox plays

Minimum number of Castbox subscribers

minItunesRatingnumber0 – 5

Minimum iTunes rating score

Minimum number of iTunes ratings

minSpotifyRatingnumber0 – 5

Minimum Spotify rating score

Minimum number of Spotify ratings

minTotalEpisodesintegermin 1

Minimum number of total episodes

podcastCountriesarray of string

Filter podcasts by country of origin using ISO 3166-1 alpha-2 codes, for example us

Filter podcasts that feature guests

podcastAuthorityScoreobject5 fields

Filter podcasts by their Authority Score

authorityScoreobject2 fields

Restrict results to podcasts whose overall Authority Score falls in this range. The overall score combines the quality, engagement, social and YouTube components; podcasts we have not scored are excluded. See https://www.podengine.ai/podcast-authority-score.

minnumberrequirednullable0 – 100

Inclusive lower bound for the overall Authority Score. Null or omitted leaves the range open at the bottom.

maxnumberrequirednullable0 – 100

Inclusive upper bound for the overall Authority Score. Null or omitted leaves the range open at the top.

qualityScoreobject2 fields

Restrict results by the quality component of the Authority Score, which rates how well the show is produced and maintained: release consistency, episode length, artwork, show notes, transcript coverage, contact details and RSS completeness. Podcasts we have not scored are excluded.

minnumberrequirednullable0 – 100

Inclusive lower bound for the quality score. Null or omitted leaves the range open at the bottom.

maxnumberrequirednullable0 – 100

Inclusive upper bound for the quality score. Null or omitted leaves the range open at the top.

engagementScoreobject2 fields

Restrict results by the engagement component of the Authority Score, which rates how strongly listeners respond to the show: review counts and ratings, recent Apple US chart position, and Castbox plays and subscribers. Podcasts we have not scored are excluded.

minnumberrequirednullable0 – 100

Inclusive lower bound for the engagement score. Null or omitted leaves the range open at the bottom.

maxnumberrequirednullable0 – 100

Inclusive upper bound for the engagement score. Null or omitted leaves the range open at the top.

socialScoreobject2 fields

Restrict results by the social component of the Authority Score, which rates follower counts across the show's linked Facebook, Instagram, LinkedIn, TikTok and Twitter accounts. Podcasts we have not scored are excluded.

minnumberrequirednullable0 – 100

Inclusive lower bound for the social score. Null or omitted leaves the range open at the bottom.

maxnumberrequirednullable0 – 100

Inclusive upper bound for the social score. Null or omitted leaves the range open at the top.

youtubeScoreobject2 fields

Restrict results by the YouTube component of the Authority Score, which rates the channel's subscribers, total views and most-viewed video. Podcasts we have not scored are excluded.

minnumberrequirednullable0 – 100

Inclusive lower bound for the YouTube score. Null or omitted leaves the range open at the bottom.

maxnumberrequirednullable0 – 100

Inclusive upper bound for the YouTube score. Null or omitted leaves the range open at the top.

podcastAudienceEstimatedMonthlyListenersobject2 fields

Filter by the published estimated monthly listeners. Bounds are inclusive; omit min or max for an open-ended range. Podcasts without an estimate are excluded. Estimates under 1,000 (bucket 0-1K) match as 1 to 999 even though they read 1,000. Example: { "min": 10000, "max": 100000 }.

minintegermin 0

Inclusive minimum estimated monthly listeners

maxintegermin 0

Inclusive maximum estimated monthly listeners

sortOrderarray of object3 fields

Specify how episode results should be sorted

fieldenumrequired

Episode sort: relevance, publication date (recentActivity), title, Apple rating or Spotify rating. Audience, YouTube, authority and Castbox sorts are only available for podcast searches.

relevancerecentActivitytitleappleReviewsspotifyReviews

Sort direction. Defaults to 'asc' for 'title' and 'desc' for every other field.

ascdesc

Where results that have no value for this field go. Defaults to 'last'. Ignored for 'relevance' and the podcast-only metrics.

firstlast

Return matchSnippet: the single best matching transcript passage, approximately 400 characters with <em> tags around matches. Requires a positive text term targeting transcript. Omitted when no transcript passage matches. When enabled, transcriptHighlights contains this same single passage; transcriptHighlightLength is ignored.

Return the opening of each matching episode transcript alongside the result, as transcriptTextSnippet. Episodes with no transcript return null.

How many characters of the transcript includeTranscriptSnippet returns. Defaults to 500. This is the start of the transcript, not the part that matched — for the matching text, search the transcript target and set includeMatchSnippet to receive matchSnippet, or read transcriptHighlights.

How many characters each highlighted transcript fragment contains when a search term targets the transcript. Defaults to 300.

includeEpisodeIdsarray of string

Restrict results to these specific episode IDs

Only episodes published on or after this date (inclusive)

Only episodes published strictly before this date (exclusive). Combine with publishedSince for a bounded window, e.g. publishedSince=90 days ago + publishedBefore=30 days ago.

Filter to episodes that have a transcript (true) or that do not (false)

Only episodes whose Pod Engine record changed on or after this date. This tracks our record, not the show's own updates, so use it to pick up everything that has changed since your last sync.

Only episodes added to Pod Engine on or after this date. An episode is added when we first index it, which can be well after it was published — use publishedSince to filter on the publication date instead.

personFiltersarray of object6 fields

Filter episodes by the people on them. Entries are ANDed together, e.g. [{ "name": "Elon Musk", "type": "guest" }, { "name": "Joe Rogan", "type": "host" }] returns only episodes where Elon Musk appeared as a guest and Joe Rogan was a host. An entry with matchMode "not" instead excludes episodes featuring that person.

namestringrequiredmin 2 characters

The name to match

'must' (default) only returns episodes matching this entry; 'not' excludes episodes matching this entry

mustnot

Whether to match the name as a phrase (all words, in order). Defaults to true; set false for a loose per-word match.

slopnumber

How many words apart tokens can appear in a name to still count as a phrase match

fuzzyboolean

Whether to tolerate close spellings. Uses per-word fuzzy matching with all words required, so it ignores word order and cannot be combined with slop.

typeenumrequired

Whether the person must appear on the episode as a 'guest' or a 'host'

guesthost
sponsorFiltersarray of object5 fields

Filter episodes by sponsor / advertiser name. Entries are ANDed together; an entry with matchMode "not" instead excludes episodes with that sponsor.

namestringrequiredmin 2 characters

The name to match

'must' (default) only returns episodes matching this entry; 'not' excludes episodes matching this entry

mustnot

Whether to match the name as a phrase (all words, in order). Defaults to true; set false for a loose per-word match.

slopnumber

How many words apart tokens can appear in a name to still count as a phrase match

fuzzyboolean

Whether to tolerate close spellings. Uses per-word fuzzy matching with all words required, so it ignores word order and cannot be combined with slop.

pageSizeintegerdefault 51 – 20

Number of additional passages per page, excluding the best passage. Defaults to 5; maximum 20.

cursorstringmax 256 characters

Opaque passage cursor from the previous page. Restart without it after HTTP 409.

Response

200 application/json
statusliteral: OKrequired
dataobjectrequired9 fields
episodeIdstringrequireduuid

Episode identifier from an episode or transcript search result.

bestPassageobjectrequirednullable2 fields

The current best passage. Display separately from the additional passages.

idstringrequired

Stable within this query and transcript revision; not a timestamp.

textstringrequired

A distinct sentence-based passage of approximately 400 characters with <em> highlights.

passagesarray of objectrequired2 fields

Additional passages in relevance order, excluding bestPassage.

idstringrequired

Stable within this query and transcript revision; not a timestamp.

textstringrequired

A distinct sentence-based passage of approximately 400 characters with <em> highlights.

totalobjectrequired2 fields

Distinct matching passages, including bestPassage. eq is exact; gte is a lower bound.

valueintegerrequiredmin 0
relationenumrequired
eqgte
additionalCountintegerrequiredmin 0

Total minus the best passage; uses total.relation.

hasMorebooleanrequired

More pages within the browsable set; independent of count truncation.

nextCursorstringrequirednullable
truncatedbooleanrequired

The passage cap was exceeded. Only the best 100 passages can be browsed.

passageLimitliteral: 100required