Library & research
Workspace library files, web research, podcast search and insertion-order parsing.
List library files
/v1/library/filesFiles in the workspace library, newest upload first: filename, type, size, parse status, whether extracted text is available and a short preview.
SDKlistener.library.files.list()client.library.files.list()
Query parameters
- Page size, 1–100 (default 25).
limitintegerDefault
25 - Opaque cursor from the previous page's next_cursor.
cursorstring
Headers
- Run this request inside one of the network's own subnetworks: its id, handle or name, as
X-Listener-WorkspacestringGET /v1/subnetworksreturns them (names and handles are matched without regard to case). Network credentials only. A subnetwork that is a group of shows (kind: "group") limits the request to those shows: lists, analytics and clusters cover only them, a show outside it answers 404, and a write that names a show outside it is refused; campaigns, reports and the team stay the network's, and requests that change the network itself (the network profile, adding or removing shows, subnetworks, team) answer 400. A subnetwork with its own account (has_login: true) is opened as that account, so every resource is the subnetwork's own.GET /v1/mesays which one the request ran in (note). Omit the header, or sendnetwork, for the whole network. A value that is not one of this network's subnetworks answers 400parameter_invalid; a subnetwork or single-show credential cannot select anything. Sent as a header only: there is noworkspacequery parameter on/v1. Webhook endpoints, events and connections always belong to the credential's own workspace.
Returns
200OK
objectstringrequiredurlstring (uri)requireddataarray of objectsrequiredShow child attributesHide child attributes
has_morebooleanrequired- Pass as
next_cursorstringrequiredcursorto get the next page; null on the last page. - The result's non-list fields (window, coverage, freshness, totals, note …).
metaobjectrequiredShow child attributesHide child attributes
Errors
400parameter_invalid401credential_invalid403scope_missing404resource_not_found429rate_limited500internal_error
Retrieve a library file
/v1/library/files/{file_id}One library file: metadata, extracted text (up to 12,000 characters), the structured summary when one exists and a 1-hour signed download URL. include_text=false returns metadata and the link only.
SDKlistener.library.files.retrieve()client.library.files.retrieve()
Path parameters
- Library file id (see GET /v1/library/files).
file_idstringrequired
Query parameters
include_textbooleanDefault
true
Headers
- Run this request inside one of the network's own subnetworks: its id, handle or name, as
X-Listener-WorkspacestringGET /v1/subnetworksreturns them (names and handles are matched without regard to case). Network credentials only. A subnetwork that is a group of shows (kind: "group") limits the request to those shows: lists, analytics and clusters cover only them, a show outside it answers 404, and a write that names a show outside it is refused; campaigns, reports and the team stay the network's, and requests that change the network itself (the network profile, adding or removing shows, subnetworks, team) answer 400. A subnetwork with its own account (has_login: true) is opened as that account, so every resource is the subnetwork's own.GET /v1/mesays which one the request ran in (note). Omit the header, or sendnetwork, for the whole network. A value that is not one of this network's subnetworks answers 400parameter_invalid; a subnetwork or single-show credential cannot select anything. Sent as a header only: there is noworkspacequery parameter on/v1. Webhook endpoints, events and connections always belong to the credential's own workspace.
Returns
200OK
idstringrequiredfilenamestringrequiredcomputed_atstring (date-time)requiredcache_age_secondsnumberrequiredobjectstringrequiredmedia_typestringDefault
"application/octet-stream"size_bytesintegerDefault
0detected_kindstringDefault
"unknown"is_text_likebooleanDefault
falseparse_statusstringDefault
"unknown"parse_warningsarray of stringsstatusstringDefault
"ready"uploaded_atstringuploaded_by_uidstringhas_extracted_textbooleanDefault
false- Length of the stored extracted text (before the 12,000-character cap).
extracted_text_charsintegerDefault
0 has_structured_summarybooleanDefault
false- First ~280 characters of the stored preview text.
previewstring - Stored extracted text, capped at 12,000 characters.
extracted_textstring extracted_text_truncatedbooleanDefault
falsestructured_summarystringstorage_pathstring- Signed GET URL (1 h) when the Storage bucket is configured.
download_urlstring (uri) download_url_expires_atstringnotestring
Errors
400parameter_invalid401credential_invalid403scope_missing404resource_not_found429rate_limited500internal_error
Web research
/v1/research/webSearch the public web and return titles, URLs and snippets plus a short summary of the top hits, for context outside Listener (a brand's news, a competitor's show). configured=false with a note when search is not set up on this server, never an error.
SDKlistener.research.web()client.research.web()
Query parameters
- Search text.
querystringrequired max_resultsintegerDefault
5
Headers
- Run this request inside one of the network's own subnetworks: its id, handle or name, as
X-Listener-WorkspacestringGET /v1/subnetworksreturns them (names and handles are matched without regard to case). Network credentials only. A subnetwork that is a group of shows (kind: "group") limits the request to those shows: lists, analytics and clusters cover only them, a show outside it answers 404, and a write that names a show outside it is refused; campaigns, reports and the team stay the network's, and requests that change the network itself (the network profile, adding or removing shows, subnetworks, team) answer 400. A subnetwork with its own account (has_login: true) is opened as that account, so every resource is the subnetwork's own.GET /v1/mesays which one the request ran in (note). Omit the header, or sendnetwork, for the whole network. A value that is not one of this network's subnetworks answers 400parameter_invalid; a subnetwork or single-show credential cannot select anything. Sent as a header only: there is noworkspacequery parameter on/v1. Webhook endpoints, events and connections always belong to the credential's own workspace.
Returns
200OK
querystringrequiredconfiguredbooleanrequiredcomputed_atstring (date-time)requiredcache_age_secondsnumberrequiredobjectstringrequiredsummarystringsourcesarray of objectsShow child attributesHide child attributes
total_resultsintegernotestring
Errors
400parameter_invalid401credential_invalid403scope_missing404resource_not_found429rate_limited500internal_error
Search podcasts
/v1/podcasts/searchSearch podcasts outside the workspace (prospects, competitors, a guest's own show) by name or keyword: title, publisher, artwork, categories, episode count, Apple / Spotify ids and RSS URL. configured=false with a note when the search provider is not configured.
SDKlistener.podcasts.search()client.podcasts.search()
Query parameters
- Search text.
querystringrequired - Maximum number of items to return.
limitintegerDefault
10
Headers
- Run this request inside one of the network's own subnetworks: its id, handle or name, as
X-Listener-WorkspacestringGET /v1/subnetworksreturns them (names and handles are matched without regard to case). Network credentials only. A subnetwork that is a group of shows (kind: "group") limits the request to those shows: lists, analytics and clusters cover only them, a show outside it answers 404, and a write that names a show outside it is refused; campaigns, reports and the team stay the network's, and requests that change the network itself (the network profile, adding or removing shows, subnetworks, team) answer 400. A subnetwork with its own account (has_login: true) is opened as that account, so every resource is the subnetwork's own.GET /v1/mesays which one the request ran in (note). Omit the header, or sendnetwork, for the whole network. A value that is not one of this network's subnetworks answers 400parameter_invalid; a subnetwork or single-show credential cannot select anything. Sent as a header only: there is noworkspacequery parameter on/v1. Webhook endpoints, events and connections always belong to the credential's own workspace.
Returns
200OK
objectstringrequiredurlstring (uri)requireddataarray of objectsrequiredShow child attributesHide child attributes
has_morebooleanrequired- Pass as
next_cursorstringrequiredcursorto get the next page; null on the last page. - The result's non-list fields (window, coverage, freshness, totals, note …).
metaobjectrequiredShow child attributesHide child attributes
Errors
400parameter_invalid401credential_invalid403scope_missing404resource_not_found429rate_limited500internal_error
List a publisher's shows
/v1/podcasts/publishersList every show a podcast network or publisher puts out, grouped by publisher name (Apple Podcasts directory): title, apple_id, episode count and latest episode date. Use it when you have a network's name instead of show names; GET /v1/podcasts/search only matches show titles. Pass the shows you want to POST /v1/shows as {name, apple_id}. truncated=true means the directory hit its ceiling and the list may be incomplete.
Query parameters
- A podcast network or publisher name, e.g. The Ringer, Wondery, Exactly Right.
publisherstringrequired - Most shows to return per publisher.
limitintegerDefault
60
Headers
- Run this request inside one of the network's own subnetworks: its id, handle or name, as
X-Listener-WorkspacestringGET /v1/subnetworksreturns them (names and handles are matched without regard to case). Network credentials only. A subnetwork that is a group of shows (kind: "group") limits the request to those shows: lists, analytics and clusters cover only them, a show outside it answers 404, and a write that names a show outside it is refused; campaigns, reports and the team stay the network's, and requests that change the network itself (the network profile, adding or removing shows, subnetworks, team) answer 400. A subnetwork with its own account (has_login: true) is opened as that account, so every resource is the subnetwork's own.GET /v1/mesays which one the request ran in (note). Omit the header, or sendnetwork, for the whole network. A value that is not one of this network's subnetworks answers 400parameter_invalid; a subnetwork or single-show credential cannot select anything. Sent as a header only: there is noworkspacequery parameter on/v1. Webhook endpoints, events and connections always belong to the credential's own workspace.
Returns
200OK
objectstringrequiredurlstring (uri)requireddataarray of objectsrequiredShow child attributesHide child attributes
has_morebooleanrequired- Pass as
next_cursorstringrequiredcursorto get the next page; null on the last page. - The result's non-list fields (window, coverage, freshness, totals, note …).
metaobjectrequiredShow child attributesHide child attributes
Errors
400parameter_invalid401credential_invalid403scope_missing404resource_not_found429rate_limited500internal_error
Look up X profiles
/v1/x/profiles/lookupRead public X (Twitter) profiles: for each handle or profile link in profiles, whether the account exists, its display name, bio, links, the accounts its bio mentions and its follower count. Use it when you have X profiles instead of show names and need to know which podcast each belongs to before GET /v1/podcasts/search and POST /v1/shows. apple_ids are Apple Podcasts ids found in the profile's links. exists: false means X has no such account; exists: null means that lookup failed. Inputs that are not X handles come back in meta.not_profiles. Up to 60 profiles per request.
Headers
- Run this request inside one of the network's own subnetworks: its id, handle or name, as
X-Listener-WorkspacestringGET /v1/subnetworksreturns them (names and handles are matched without regard to case). Network credentials only. A subnetwork that is a group of shows (kind: "group") limits the request to those shows: lists, analytics and clusters cover only them, a show outside it answers 404, and a write that names a show outside it is refused; campaigns, reports and the team stay the network's, and requests that change the network itself (the network profile, adding or removing shows, subnetworks, team) answer 400. A subnetwork with its own account (has_login: true) is opened as that account, so every resource is the subnetwork's own.GET /v1/mesays which one the request ran in (note). Omit the header, or sendnetwork, for the whole network. A value that is not one of this network's subnetworks answers 400parameter_invalid; a subnetwork or single-show credential cannot select anything. Sent as a header only: there is noworkspacequery parameter on/v1. Webhook endpoints, events and connections always belong to the credential's own workspace. - Any unique string (≤ 255 chars). Replays within 24 h return the stored response with Idempotent-Replayed: true.
Idempotency-Keystring
Request body
application/json- X handles or profile links, e.g. @acquiredfm or https://x.com/lexfridman. Not show names.
profilesarray of stringsrequired
Returns
200OK
objectstringrequiredurlstring (uri)requireddataarray of objectsrequiredShow child attributesHide child attributes
has_morebooleanrequired- Pass as
next_cursorstringrequiredcursorto get the next page; null on the last page. - The result's non-list fields (window, coverage, freshness, totals, note …).
metaobjectrequiredShow child attributesHide child attributes
Errors
400parameter_invalid401credential_invalid403scope_missing404resource_not_found409confirmation_required413body_too_large429rate_limited500internal_error
Find a brand's logo and colours
/v1/research/brand-assetsFind the logo of a network, show or brand as image links that are safe to use, plus its brand colours. Every entry in assets was downloaded and confirmed to be an image before it was returned, with its real format, width, height and bytes, the page it came from (source_page) and, when stored is true, a copy on Listener's image CDN as url, so the link does not rot or block hotlinking. url can be sent as network_logo to PATCH /v1/network, as logo to PATCH /v1/subnetworks/{subnetwork_id}, or as podcast_logo to PATCH /v1/shows/{show_id}. Sources, most trusted first: Podchaser's network listing, the brand's own site (pass website when you know it), Wikimedia Commons, Apple Podcasts cover art. Check kind before using an asset: show_artwork is one show's cover and not a network's logo, social_image is usually a banner, and a Wikimedia file is matched by name only. An empty assets means nothing could be verified; rejected lists each candidate that failed and why. colors is null when the site declares none. Counts as one brand lookup against a daily allowance per workspace.
Query parameters
- The brand, network or show, e.g. Example Audio.
namestringrequired - The brand's own site when you know it (example.com). The surest source for its logo and colours.
websitestring (uri) - What the name is: a podcast network, a show, or a brand that is neither (a sponsor).
kindstringbrandskips the podcast directories.One ofanynetworkshowbrandDefault
"any" - Most images to return.
limitintegerDefault
4
Headers
- Run this request inside one of the network's own subnetworks: its id, handle or name, as
X-Listener-WorkspacestringGET /v1/subnetworksreturns them (names and handles are matched without regard to case). Network credentials only. A subnetwork that is a group of shows (kind: "group") limits the request to those shows: lists, analytics and clusters cover only them, a show outside it answers 404, and a write that names a show outside it is refused; campaigns, reports and the team stay the network's, and requests that change the network itself (the network profile, adding or removing shows, subnetworks, team) answer 400. A subnetwork with its own account (has_login: true) is opened as that account, so every resource is the subnetwork's own.GET /v1/mesays which one the request ran in (note). Omit the header, or sendnetwork, for the whole network. A value that is not one of this network's subnetworks answers 400parameter_invalid; a subnetwork or single-show credential cannot select anything. Sent as a header only: there is noworkspacequery parameter on/v1. Webhook endpoints, events and connections always belong to the credential's own workspace.
Returns
200OK
namestringrequiredcomputed_atstring (date-time)requiredcache_age_secondsnumberrequiredobjectstringrequiredconfiguredbooleanDefault
truewebsitestring (uri)- given | podchaser (the website on the brand's Podchaser listing)
website_sourcestring - Verified images, the likeliest logo first.
assetsarray of objectsShow child attributesHide child attributes
colorsobjectShow child attributesHide child attributes
palettearray of strings- Per source: ok | none | nothing_usable (it offered files, none passed the checks) | failed | not_configured | skipped.
sourcesmap of string candidates_checkedintegerDefault
0rejectedarray of objectsShow child attributesHide child attributes
notestring
Errors
400parameter_invalid401credential_invalid403scope_missing404resource_not_found429rate_limited500internal_error
Public stats for shows outside the workspace
/v1/research/show-statsPublic figures for shows and networks that are not in your workspace (competitors, prospects), each with its source and date. Name up to 10 shows (a title, an Apple Podcasts id or an Apple Podcasts link), or pass publisher to take a network's top shows and, where available, a network-level audience estimate. Each show carries metrics: Apple Podcasts rating, rating count and chart rank (overall and in its genre, top 200), episode count and cadence, Podchaser's Power Score, audience estimate range and chart positions when the data plan includes them, and public follower counts. Each metric has a kind (public_count, rating, chart_rank or third_party_estimate), a source and an as_of date. followers uses the same platform keys as GET /v1/shows/{show_id}/platforms, so sending your own show names through this endpoint gives a public side-by-side. These are public figures and estimates, not measured downloads: they are not like-for-like with your workspace's analytics (see disclaimer and workspace_equivalents). A missing metric was not available (not_available says why), which is not zero; a chart rank of null means outside the top 200. include_social: true also reads each show's public social accounts live, at one scraper credit per account (credits_used). A show that cannot be found comes back with found: false.
- Send at least one of:
showsorpublisher(otherwise 400parameter_missing/parameter_invalidnames the parameter).
Headers
- Run this request inside one of the network's own subnetworks: its id, handle or name, as
X-Listener-WorkspacestringGET /v1/subnetworksreturns them (names and handles are matched without regard to case). Network credentials only. A subnetwork that is a group of shows (kind: "group") limits the request to those shows: lists, analytics and clusters cover only them, a show outside it answers 404, and a write that names a show outside it is refused; campaigns, reports and the team stay the network's, and requests that change the network itself (the network profile, adding or removing shows, subnetworks, team) answer 400. A subnetwork with its own account (has_login: true) is opened as that account, so every resource is the subnetwork's own.GET /v1/mesays which one the request ran in (note). Omit the header, or sendnetwork, for the whole network. A value that is not one of this network's subnetworks answers 400parameter_invalid; a subnetwork or single-show credential cannot select anything. Sent as a header only: there is noworkspacequery parameter on/v1. Webhook endpoints, events and connections always belong to the credential's own workspace. - Any unique string (≤ 255 chars). Replays within 24 h return the stored response with Idempotent-Replayed: true.
Idempotency-Keystring
Request body
application/json- Shows by name, Apple Podcasts id or Apple Podcasts link. Shows from any publisher, including the workspace's own for a side-by-side.
showsarray of strings - A network or publisher name: adds its top shows and, where Podchaser has it, a network-level audience estimate.
publisherstring - Also read each show's public social accounts live for follower and subscriber counts. Costs one scraper credit per account (up to 4 per show).
include_socialbooleanDefault
false - Country for Apple ratings and charts.
countrystringDefault
"us" - Most shows to take from
publisher_show_limitintegerpublisher.Default
6
Returns
200OK
disclaimerstringrequiredcomputed_atstring (date-time)requiredcache_age_secondsnumberrequiredobjectstringrequiredshowsarray of objectsShow child attributesHide child attributes
networkobjectShow child attributesHide child attributes
countrystringDefault
"us"- For each kind of public figure, the workspace's own figure it can (or cannot) be set beside.
workspace_equivalentsmap of string - What could not be read and why (a source not configured, a field outside the data plan).
not_availablearray of strings - Scraper credits spent on live social profile reads (include_social).
credits_usedintegerDefault
0 podchaser_requestsintegerDefault
0podchaser_requests_remainingintegernotestring
Errors
400parameter_invalid401credential_invalid403scope_missing404resource_not_found409confirmation_required413body_too_large429rate_limited500internal_error
Parse an insertion order
/v1/insertion-orders/parseRead a PDF insertion order and return the extracted order, line items matched to workspace shows, rows that could not be matched, and ready-to-use proposed_create_campaign_args for POST /v1/campaigns. Writes nothing. Send exactly one source: library_file_id (from GET /v1/library/files), file_url (https, up to 4 MB) or file_base64 (upload_id refers to a file attached in Listener's agent chat). show_ids narrows show matching. Review unresolved_line_items before creating the campaign; never guess a show or impressions.
- Send at least one of:
library_file_idorfile_urlorfile_base64orupload_id(otherwise 400parameter_missing/parameter_invalidnames the parameter).
SDKlistener.insertionOrders.parse()client.insertion_orders.parse()
Headers
- Run this request inside one of the network's own subnetworks: its id, handle or name, as
X-Listener-WorkspacestringGET /v1/subnetworksreturns them (names and handles are matched without regard to case). Network credentials only. A subnetwork that is a group of shows (kind: "group") limits the request to those shows: lists, analytics and clusters cover only them, a show outside it answers 404, and a write that names a show outside it is refused; campaigns, reports and the team stay the network's, and requests that change the network itself (the network profile, adding or removing shows, subnetworks, team) answer 400. A subnetwork with its own account (has_login: true) is opened as that account, so every resource is the subnetwork's own.GET /v1/mesays which one the request ran in (note). Omit the header, or sendnetwork, for the whole network. A value that is not one of this network's subnetworks answers 400parameter_invalid; a subnetwork or single-show credential cannot select anything. Sent as a header only: there is noworkspacequery parameter on/v1. Webhook endpoints, events and connections always belong to the credential's own workspace. - Any unique string (≤ 255 chars). Replays within 24 h return the stored response with Idempotent-Replayed: true.
Idempotency-Keystring
Request body
application/jsonupload_idstringlibrary_file_idstringfile_urlstring (uri)file_base64stringfile_namestring- Shows this request may reference (default: every show in the workspace).
show_idsarray of strings - true returns exactly what would be written without writing anything (the API's test mode).
dry_runbooleanDefault
false
Returns
200OK
- False when this server cannot reach the app's extractor (internal key / app URL missing); nothing was parsed.
configuredbooleanrequired computed_atstring (date-time)requiredcache_age_secondsnumberrequiredobjectstringrequiredokbooleanDefault
truesourceobjectShow child attributesHide child attributes
- The extracted InsertionOrder (ioNumber, advertiser, flight, lineItems[], confidence, sourceQuotes …).
ioobject - The app's CampaignPlan as returned (camelCase); proposed_create_campaign_args is the same plan in
planobjectPOST /v1/campaigns's shape. - Exactly the argument names `
proposed_create_campaign_argsobjectPOST /v1/campaigns` accepts, ready to pass through.Show child attributesHide child attributes
- Line items whose show could not be matched to a workspace show; ask the user, never guess.
unresolved_line_itemsarray of objectsShow child attributesHide child attributes
warningsarray of strings- The extraction model the app used.
modelstring notestring
Errors
400parameter_invalid401credential_invalid403scope_missing404resource_not_found409confirmation_required413body_too_large429rate_limited500internal_error