Search ad libraries
/v1/ads/searchThe Meta, TikTok or Google ad library, by keyword or by advertiser. Pass exactly one of query or advertiser. Keyword searches are always live.
Meta
- Advertiser: a Facebook Page id, Page URL or name.
- Ambiguous name: a name several Pages carry is a free 409
advertiser_ambiguouswithcandidates(page_id,name,page_url,instagram,ad_count), never a guess. Estimates too, when stored Advertisers share the name. - Stored results: an
advertisersearch by Page id or URL within 6 hours of a complete observation is served from storage at the same price unless it setscountry, sayingcachedandas_of. - Complete observation: a
status: allsearch with no other filter read to the end, or a freshGET /v1/advertisers/{page_id}. - Filters:
country(omit for every country),status(running by default),kind(commercial by default),media_type,placementsand a start-date range. - Paging: a
limitup to 500, read across library pages.next_cursorgives more. - Storage: every Meta Ad returned is stored with its Advertiser and a Snapshot, one Run item each.
TikTok
- Regions: the library holds only Ads delivered in the EU/EEA, Switzerland, the UK and Turkey.
- Results: one page per call, stored (media archived once looked up), with
spendandimpressionsnull. - Not available:
country, Meta-only filters andanalyze. - Advertiser: an advertiser id (once stored), a library.tiktok.com advertiser URL or a name.
- Ambiguous name: a name several advertisers carry (case counts) is the same free 409, with
candidates{ advertiser_id, name, url }. Pass one'surlback.
- No keyword search:
queryis refused. Pass anARid, Transparency URL, domain or name. - Names: pass
country, or use a domain orARid. - Filters:
media_typeandplacementsare separate:youtubedoes not imply video.placementstakes one value. - Paging:
limitup to 200; past 40, poll the Run id. - Failed details: returned with
details_failed, uncharged; the Run ispartial.
Analysis
- Scope:
analyze: trueanalyses the first 50 Ads from our archived media, the ad copy as context. - Video Ads: the video set (transcript, hook, offer, angle, persuasion, tone, visual, safety, detected shots, product first seen, opening frame).
- Image and carousel Ads: the image set (copy angle, offer, CTA, visual format, topics, sentiment).
- Reuse: computed once per Ad and version, reused by later Runs at the same charge. Every Ad carries any stored analysis.
- Timing: after the read, so expect a 202 and poll.
- Failures: a failed or refused Ad is uncharged and makes the Run
partial. A Run with no analysis fails, uncharged. - Google: first distinct media only, video by YouTube id. Text or unreadable Ads are refused:
intelligence_error. Those, and media broken in the pass, cost their delivery; the Run ispartial.
Library failures
- Part-way: the Run is left
partial, charged for the Ads delivered, withincompletesaying why andnext_cursorresuming. - Unreachable: the Run (and an estimate) fails with
source_unavailable, uncharged.
Open in Playground (no API Key needed)
Price
Meta: 1 credit per Ad delivered, plus 20 credits per Ad analysed with analyze, computed or already stored; the estimate quotes limit Ads, analysed up to the cap. TikTok: 3 credits per page. Google: 3 credits per Ad, plus analysis.
Supports "estimate": true in the body: the reply is the price in Credits and whether it would be cached, with no Run created and nothing charged.
A cached result costs the same as a fresh one; cached says which you got.
Parameters
| Name | In | Type | Required | Default | Description |
|---|---|---|---|---|---|
Idempotency-Key | header | string | Optional | — | 1-255 printable ASCII characters. The same key and payload returns the original Run (202 while running); a different payload or operation is a 409 idempotency_conflict. |
Request body
application/json
object
librarystring required one ofmeta,tiktok,googlemeta, the Meta Ad Library (Facebook and Instagram Ads, priced per Ad delivered),tiktok, the TikTok ad library (Ads delivered in the EU/EEA, Switzerland, the UK and Turkey, priced per page), orgoogle, Google's Ads Transparency Center (priced per Ad delivered).querystring length at least 1 Keywords to search Ads for. Pass this oradvertiser, exactly one. A Meta keyword search is always fetched live. Google has no keyword search and refuses it.advertiserstring length at least 1 Every Ad of one advertiser instead of a keyword search; pass this orquery, exactly one. Meta: a Facebook Page id, Page URL or name. TikTok: the library's advertiser id, a library.tiktok.com URL or a name. Google: anARid, a Transparency URL, a domain (Ads across its advertisers) or a name; a dotted name with no space (Dr.Oetker) reads as a domain. A name several advertisers carry is 409advertiser_ambiguouswith candidates, not charged.countrystring length 2 to 2 Two-letter country code. Omitted searches every country, except that a Googleadvertisername may be looked up in the US only: passcountrywith a name, or use a domain orARid. Meta and Google; the TikTok library (Ads delivered in the EU/EEA, Switzerland, the UK and Turkey, searched together) refuses it.statusstring one ofactive,inactive,allRunning (active, the default), stopped (inactive) orall. Meta only; the TikTok and Google libraries refuse it.kindstring one ofcommercial,political,issue,allcommercial(the default),political,issueorall. Meta only; the TikTok and Google libraries refuse it.media_typestring one ofvideo,image,carousel,textOnly Ads of this format; omitted means every format. Meta: video, image, carousel. Google: video, image, text. The TikTok library refuses it.placementsarray of string items 1 to 4 Only Ads placed on at least one of these. Meta: facebook, instagram, messenger, audience_network. Google, one per call: youtube, google_search, google_shopping, google_maps, google_play;youtubedoes not imply video, so addmedia_typefor that. The TikTok library refuses it.started_afterstring ISO date or timestamp; Ads that started on or after it. Meta and Google; the TikTok library refuses it.started_beforestring ISO date or timestamp; Ads that started before it. Meta and Google; the TikTok library refuses it.limitinteger value 1 to 500 Meta: default 50, at most 500, fetched across as many library pages as it takes. TikTok: default 25, at most 30. Google: default 40, at most 200; past 40, a Run id to poll unless you passwait.cursorstring length at least 1 Thenext_cursorof the previous page, to read the next one with the samelibraryand filters. Each page is charged.order_bystring one ofrelevance,impressions,winner,days_running,start_daterelevance(the default) keeps the library's order.impressionsasks the Meta library for its own impressions order, highest first: the library's order changes andnext_cursorfollows it, and anadvertisersearch with it is always read live, never from stored Ads. On a keyword search the library's default order was already its impressions order when checked on 2026-11-15, soimpressionsmay return the same order asrelevance.winnersorts by winner Score,days_runningby days run,start_datenewest first: highest first, unknowns last; these sort the returned page, andnext_cursorstill follows the library's order. Meta only; the TikTok and Google libraries accept onlyrelevance.matchstring one ofany_words,exact_phraseMeta keyword search only:any_words(the default) matches Ads with the query's words in any order;exact_phrasematches the exact phrase. Refused withadvertiserand on TikTok and Google.languagestring matches^[A-Za-z]{2}$Meta only: Ads in one content language, as an ISO 639-1 code such ases, filtered by the library; anadvertisersearch with it is always read live. Refused on TikTok and Google.analyzeboolean Ad analysis on the first 50 Ads: 20 credits per Ad, computed or stored. Meta and Google; TikTok refuses it.waitnumber value 0 to 120 Default30Seconds to hold the response open before returning a running Run to poll. Default 30, max 120.max_creditsinteger value at least 0 As in the query.estimateboolean Meta: If a source the call would read is unavailable and the cache cannot answer, the estimate addsunavailable(the{ platform, capability }parts it cannot reach), or is a 503source_unavailablewhen it can reach none. A TikTok library estimate quotes the price without checking.
Responses
200 OK
The Run finished inside the wait budget: { run, result }. With estimate=true, { estimate_credits, cached } instead.
any of 2 shapes
Option 1 object The envelope every charged operation answers with:
{ run }while the Run is running (pluspoll_urlon the 202), joined byresultonce it completes orerroronce it fails.runobject required Every charged operation creates a Run; the envelope is the same inline or polled.idstring requiredkindstring required What was run, e.g.video_lookup.statusstring required one ofrunning,completed,partial,failedpartialkeeps the completed items and charges for them, up to what the Balance covers;failedcharges nothing.created_atstring required RFC 3339.completed_atstring required nullable Null while the Run is still running.charge_creditsinteger required What this Run actually cost, in Credits. A stored answer costs the same as a fresh one.list_price_creditsinteger required The full price of the work asked for, in Credits. Equal tocharge_creditsunless the Run charged for only part of it.cachedboolean required True when a stored result answered without a fresh fetch.progressobject A running Research'sstageand counts so far, such asanalysedofshortlisted; a count is absent until known. Absent once the Run settles and on other kinds.stagestring required one ofkeywords,searching,reading_creators,filtering,analysing,writing_digestkeywordsinteger value at least 0creatorsinteger value at least 0creators_readinteger value at least 0searchesinteger value at least 0foundinteger value at least 0judgedinteger value at least 0keptinteger value at least 0dropped_off_topicinteger value at least 0dropped_unsureinteger value at least 0shortlistedinteger value at least 0analysedinteger value at least 0updated_atstring required
resultobject required A page of a list.itemsholds the page; passnext_cursorback ascursorfor the next one.next_cursorstring required nullable Pass back ascursor. Null on the last page.librarystring required one ofmeta,tiktok,googleitemsarray of object requiredlibrarystring required one ofmeta,tiktok,googleidstring requiredurlstring required nullableadvertiserobject requiredidstring required nullablenamestring required nullablelikesinteger nullable Deprecated: useextras.meta.advertiser_likes.categoriesarray of string nullable Deprecated: useextras.meta.advertiser_categories.
partnerobject nullable Deprecated: useextras.meta.partner.deliveryobject required When and where the Ad ran, on every library. Its fields are on Objects and schemas.is_activeboolean required nullable Deprecated: usedelivery.is_active.first_shownstring required nullable Deprecated: usedelivery.first_shown.last_shownstring required nullable Deprecated: usedelivery.last_shown.placementsarray of string required Deprecated: usedelivery.placements.creativeobject requiredmedia_typestring required nullable one ofvideo,image,carousel,textThe library's label, on every library; Google text Ads staytext.versionsarray of object required One per Meta card or Google variation, in order; else exactly one. Its fields are on Objects and schemas.titlestring required nullable Useversions[].headline.bodystring required nullable Useversions[].body.ctastring required nullable Useversions[].cta.link_urlstring required nullable Useversions[].link_url.formatstring required nullable Usecreative.media_type.image_urlsarray of string required Useversions[].media.video_urlsarray of string required Useversions[].media.thumbnail_urlsarray of string required Useversions[].media.cta_typestring nullable Useversions[].cta_type.link_descriptionstring nullable Useversions[].description.display_domainstring nullable Useversions[].display_url.cardsarray of object nullable Useversions(card i isversions[i]).titlestring required nullablebodystring required nullablelink_descriptionstring required nullablectastring required nullablecta_typestring required nullablelink_urlstring required nullableimage_urlstring required nullablevideo_urlstring required nullablethumbnail_urlstring required nullable
reachobject required Deprecated: usedisclosure(each string is a range'sraw).impressionsstring required nullablespendstring required nullablecurrencystring required nullableaudiencestring required nullable
disclosureobject required Disclosed delivery volume as ranges. Meta: political spend and impressions, EU reach (audience). TikTok:audiencebucket, lookupimpressions. Google: impressions, political spend. Its fields are on Objects and schemas.kindstring nullable one ofcommercial,political,issueMeta and Google.media_typestring nullable one ofvideo,image,carousel,textDeprecated: usecreative.media_type.countriesarray of string nullable Deprecated: usedelivery.countries.variant_countnumber nullable Deprecated: useextras.meta.variant_count.variant_group_idstring nullable Deprecated: useextras.meta.variant_group_id.days_runninginteger required nullable Deprecated: usedelivery.days_running.ai_generatedboolean nullable Deprecated: useextras.meta.ai_generated.gatedboolean nullable Deprecated: useextras.meta.gated.variationsarray of object Usecreative.versions(variation i isversions[i]).headlinestring required nullabledescriptionstring required nullableall_textstring required nullabledestination_urlstring required nullablevisible_urlstring required nullableimage_urlsarray of string requiredvideo_idstring required nullableyoutube_urlstring required nullable
details_failedboolean Deprecated: useextras.google.details_failed.archivedboolean True when every media URL is our permanent archived copy; false while any is still the library's expiring URL (retried on the next sighting).winner_scoreobject nullable Deprecated: useextras.meta.winner_score.intelligenceany of 2 shapes nullable Present when already computed for this Ad, or asked for withanalyze; null underanalyzewhen it could not be computed.Option 1 object Video Ads: the full video analysis, read from the archived video with the ad copy as context, plus
offer,copy, and detected shots, the product's first appearance and the opening frame understructure.versioninteger requiredmodelstring requiredcomputed_atstring requiredsourcestring requiredcontentobject requiredsummarystring requirednichestring requiredlanguagesarray of string requiredcontent_stylesarray of string requiredkeywordsarray of object requiredkeywordstring requiredcategorystring requiredsentimentnumber required
transcriptstring required nullable What is said, one line per line: the Platform's captions or speech-to-text, never the scene breakdown. Empty with no speech; null when it could not be read.transcript_sourcestring required nullable one ofcaption,auto_caption,whispercaption: the Platform's captions.auto_caption: its automatic captions (YouTube, TikTok), also captions; wording approximate.whisper: speech-to-text. Null with a nulltranscriptand on analyses before 2026-11-09.transcript_segmentsarray of object required nullable Timed lines (ms from the start), to see when the hook lands: the Platform's timed captions, else speech-to-text on the audio. Measured, unlike the approximatestructure.scenes. Empty with no speech; null when not measured (a YouTube Video without captions, older analyses).start_msinteger requiredend_msinteger requiredtextstring required
hookobject requiredopening_linestring required nullabletypestring requiredvisual_hookstring required nullablerationalestring required nullable
persuasionobject requiredcall_to_actionobject requiredtypestring requiredtextstring required nullable
sponsoredboolean required Whether the video is plausibly a paid promotion. Always true when the Platform labels it an ad or a paid partnership.sponsorship_signalsarray of string requiredbrands_and_productsarray of object requirednamestring requiredkindstring requiredprominencestring required
trend_referencesarray of object requirednamestring requiredkindstring required
toneobject requiredsentiment_labelstring requiredsentiment_scorenumber requiredprimary_emotionstring requiredemotion_intensitynumber required nullableemotion_rationalestring required nullablespeaking_stylestring requiredspeaking_style_notesstring required nullable
visualobject requiredformatstring requiredsettingstring requiredface_visibilitystring requiredon_screen_textarray of string requiredhas_on_screen_captionsboolean requiredcamera_notesstring required nullablelighting_notesstring required nullableelementsany
safetyobject requiredbrand_safety_tierstring requiredreasonsarray of string requirednotesstring required nullable
structureobject required When things happen inside the creative: the timed scenes every analysis carries, plus the shots detected, when the product is first seen and the opening frame on a video Ad.scenesarray of object required Timed scenes from the scene breakdown, approximate to about a second. Empty when it has none, as on a photo carousel.start_msinteger required Approximate scene start, ms from the start.end_msinteger required Approximate scene end, ms from the start.visualstring required nullabletext_overlaystring required nullable Text shown in this scene, at its first appearance only.speechstring required nullableaudiostring required nullable Notable sound effects or music.
slidesarray of object required nullableslideinteger requiredvisualstring required nullabletext_overlaystring required nullable
shotsarray of object required nullable The detected shots in order, each from one cut to the next. A cut is a frame whose ffmpeg scene score is over 0.2. On 29 labelled Ads this found 86% of hard cuts within 500 ms (median error 67 ms) and 61% of jump cuts overall, but none on UGC Ads. Null when detection failed, and on analysis stored before shots.start_msinteger required Shot start: the cut before it, or 0.end_msinteger required Shot end: the next cut, or the video's end.
cuts_per_minutenumber required nullable Detected cuts per minute of video, to two decimals. Null whenevershotsis.avg_shot_msinteger required nullable The video's length over its number of shots, in ms. Null whenevershotsis.product_first_seen_msinteger required nullable When the promoted product first appears (the item, its packaging or logo, or an app's screen), as the start of that scene in ms, so approximate to one scene. On 26 labelled Ads that show one, it was within 3 s of the labelled time on 23 (88%). Null when no product is shown, and on analysis stored before it.first_framestring required nullable What the video's opening frame shows, as text: a description, not a time. Read from the first scene's**Opening Frame:**line in the scene breakdown. Checked against the video on 10 Ads, it was accurate on all 10. Null when the breakdown has no opening frame, and on analysis stored before it.
pipelinestring required alwaysvideoofferobject required nullable The offer, in the same types as an image Ad'soffer. Null when the extraction failed and on analysis stored before this field.typestring requiredtextstring required nullable
copyobject required nullable The persuasion angle, in the same values as an image Ad'scopy.angle. Null when the extraction failed and on analysis stored before this field.anglestring requiredrationalestring required nullable
Option 2 object Image and carousel Ads: the analysis an image can carry, read from the archived images with the ad copy as context.
pipelinestring required alwaysimageversioninteger requiredmodelstring requiredcomputed_atstring requiredimages_analyzedinteger requiredsummarystring requiredcopyobject requiredanglestring requiredrationalestring required nullableheadlinestring required nullable
offerobject requiredtypestring requiredtextstring required nullable
call_to_actionobject requiredtypestring requiredtextstring required nullable
visualobject requiredformatstring requiredon_image_textarray of string required
topicsarray of string requiredtoneobject requiredsentiment_labelstring requiredsentiment_scorenumber required
intelligence_errorobject Whyanalyzeleftintelligencenull: no analysis charge. Its fields are on Errors.advertiser_accountobject nullable Deprecated: useextras.tiktok.account.targetingobject nullable Deprecated: useaudience(same content). Its fields are on Objects and schemas.audienceobject required nullable Lookup only. TikTok: where and to whom the ad library says the Ad was delivered, impressions as ranges per country by age and gender; null when the Ad came from Creative Center. Meta: EU-delivered Ads only, reach (not impressions) per country by age and gender, with the targeted ages, genders and locations; null for an Ad not delivered in the EU, when the details could not be read, on search and on Google. Its fields are on Objects and schemas.payerstring nullable Deprecated: useextras.meta.payer.beneficiarystring nullable Deprecated: useextras.meta.beneficiary.performanceobject nullable Deprecated: useextras.tiktok.performance.objectivestring nullable Deprecated: useextras.tiktok.objective.extrasobject required Fields only one library fills, under the Ad's library key only; each matches the deprecated top-level field it copies. Its fields are on Objects and schemas.
totalnumber required nullable Meta: the library's count, capped (50,001 seen); forkind: commercialthat count less the political and issue count. Null when either is capped or a filter Meta cannot apply ran after fetching (kindpolitical or issue,media_typeother thanvideo, a start date). Elsewhere what the library reports; on Google an estimate, null with any filter.cachedboolean Metaadvertisersearches only: true when the Ads were served from the advertiser's last complete observation (under 6 hours old) at the cached per-Ad price.as_ofstring Metaadvertisersearches only: when these Ads were observed in the library.incompleteobject Meta and Google, on apartialRun: the problem that stopped the read after some Ads were delivered. Google'sdetails_failedcounts the Ads markeddetails_failed.codestring requireddetailstring required
intelligenceobject Present only withanalyze: true: Ads within the cap, how many were computed or reused (both charged) or failed (not charged). Per-Ad outcomes page atGET /v1/runs/{id}/items.requestedinteger requiredcomputedinteger requiredreusedinteger requiredfailedinteger requiredcapinteger required
Option 2 object Returned instead of a Run when
estimate=true. Nothing is charged; some operations add members.estimate_creditsinteger required What the call would be charged, in Credits.cachedboolean required Whether a stored result can already answer. It does not change the price.
202 Accepted
Still running: { run }. Poll GET /v1/runs/{id}.
object
Still running. Poll poll_url (GET /v1/runs/{id}), waiting the 202's Retry-After seconds between polls.
runobject required Every charged operation creates a Run; the envelope is the same inline or polled. Its fields are on Poll or re-read a run.poll_urlstring required formaturiAbsolute URL ofGET /v1/runs/{id}, the body's copy of theLocationheader (for MCP). Present only whilerunning.
202 · Example
{
"run": {
"id": "run_8f2c1ad04b",
"kind": "ads_search",
"status": "running",
"created_at": "2026-09-08T09:14:02.418Z",
"completed_at": null,
"charge_credits": 0,
"list_price_credits": 0,
"cached": false
},
"poll_url": "https://www.shortsintel.com/v1/runs/run_8f2c1ad04b"
}400 Bad Request
invalid_request (a malformed id, wait, estimate or Idempotency-Key) or unsupported_platform, refused before any Run opens. Nothing is charged.
Codes: invalid_request, unsupported_platform. The problem body and every code are on Errors.
object
RFC 9457 problem document, served as application/problem+json. Branch on code, never on the prose. retryable and action say whether to retry and what to do next.
typestring requiredtitlestring requiredstatusinteger requiredcodestring required one ofmissing_authorization,invalid_key,key_revoked,key_expired,invalid_token,organization_not_selected,organization_access_revoked,connection_revoked,forbidden,key_scope_insufficient,invalid_request,unsupported_platform,unsupported_kind,kind_deprecated,focus_unsupported_kind,not_found,comment_not_found,video_too_long,video_too_old,feature_unavailable,not_analysable,idempotency_conflict,run_not_ready,advertiser_ambiguous,insufficient_balance,max_credits_exceeded,key_spend_cap_exceeded,rate_limit_exceeded,concurrency_limit_exceeded,tracker_limit_exceeded,webhook_limit_exceeded,webhook_rotation_in_progress,collection_limit_exceeded,collection_name_taken,collection_kind_mismatch,media_unavailable,vendor_error,source_unavailable,service_unavailable,internal_errorStable machine-readable code.detailstringerrorsarray of object Oninvalid_requestfrom a field that failed validation: one entry per problem, so you can find the field without parsingdetail. Absent when no single field is at fault, e.g. a body that is not JSON.pathstring required Dotted path of the field to fix, e.g.collection_ids.1orcursor. Empty for an issue with the request body as a whole.messagestring required What is wrong with that field.
request_idstring The request this problem answers, the same as itsX-Request-Idheader. Quote it to support.retryableboolean required Whether sending the same request again, after any wait named here, can succeed:truefor a rate or concurrency limit, an upstream outage, an internal error or a Run not yet settled;falsewhen the request must change or a person must act. Fixed percode.actionstring required The next step, in one sentence.remedystring What to do next, as the code's error reference page says it; fuller thanaction. On every problem a request answers with; a per-itemerrorinside a result may omit it.retry_after_secondsinteger value at least 0 Seconds to wait before retrying; the same as theRetry-Afterheader. Onrate_limit_exceeded,concurrency_limit_exceeded,source_unavailableandservice_unavailable.expired_atstring When the key expired. Onkey_expired.resets_atstring When the request window (rate_limit_exceeded) or the key's month (key_spend_cap_exceeded) resets.limitinteger The limit that was hit, on the*_limit_exceededcodes.runninginteger Runs in flight. Onconcurrency_limit_exceeded.activeinteger Active Trackers or webhook endpoints. Ontracker_limit_exceededandwebhook_limit_exceeded.requestedinteger Trackers the request would resume. Ontracker_limit_exceededfrom a Collection action.countinteger Collections held. Oncollection_limit_exceeded.balance_creditsinteger The Balance, in Credits. Oninsufficient_balance.required_creditsinteger What the call needs, in Credits (the worst case where quoted). Oninsufficient_balance.max_creditsinteger The cap the call sent. Onmax_credits_exceeded.estimate_creditsinteger The call's worst-case quote, in Credits. Onmax_credits_exceededandkey_spend_cap_exceeded.cap_creditsinteger The key's monthly cap. Onkey_spend_cap_exceeded.spent_creditsinteger The key's Charges this UTC month. Onkey_spend_cap_exceeded.reserved_creditsinteger What the key's Runs in flight hold. Onkey_spend_cap_exceeded.endpointsarray of string The sources that could not answer. Onsource_unavailable.endpointstring The source that could not answer. Onsource_unavailable.candidatesarray of object The advertisers that carry the name, to ask again with. Onadvertiser_ambiguous.supported_kindsarray of string The kinds that are accepted. Onkind_deprecatedandfocus_unsupported_kind.featurestring The switched-off option, e.g.download. Onfeature_unavailable.duration_secondsnumber The video's length. Onvideo_too_long.max_duration_secondsnumber The longest video accepted. Onvideo_too_long.posted_atstring When the video was posted. Onvideo_too_old.max_age_daysnumber The oldest video scored, in days. Onvideo_too_old.overlap_expires_atstring When the previous secret stops working. Onwebhook_rotation_in_progress.scopestring alwaysread_onlyThe key's scope. Onkey_scope_insufficient.requiredstring alwaysfullThe scope the call needs. Onkey_scope_insufficient.collection_idstring The Collection that already has the name. Oncollection_name_taken.collection_kindstring The Collection's kind. Oncollection_kind_mismatch.kindstring The kind that was offered. Oncollection_kind_mismatch.run_idstring The Run the Idempotency-Key already belongs to. Onidempotency_conflict.reasonstring A short machine-readable reason, where a code has several.reference_idstring Our reference for an unexpected failure, the same asrequest_id; quote it when reporting it.runobject The Run, on a failed Run's body, so its id is kept.idstring requiredkindstring required What was run, e.g.video_lookup.statusstring required one ofrunning,completed,partial,failedpartialkeeps the completed items and charges for them, up to what the Balance covers;failedcharges nothing.created_atstring required RFC 3339.completed_atstring required nullable Null while the Run is still running.charge_creditsinteger required What this Run actually cost, in Credits. A stored answer costs the same as a fresh one.list_price_creditsinteger required The full price of the work asked for, in Credits. Equal tocharge_creditsunless the Run charged for only part of it.cachedboolean required True when a stored result answered without a fresh fetch.progressobject A running Research'sstageand counts so far, such asanalysedofshortlisted; a count is absent until known. Absent once the Run settles and on other kinds.stagestring required one ofkeywords,searching,reading_creators,filtering,analysing,writing_digestkeywordsinteger value at least 0creatorsinteger value at least 0creators_readinteger value at least 0searchesinteger value at least 0foundinteger value at least 0judgedinteger value at least 0keptinteger value at least 0dropped_off_topicinteger value at least 0dropped_unsureinteger value at least 0shortlistedinteger value at least 0analysedinteger value at least 0updated_atstring required
errorobject The same problem, nested, on a failed Run's body.
400 · Example
{
"type": "https://www.shortsintel.com/docs/reference/errors/invalid_request",
"title": "Invalid request",
"status": 400,
"code": "invalid_request",
"detail": "`estimate` must be `true` or `false`.",
"retryable": false,
"action": "Fix the field named in `detail`, then send the corrected request."
}401 Unauthorized
missing_authorization, invalid_key, key_revoked, key_expired or invalid_token.
Codes: missing_authorization, invalid_key, key_revoked, key_expired, invalid_token. The problem body and every code are on Errors.
object
RFC 9457 problem document, served as application/problem+json. Branch on code, never on the prose. retryable and action say whether to retry and what to do next.
typestring requiredtitlestring requiredstatusinteger requiredcodestring required one ofmissing_authorization,invalid_key,key_revoked,key_expired,invalid_token,organization_not_selected,organization_access_revoked,connection_revoked,forbidden,key_scope_insufficient,invalid_request,unsupported_platform,unsupported_kind,kind_deprecated,focus_unsupported_kind,not_found,comment_not_found,video_too_long,video_too_old,feature_unavailable,not_analysable,idempotency_conflict,run_not_ready,advertiser_ambiguous,insufficient_balance,max_credits_exceeded,key_spend_cap_exceeded,rate_limit_exceeded,concurrency_limit_exceeded,tracker_limit_exceeded,webhook_limit_exceeded,webhook_rotation_in_progress,collection_limit_exceeded,collection_name_taken,collection_kind_mismatch,media_unavailable,vendor_error,source_unavailable,service_unavailable,internal_errorStable machine-readable code.detailstringerrorsarray of object Oninvalid_requestfrom a field that failed validation: one entry per problem, so you can find the field without parsingdetail. Absent when no single field is at fault, e.g. a body that is not JSON.pathstring required Dotted path of the field to fix, e.g.collection_ids.1orcursor. Empty for an issue with the request body as a whole.messagestring required What is wrong with that field.
request_idstring The request this problem answers, the same as itsX-Request-Idheader. Quote it to support.retryableboolean required Whether sending the same request again, after any wait named here, can succeed:truefor a rate or concurrency limit, an upstream outage, an internal error or a Run not yet settled;falsewhen the request must change or a person must act. Fixed percode.actionstring required The next step, in one sentence.remedystring What to do next, as the code's error reference page says it; fuller thanaction. On every problem a request answers with; a per-itemerrorinside a result may omit it.retry_after_secondsinteger value at least 0 Seconds to wait before retrying; the same as theRetry-Afterheader. Onrate_limit_exceeded,concurrency_limit_exceeded,source_unavailableandservice_unavailable.expired_atstring When the key expired. Onkey_expired.resets_atstring When the request window (rate_limit_exceeded) or the key's month (key_spend_cap_exceeded) resets.limitinteger The limit that was hit, on the*_limit_exceededcodes.runninginteger Runs in flight. Onconcurrency_limit_exceeded.activeinteger Active Trackers or webhook endpoints. Ontracker_limit_exceededandwebhook_limit_exceeded.requestedinteger Trackers the request would resume. Ontracker_limit_exceededfrom a Collection action.countinteger Collections held. Oncollection_limit_exceeded.balance_creditsinteger The Balance, in Credits. Oninsufficient_balance.required_creditsinteger What the call needs, in Credits (the worst case where quoted). Oninsufficient_balance.max_creditsinteger The cap the call sent. Onmax_credits_exceeded.estimate_creditsinteger The call's worst-case quote, in Credits. Onmax_credits_exceededandkey_spend_cap_exceeded.cap_creditsinteger The key's monthly cap. Onkey_spend_cap_exceeded.spent_creditsinteger The key's Charges this UTC month. Onkey_spend_cap_exceeded.reserved_creditsinteger What the key's Runs in flight hold. Onkey_spend_cap_exceeded.endpointsarray of string The sources that could not answer. Onsource_unavailable.endpointstring The source that could not answer. Onsource_unavailable.candidatesarray of object The advertisers that carry the name, to ask again with. Onadvertiser_ambiguous.supported_kindsarray of string The kinds that are accepted. Onkind_deprecatedandfocus_unsupported_kind.featurestring The switched-off option, e.g.download. Onfeature_unavailable.duration_secondsnumber The video's length. Onvideo_too_long.max_duration_secondsnumber The longest video accepted. Onvideo_too_long.posted_atstring When the video was posted. Onvideo_too_old.max_age_daysnumber The oldest video scored, in days. Onvideo_too_old.overlap_expires_atstring When the previous secret stops working. Onwebhook_rotation_in_progress.scopestring alwaysread_onlyThe key's scope. Onkey_scope_insufficient.requiredstring alwaysfullThe scope the call needs. Onkey_scope_insufficient.collection_idstring The Collection that already has the name. Oncollection_name_taken.collection_kindstring The Collection's kind. Oncollection_kind_mismatch.kindstring The kind that was offered. Oncollection_kind_mismatch.run_idstring The Run the Idempotency-Key already belongs to. Onidempotency_conflict.reasonstring A short machine-readable reason, where a code has several.reference_idstring Our reference for an unexpected failure, the same asrequest_id; quote it when reporting it.runobject The Run, on a failed Run's body, so its id is kept.idstring requiredkindstring required What was run, e.g.video_lookup.statusstring required one ofrunning,completed,partial,failedpartialkeeps the completed items and charges for them, up to what the Balance covers;failedcharges nothing.created_atstring required RFC 3339.completed_atstring required nullable Null while the Run is still running.charge_creditsinteger required What this Run actually cost, in Credits. A stored answer costs the same as a fresh one.list_price_creditsinteger required The full price of the work asked for, in Credits. Equal tocharge_creditsunless the Run charged for only part of it.cachedboolean required True when a stored result answered without a fresh fetch.progressobject A running Research'sstageand counts so far, such asanalysedofshortlisted; a count is absent until known. Absent once the Run settles and on other kinds.stagestring required one ofkeywords,searching,reading_creators,filtering,analysing,writing_digestkeywordsinteger value at least 0creatorsinteger value at least 0creators_readinteger value at least 0searchesinteger value at least 0foundinteger value at least 0judgedinteger value at least 0keptinteger value at least 0dropped_off_topicinteger value at least 0dropped_unsureinteger value at least 0shortlistedinteger value at least 0analysedinteger value at least 0updated_atstring required
errorobject The same problem, nested, on a failed Run's body.
401 · Example
{
"type": "https://www.shortsintel.com/docs/reference/errors/invalid_key",
"title": "Invalid key",
"status": 401,
"code": "invalid_key",
"detail": "That API key does not exist. Keys look like `sk_live_...` and are created in the console.",
"retryable": false,
"action": "Check the whole key was copied, or create a new key in the console."
}402 Payment Required
insufficient_balance: the Balance cannot cover the quoted price (the worst case for Research and enriched search). No Run opens and nothing is charged; a multi-item Run that runs short later charges its completed items up to the Balance and ends partial.
Code: insufficient_balance. The problem body and every code are on Errors.
object
RFC 9457 problem document, served as application/problem+json. Branch on code, never on the prose. retryable and action say whether to retry and what to do next.
typestring requiredtitlestring requiredstatusinteger requiredcodestring required one ofmissing_authorization,invalid_key,key_revoked,key_expired,invalid_token,organization_not_selected,organization_access_revoked,connection_revoked,forbidden,key_scope_insufficient,invalid_request,unsupported_platform,unsupported_kind,kind_deprecated,focus_unsupported_kind,not_found,comment_not_found,video_too_long,video_too_old,feature_unavailable,not_analysable,idempotency_conflict,run_not_ready,advertiser_ambiguous,insufficient_balance,max_credits_exceeded,key_spend_cap_exceeded,rate_limit_exceeded,concurrency_limit_exceeded,tracker_limit_exceeded,webhook_limit_exceeded,webhook_rotation_in_progress,collection_limit_exceeded,collection_name_taken,collection_kind_mismatch,media_unavailable,vendor_error,source_unavailable,service_unavailable,internal_errorStable machine-readable code.detailstringerrorsarray of object Oninvalid_requestfrom a field that failed validation: one entry per problem, so you can find the field without parsingdetail. Absent when no single field is at fault, e.g. a body that is not JSON.pathstring required Dotted path of the field to fix, e.g.collection_ids.1orcursor. Empty for an issue with the request body as a whole.messagestring required What is wrong with that field.
request_idstring The request this problem answers, the same as itsX-Request-Idheader. Quote it to support.retryableboolean required Whether sending the same request again, after any wait named here, can succeed:truefor a rate or concurrency limit, an upstream outage, an internal error or a Run not yet settled;falsewhen the request must change or a person must act. Fixed percode.actionstring required The next step, in one sentence.remedystring What to do next, as the code's error reference page says it; fuller thanaction. On every problem a request answers with; a per-itemerrorinside a result may omit it.retry_after_secondsinteger value at least 0 Seconds to wait before retrying; the same as theRetry-Afterheader. Onrate_limit_exceeded,concurrency_limit_exceeded,source_unavailableandservice_unavailable.expired_atstring When the key expired. Onkey_expired.resets_atstring When the request window (rate_limit_exceeded) or the key's month (key_spend_cap_exceeded) resets.limitinteger The limit that was hit, on the*_limit_exceededcodes.runninginteger Runs in flight. Onconcurrency_limit_exceeded.activeinteger Active Trackers or webhook endpoints. Ontracker_limit_exceededandwebhook_limit_exceeded.requestedinteger Trackers the request would resume. Ontracker_limit_exceededfrom a Collection action.countinteger Collections held. Oncollection_limit_exceeded.balance_creditsinteger The Balance, in Credits. Oninsufficient_balance.required_creditsinteger What the call needs, in Credits (the worst case where quoted). Oninsufficient_balance.max_creditsinteger The cap the call sent. Onmax_credits_exceeded.estimate_creditsinteger The call's worst-case quote, in Credits. Onmax_credits_exceededandkey_spend_cap_exceeded.cap_creditsinteger The key's monthly cap. Onkey_spend_cap_exceeded.spent_creditsinteger The key's Charges this UTC month. Onkey_spend_cap_exceeded.reserved_creditsinteger What the key's Runs in flight hold. Onkey_spend_cap_exceeded.endpointsarray of string The sources that could not answer. Onsource_unavailable.endpointstring The source that could not answer. Onsource_unavailable.candidatesarray of object The advertisers that carry the name, to ask again with. Onadvertiser_ambiguous.supported_kindsarray of string The kinds that are accepted. Onkind_deprecatedandfocus_unsupported_kind.featurestring The switched-off option, e.g.download. Onfeature_unavailable.duration_secondsnumber The video's length. Onvideo_too_long.max_duration_secondsnumber The longest video accepted. Onvideo_too_long.posted_atstring When the video was posted. Onvideo_too_old.max_age_daysnumber The oldest video scored, in days. Onvideo_too_old.overlap_expires_atstring When the previous secret stops working. Onwebhook_rotation_in_progress.scopestring alwaysread_onlyThe key's scope. Onkey_scope_insufficient.requiredstring alwaysfullThe scope the call needs. Onkey_scope_insufficient.collection_idstring The Collection that already has the name. Oncollection_name_taken.collection_kindstring The Collection's kind. Oncollection_kind_mismatch.kindstring The kind that was offered. Oncollection_kind_mismatch.run_idstring The Run the Idempotency-Key already belongs to. Onidempotency_conflict.reasonstring A short machine-readable reason, where a code has several.reference_idstring Our reference for an unexpected failure, the same asrequest_id; quote it when reporting it.runobject The Run, on a failed Run's body, so its id is kept.idstring requiredkindstring required What was run, e.g.video_lookup.statusstring required one ofrunning,completed,partial,failedpartialkeeps the completed items and charges for them, up to what the Balance covers;failedcharges nothing.created_atstring required RFC 3339.completed_atstring required nullable Null while the Run is still running.charge_creditsinteger required What this Run actually cost, in Credits. A stored answer costs the same as a fresh one.list_price_creditsinteger required The full price of the work asked for, in Credits. Equal tocharge_creditsunless the Run charged for only part of it.cachedboolean required True when a stored result answered without a fresh fetch.progressobject A running Research'sstageand counts so far, such asanalysedofshortlisted; a count is absent until known. Absent once the Run settles and on other kinds.stagestring required one ofkeywords,searching,reading_creators,filtering,analysing,writing_digestkeywordsinteger value at least 0creatorsinteger value at least 0creators_readinteger value at least 0searchesinteger value at least 0foundinteger value at least 0judgedinteger value at least 0keptinteger value at least 0dropped_off_topicinteger value at least 0dropped_unsureinteger value at least 0shortlistedinteger value at least 0analysedinteger value at least 0updated_atstring required
errorobject The same problem, nested, on a failed Run's body.
402 · Example
{
"type": "https://www.shortsintel.com/docs/reference/errors/insufficient_balance",
"title": "Insufficient balance",
"status": 402,
"code": "insufficient_balance",
"detail": "Your balance is 0 Credits and this operation needs 2 Credits. Nothing was charged.",
"retryable": false,
"action": "Tell the Customer to top up the Balance, then repeat the same request.",
"balance_credits": 0,
"required_credits": 2
}409 Conflict
idempotency_conflict — the same Idempotency-Key with a different payload. Or: advertiser_ambiguous: several advertisers carry the name; candidates as described above. The Run fails uncharged.
Codes: idempotency_conflict, advertiser_ambiguous. The problem body and every code are on Errors.
object
RFC 9457 problem document, served as application/problem+json. Branch on code, never on the prose. retryable and action say whether to retry and what to do next.
typestring requiredtitlestring requiredstatusinteger requiredcodestring required one ofmissing_authorization,invalid_key,key_revoked,key_expired,invalid_token,organization_not_selected,organization_access_revoked,connection_revoked,forbidden,key_scope_insufficient,invalid_request,unsupported_platform,unsupported_kind,kind_deprecated,focus_unsupported_kind,not_found,comment_not_found,video_too_long,video_too_old,feature_unavailable,not_analysable,idempotency_conflict,run_not_ready,advertiser_ambiguous,insufficient_balance,max_credits_exceeded,key_spend_cap_exceeded,rate_limit_exceeded,concurrency_limit_exceeded,tracker_limit_exceeded,webhook_limit_exceeded,webhook_rotation_in_progress,collection_limit_exceeded,collection_name_taken,collection_kind_mismatch,media_unavailable,vendor_error,source_unavailable,service_unavailable,internal_errorStable machine-readable code.detailstringerrorsarray of object Oninvalid_requestfrom a field that failed validation: one entry per problem, so you can find the field without parsingdetail. Absent when no single field is at fault, e.g. a body that is not JSON.pathstring required Dotted path of the field to fix, e.g.collection_ids.1orcursor. Empty for an issue with the request body as a whole.messagestring required What is wrong with that field.
request_idstring The request this problem answers, the same as itsX-Request-Idheader. Quote it to support.retryableboolean required Whether sending the same request again, after any wait named here, can succeed:truefor a rate or concurrency limit, an upstream outage, an internal error or a Run not yet settled;falsewhen the request must change or a person must act. Fixed percode.actionstring required The next step, in one sentence.remedystring What to do next, as the code's error reference page says it; fuller thanaction. On every problem a request answers with; a per-itemerrorinside a result may omit it.retry_after_secondsinteger value at least 0 Seconds to wait before retrying; the same as theRetry-Afterheader. Onrate_limit_exceeded,concurrency_limit_exceeded,source_unavailableandservice_unavailable.expired_atstring When the key expired. Onkey_expired.resets_atstring When the request window (rate_limit_exceeded) or the key's month (key_spend_cap_exceeded) resets.limitinteger The limit that was hit, on the*_limit_exceededcodes.runninginteger Runs in flight. Onconcurrency_limit_exceeded.activeinteger Active Trackers or webhook endpoints. Ontracker_limit_exceededandwebhook_limit_exceeded.requestedinteger Trackers the request would resume. Ontracker_limit_exceededfrom a Collection action.countinteger Collections held. Oncollection_limit_exceeded.balance_creditsinteger The Balance, in Credits. Oninsufficient_balance.required_creditsinteger What the call needs, in Credits (the worst case where quoted). Oninsufficient_balance.max_creditsinteger The cap the call sent. Onmax_credits_exceeded.estimate_creditsinteger The call's worst-case quote, in Credits. Onmax_credits_exceededandkey_spend_cap_exceeded.cap_creditsinteger The key's monthly cap. Onkey_spend_cap_exceeded.spent_creditsinteger The key's Charges this UTC month. Onkey_spend_cap_exceeded.reserved_creditsinteger What the key's Runs in flight hold. Onkey_spend_cap_exceeded.endpointsarray of string The sources that could not answer. Onsource_unavailable.endpointstring The source that could not answer. Onsource_unavailable.candidatesarray of object The advertisers that carry the name, to ask again with. Onadvertiser_ambiguous.supported_kindsarray of string The kinds that are accepted. Onkind_deprecatedandfocus_unsupported_kind.featurestring The switched-off option, e.g.download. Onfeature_unavailable.duration_secondsnumber The video's length. Onvideo_too_long.max_duration_secondsnumber The longest video accepted. Onvideo_too_long.posted_atstring When the video was posted. Onvideo_too_old.max_age_daysnumber The oldest video scored, in days. Onvideo_too_old.overlap_expires_atstring When the previous secret stops working. Onwebhook_rotation_in_progress.scopestring alwaysread_onlyThe key's scope. Onkey_scope_insufficient.requiredstring alwaysfullThe scope the call needs. Onkey_scope_insufficient.collection_idstring The Collection that already has the name. Oncollection_name_taken.collection_kindstring The Collection's kind. Oncollection_kind_mismatch.kindstring The kind that was offered. Oncollection_kind_mismatch.run_idstring The Run the Idempotency-Key already belongs to. Onidempotency_conflict.reasonstring A short machine-readable reason, where a code has several.reference_idstring Our reference for an unexpected failure, the same asrequest_id; quote it when reporting it.runobject The Run, on a failed Run's body, so its id is kept.idstring requiredkindstring required What was run, e.g.video_lookup.statusstring required one ofrunning,completed,partial,failedpartialkeeps the completed items and charges for them, up to what the Balance covers;failedcharges nothing.created_atstring required RFC 3339.completed_atstring required nullable Null while the Run is still running.charge_creditsinteger required What this Run actually cost, in Credits. A stored answer costs the same as a fresh one.list_price_creditsinteger required The full price of the work asked for, in Credits. Equal tocharge_creditsunless the Run charged for only part of it.cachedboolean required True when a stored result answered without a fresh fetch.progressobject A running Research'sstageand counts so far, such asanalysedofshortlisted; a count is absent until known. Absent once the Run settles and on other kinds.stagestring required one ofkeywords,searching,reading_creators,filtering,analysing,writing_digestkeywordsinteger value at least 0creatorsinteger value at least 0creators_readinteger value at least 0searchesinteger value at least 0foundinteger value at least 0judgedinteger value at least 0keptinteger value at least 0dropped_off_topicinteger value at least 0dropped_unsureinteger value at least 0shortlistedinteger value at least 0analysedinteger value at least 0updated_atstring required
errorobject The same problem, nested, on a failed Run's body.
409 · idempotency_conflict
{
"type": "https://www.shortsintel.com/docs/reference/errors/idempotency_conflict",
"title": "Idempotency conflict",
"status": 409,
"code": "idempotency_conflict",
"detail": "This Idempotency-Key was used with a different payload.",
"retryable": false,
"action": "Resend the original payload with this key, or use a new key for the new payload.",
"run_id": "run_8f2c1ad04b"
}409 · advertiser_ambiguous
{
"type": "https://www.shortsintel.com/docs/reference/errors/advertiser_ambiguous",
"title": "Advertiser ambiguous",
"status": 409,
"code": "advertiser_ambiguous",
"detail": "Several TikTok advertisers are named \"Acme\". Ask again with one candidate's url as advertiser. Nothing was charged.",
"retryable": false,
"action": "Ask again with one of `candidates`' `page_id`, `advertiser_id` or `url`.",
"candidates": [
{
"advertiser_id": "7614257280497991696",
"name": "Acme",
"url": "https://library.tiktok.com/ads?adv_name=Acme®ion=all&query_type=2&adv_biz_ids=7614257280497991696"
},
{
"advertiser_id": "7569985924331847688",
"name": "acme",
"url": "https://library.tiktok.com/ads?adv_name=acme®ion=all&query_type=2&adv_biz_ids=7569985924331847688"
}
]
}429 Too Many Requests
rate_limit_exceeded or concurrency_limit_exceeded, with Retry-After.
Codes: rate_limit_exceeded, concurrency_limit_exceeded. The problem body and every code are on Errors.
object
RFC 9457 problem document, served as application/problem+json. Branch on code, never on the prose. retryable and action say whether to retry and what to do next.
typestring requiredtitlestring requiredstatusinteger requiredcodestring required one ofmissing_authorization,invalid_key,key_revoked,key_expired,invalid_token,organization_not_selected,organization_access_revoked,connection_revoked,forbidden,key_scope_insufficient,invalid_request,unsupported_platform,unsupported_kind,kind_deprecated,focus_unsupported_kind,not_found,comment_not_found,video_too_long,video_too_old,feature_unavailable,not_analysable,idempotency_conflict,run_not_ready,advertiser_ambiguous,insufficient_balance,max_credits_exceeded,key_spend_cap_exceeded,rate_limit_exceeded,concurrency_limit_exceeded,tracker_limit_exceeded,webhook_limit_exceeded,webhook_rotation_in_progress,collection_limit_exceeded,collection_name_taken,collection_kind_mismatch,media_unavailable,vendor_error,source_unavailable,service_unavailable,internal_errorStable machine-readable code.detailstringerrorsarray of object Oninvalid_requestfrom a field that failed validation: one entry per problem, so you can find the field without parsingdetail. Absent when no single field is at fault, e.g. a body that is not JSON.pathstring required Dotted path of the field to fix, e.g.collection_ids.1orcursor. Empty for an issue with the request body as a whole.messagestring required What is wrong with that field.
request_idstring The request this problem answers, the same as itsX-Request-Idheader. Quote it to support.retryableboolean required Whether sending the same request again, after any wait named here, can succeed:truefor a rate or concurrency limit, an upstream outage, an internal error or a Run not yet settled;falsewhen the request must change or a person must act. Fixed percode.actionstring required The next step, in one sentence.remedystring What to do next, as the code's error reference page says it; fuller thanaction. On every problem a request answers with; a per-itemerrorinside a result may omit it.retry_after_secondsinteger value at least 0 Seconds to wait before retrying; the same as theRetry-Afterheader. Onrate_limit_exceeded,concurrency_limit_exceeded,source_unavailableandservice_unavailable.expired_atstring When the key expired. Onkey_expired.resets_atstring When the request window (rate_limit_exceeded) or the key's month (key_spend_cap_exceeded) resets.limitinteger The limit that was hit, on the*_limit_exceededcodes.runninginteger Runs in flight. Onconcurrency_limit_exceeded.activeinteger Active Trackers or webhook endpoints. Ontracker_limit_exceededandwebhook_limit_exceeded.requestedinteger Trackers the request would resume. Ontracker_limit_exceededfrom a Collection action.countinteger Collections held. Oncollection_limit_exceeded.balance_creditsinteger The Balance, in Credits. Oninsufficient_balance.required_creditsinteger What the call needs, in Credits (the worst case where quoted). Oninsufficient_balance.max_creditsinteger The cap the call sent. Onmax_credits_exceeded.estimate_creditsinteger The call's worst-case quote, in Credits. Onmax_credits_exceededandkey_spend_cap_exceeded.cap_creditsinteger The key's monthly cap. Onkey_spend_cap_exceeded.spent_creditsinteger The key's Charges this UTC month. Onkey_spend_cap_exceeded.reserved_creditsinteger What the key's Runs in flight hold. Onkey_spend_cap_exceeded.endpointsarray of string The sources that could not answer. Onsource_unavailable.endpointstring The source that could not answer. Onsource_unavailable.candidatesarray of object The advertisers that carry the name, to ask again with. Onadvertiser_ambiguous.supported_kindsarray of string The kinds that are accepted. Onkind_deprecatedandfocus_unsupported_kind.featurestring The switched-off option, e.g.download. Onfeature_unavailable.duration_secondsnumber The video's length. Onvideo_too_long.max_duration_secondsnumber The longest video accepted. Onvideo_too_long.posted_atstring When the video was posted. Onvideo_too_old.max_age_daysnumber The oldest video scored, in days. Onvideo_too_old.overlap_expires_atstring When the previous secret stops working. Onwebhook_rotation_in_progress.scopestring alwaysread_onlyThe key's scope. Onkey_scope_insufficient.requiredstring alwaysfullThe scope the call needs. Onkey_scope_insufficient.collection_idstring The Collection that already has the name. Oncollection_name_taken.collection_kindstring The Collection's kind. Oncollection_kind_mismatch.kindstring The kind that was offered. Oncollection_kind_mismatch.run_idstring The Run the Idempotency-Key already belongs to. Onidempotency_conflict.reasonstring A short machine-readable reason, where a code has several.reference_idstring Our reference for an unexpected failure, the same asrequest_id; quote it when reporting it.runobject The Run, on a failed Run's body, so its id is kept.idstring requiredkindstring required What was run, e.g.video_lookup.statusstring required one ofrunning,completed,partial,failedpartialkeeps the completed items and charges for them, up to what the Balance covers;failedcharges nothing.created_atstring required RFC 3339.completed_atstring required nullable Null while the Run is still running.charge_creditsinteger required What this Run actually cost, in Credits. A stored answer costs the same as a fresh one.list_price_creditsinteger required The full price of the work asked for, in Credits. Equal tocharge_creditsunless the Run charged for only part of it.cachedboolean required True when a stored result answered without a fresh fetch.progressobject A running Research'sstageand counts so far, such asanalysedofshortlisted; a count is absent until known. Absent once the Run settles and on other kinds.stagestring required one ofkeywords,searching,reading_creators,filtering,analysing,writing_digestkeywordsinteger value at least 0creatorsinteger value at least 0creators_readinteger value at least 0searchesinteger value at least 0foundinteger value at least 0judgedinteger value at least 0keptinteger value at least 0dropped_off_topicinteger value at least 0dropped_unsureinteger value at least 0shortlistedinteger value at least 0analysedinteger value at least 0updated_atstring required
errorobject The same problem, nested, on a failed Run's body.
429 · Example
{
"type": "https://www.shortsintel.com/docs/reference/errors/rate_limit_exceeded",
"title": "Rate limit exceeded",
"status": 429,
"code": "rate_limit_exceeded",
"detail": "60 requests per minute per key. Retry after the number of seconds in `Retry-After`.",
"retryable": true,
"action": "Wait `retry_after_seconds`, then retry the same request.",
"limit": 60,
"retry_after_seconds": 12,
"resets_at": "2026-09-08T09:15:00.000Z"
}502 Bad Gateway
A Run that opened and then failed answers application/problem+json with its problem's status (vendor_error here, not_found as 404) and the Run envelope, keeping the Run id. Never charged. The example is a Video lookup's.
Code: vendor_error. The problem body and every code are on Errors.
object
RFC 9457 problem document, served as application/problem+json. Branch on code, never on the prose. retryable and action say whether to retry and what to do next.
typestring requiredtitlestring requiredstatusinteger requiredcodestring required one ofmissing_authorization,invalid_key,key_revoked,key_expired,invalid_token,organization_not_selected,organization_access_revoked,connection_revoked,forbidden,key_scope_insufficient,invalid_request,unsupported_platform,unsupported_kind,kind_deprecated,focus_unsupported_kind,not_found,comment_not_found,video_too_long,video_too_old,feature_unavailable,not_analysable,idempotency_conflict,run_not_ready,advertiser_ambiguous,insufficient_balance,max_credits_exceeded,key_spend_cap_exceeded,rate_limit_exceeded,concurrency_limit_exceeded,tracker_limit_exceeded,webhook_limit_exceeded,webhook_rotation_in_progress,collection_limit_exceeded,collection_name_taken,collection_kind_mismatch,media_unavailable,vendor_error,source_unavailable,service_unavailable,internal_errorStable machine-readable code.detailstringerrorsarray of object Oninvalid_requestfrom a field that failed validation: one entry per problem, so you can find the field without parsingdetail. Absent when no single field is at fault, e.g. a body that is not JSON.pathstring required Dotted path of the field to fix, e.g.collection_ids.1orcursor. Empty for an issue with the request body as a whole.messagestring required What is wrong with that field.
request_idstring The request this problem answers, the same as itsX-Request-Idheader. Quote it to support.retryableboolean required Whether sending the same request again, after any wait named here, can succeed:truefor a rate or concurrency limit, an upstream outage, an internal error or a Run not yet settled;falsewhen the request must change or a person must act. Fixed percode.actionstring required The next step, in one sentence.remedystring What to do next, as the code's error reference page says it; fuller thanaction. On every problem a request answers with; a per-itemerrorinside a result may omit it.retry_after_secondsinteger value at least 0 Seconds to wait before retrying; the same as theRetry-Afterheader. Onrate_limit_exceeded,concurrency_limit_exceeded,source_unavailableandservice_unavailable.expired_atstring When the key expired. Onkey_expired.resets_atstring When the request window (rate_limit_exceeded) or the key's month (key_spend_cap_exceeded) resets.limitinteger The limit that was hit, on the*_limit_exceededcodes.runninginteger Runs in flight. Onconcurrency_limit_exceeded.activeinteger Active Trackers or webhook endpoints. Ontracker_limit_exceededandwebhook_limit_exceeded.requestedinteger Trackers the request would resume. Ontracker_limit_exceededfrom a Collection action.countinteger Collections held. Oncollection_limit_exceeded.balance_creditsinteger The Balance, in Credits. Oninsufficient_balance.required_creditsinteger What the call needs, in Credits (the worst case where quoted). Oninsufficient_balance.max_creditsinteger The cap the call sent. Onmax_credits_exceeded.estimate_creditsinteger The call's worst-case quote, in Credits. Onmax_credits_exceededandkey_spend_cap_exceeded.cap_creditsinteger The key's monthly cap. Onkey_spend_cap_exceeded.spent_creditsinteger The key's Charges this UTC month. Onkey_spend_cap_exceeded.reserved_creditsinteger What the key's Runs in flight hold. Onkey_spend_cap_exceeded.endpointsarray of string The sources that could not answer. Onsource_unavailable.endpointstring The source that could not answer. Onsource_unavailable.candidatesarray of object The advertisers that carry the name, to ask again with. Onadvertiser_ambiguous.supported_kindsarray of string The kinds that are accepted. Onkind_deprecatedandfocus_unsupported_kind.featurestring The switched-off option, e.g.download. Onfeature_unavailable.duration_secondsnumber The video's length. Onvideo_too_long.max_duration_secondsnumber The longest video accepted. Onvideo_too_long.posted_atstring When the video was posted. Onvideo_too_old.max_age_daysnumber The oldest video scored, in days. Onvideo_too_old.overlap_expires_atstring When the previous secret stops working. Onwebhook_rotation_in_progress.scopestring alwaysread_onlyThe key's scope. Onkey_scope_insufficient.requiredstring alwaysfullThe scope the call needs. Onkey_scope_insufficient.collection_idstring The Collection that already has the name. Oncollection_name_taken.collection_kindstring The Collection's kind. Oncollection_kind_mismatch.kindstring The kind that was offered. Oncollection_kind_mismatch.run_idstring The Run the Idempotency-Key already belongs to. Onidempotency_conflict.reasonstring A short machine-readable reason, where a code has several.reference_idstring Our reference for an unexpected failure, the same asrequest_id; quote it when reporting it.runobject The Run, on a failed Run's body, so its id is kept.idstring requiredkindstring required What was run, e.g.video_lookup.statusstring required one ofrunning,completed,partial,failedpartialkeeps the completed items and charges for them, up to what the Balance covers;failedcharges nothing.created_atstring required RFC 3339.completed_atstring required nullable Null while the Run is still running.charge_creditsinteger required What this Run actually cost, in Credits. A stored answer costs the same as a fresh one.list_price_creditsinteger required The full price of the work asked for, in Credits. Equal tocharge_creditsunless the Run charged for only part of it.cachedboolean required True when a stored result answered without a fresh fetch.progressobject A running Research'sstageand counts so far, such asanalysedofshortlisted; a count is absent until known. Absent once the Run settles and on other kinds.stagestring required one ofkeywords,searching,reading_creators,filtering,analysing,writing_digestkeywordsinteger value at least 0creatorsinteger value at least 0creators_readinteger value at least 0searchesinteger value at least 0foundinteger value at least 0judgedinteger value at least 0keptinteger value at least 0dropped_off_topicinteger value at least 0dropped_unsureinteger value at least 0shortlistedinteger value at least 0analysedinteger value at least 0updated_atstring required
errorobject The same problem, nested, on a failed Run's body.
502 · Example
{
"type": "https://www.shortsintel.com/docs/reference/errors/vendor_error",
"title": "Vendor error",
"status": 502,
"code": "vendor_error",
"detail": "The upstream data provider could not be reached.",
"retryable": true,
"action": "Retry with a backoff; nothing was charged.",
"run": {
"id": "run_8f2c1ad04b",
"kind": "video_lookup",
"status": "failed",
"created_at": "2026-09-08T09:14:02.418Z",
"completed_at": "2026-09-08T09:14:04.930Z",
"charge_credits": 0,
"list_price_credits": 0,
"cached": false
}
}503 Service Unavailable
source_unavailable: every source this Run reads failed or is switched off. The Run fails uncharged, envelope alongside; endpoints names the source. Retry after retry_after_seconds (also Retry-After); it does not mean empty. The example is a Video lookup's.
Code: source_unavailable. The problem body and every code are on Errors.
object
RFC 9457 problem document, served as application/problem+json. Branch on code, never on the prose. retryable and action say whether to retry and what to do next.
typestring requiredtitlestring requiredstatusinteger requiredcodestring required one ofmissing_authorization,invalid_key,key_revoked,key_expired,invalid_token,organization_not_selected,organization_access_revoked,connection_revoked,forbidden,key_scope_insufficient,invalid_request,unsupported_platform,unsupported_kind,kind_deprecated,focus_unsupported_kind,not_found,comment_not_found,video_too_long,video_too_old,feature_unavailable,not_analysable,idempotency_conflict,run_not_ready,advertiser_ambiguous,insufficient_balance,max_credits_exceeded,key_spend_cap_exceeded,rate_limit_exceeded,concurrency_limit_exceeded,tracker_limit_exceeded,webhook_limit_exceeded,webhook_rotation_in_progress,collection_limit_exceeded,collection_name_taken,collection_kind_mismatch,media_unavailable,vendor_error,source_unavailable,service_unavailable,internal_errorStable machine-readable code.detailstringerrorsarray of object Oninvalid_requestfrom a field that failed validation: one entry per problem, so you can find the field without parsingdetail. Absent when no single field is at fault, e.g. a body that is not JSON.pathstring required Dotted path of the field to fix, e.g.collection_ids.1orcursor. Empty for an issue with the request body as a whole.messagestring required What is wrong with that field.
request_idstring The request this problem answers, the same as itsX-Request-Idheader. Quote it to support.retryableboolean required Whether sending the same request again, after any wait named here, can succeed:truefor a rate or concurrency limit, an upstream outage, an internal error or a Run not yet settled;falsewhen the request must change or a person must act. Fixed percode.actionstring required The next step, in one sentence.remedystring What to do next, as the code's error reference page says it; fuller thanaction. On every problem a request answers with; a per-itemerrorinside a result may omit it.retry_after_secondsinteger value at least 0 Seconds to wait before retrying; the same as theRetry-Afterheader. Onrate_limit_exceeded,concurrency_limit_exceeded,source_unavailableandservice_unavailable.expired_atstring When the key expired. Onkey_expired.resets_atstring When the request window (rate_limit_exceeded) or the key's month (key_spend_cap_exceeded) resets.limitinteger The limit that was hit, on the*_limit_exceededcodes.runninginteger Runs in flight. Onconcurrency_limit_exceeded.activeinteger Active Trackers or webhook endpoints. Ontracker_limit_exceededandwebhook_limit_exceeded.requestedinteger Trackers the request would resume. Ontracker_limit_exceededfrom a Collection action.countinteger Collections held. Oncollection_limit_exceeded.balance_creditsinteger The Balance, in Credits. Oninsufficient_balance.required_creditsinteger What the call needs, in Credits (the worst case where quoted). Oninsufficient_balance.max_creditsinteger The cap the call sent. Onmax_credits_exceeded.estimate_creditsinteger The call's worst-case quote, in Credits. Onmax_credits_exceededandkey_spend_cap_exceeded.cap_creditsinteger The key's monthly cap. Onkey_spend_cap_exceeded.spent_creditsinteger The key's Charges this UTC month. Onkey_spend_cap_exceeded.reserved_creditsinteger What the key's Runs in flight hold. Onkey_spend_cap_exceeded.endpointsarray of string The sources that could not answer. Onsource_unavailable.endpointstring The source that could not answer. Onsource_unavailable.candidatesarray of object The advertisers that carry the name, to ask again with. Onadvertiser_ambiguous.supported_kindsarray of string The kinds that are accepted. Onkind_deprecatedandfocus_unsupported_kind.featurestring The switched-off option, e.g.download. Onfeature_unavailable.duration_secondsnumber The video's length. Onvideo_too_long.max_duration_secondsnumber The longest video accepted. Onvideo_too_long.posted_atstring When the video was posted. Onvideo_too_old.max_age_daysnumber The oldest video scored, in days. Onvideo_too_old.overlap_expires_atstring When the previous secret stops working. Onwebhook_rotation_in_progress.scopestring alwaysread_onlyThe key's scope. Onkey_scope_insufficient.requiredstring alwaysfullThe scope the call needs. Onkey_scope_insufficient.collection_idstring The Collection that already has the name. Oncollection_name_taken.collection_kindstring The Collection's kind. Oncollection_kind_mismatch.kindstring The kind that was offered. Oncollection_kind_mismatch.run_idstring The Run the Idempotency-Key already belongs to. Onidempotency_conflict.reasonstring A short machine-readable reason, where a code has several.reference_idstring Our reference for an unexpected failure, the same asrequest_id; quote it when reporting it.runobject The Run, on a failed Run's body, so its id is kept.idstring requiredkindstring required What was run, e.g.video_lookup.statusstring required one ofrunning,completed,partial,failedpartialkeeps the completed items and charges for them, up to what the Balance covers;failedcharges nothing.created_atstring required RFC 3339.completed_atstring required nullable Null while the Run is still running.charge_creditsinteger required What this Run actually cost, in Credits. A stored answer costs the same as a fresh one.list_price_creditsinteger required The full price of the work asked for, in Credits. Equal tocharge_creditsunless the Run charged for only part of it.cachedboolean required True when a stored result answered without a fresh fetch.progressobject A running Research'sstageand counts so far, such asanalysedofshortlisted; a count is absent until known. Absent once the Run settles and on other kinds.stagestring required one ofkeywords,searching,reading_creators,filtering,analysing,writing_digestkeywordsinteger value at least 0creatorsinteger value at least 0creators_readinteger value at least 0searchesinteger value at least 0foundinteger value at least 0judgedinteger value at least 0keptinteger value at least 0dropped_off_topicinteger value at least 0dropped_unsureinteger value at least 0shortlistedinteger value at least 0analysedinteger value at least 0updated_atstring required
errorobject The same problem, nested, on a failed Run's body.
503 · Example
{
"type": "https://www.shortsintel.com/docs/reference/errors/source_unavailable",
"title": "Source unavailable",
"status": 503,
"code": "source_unavailable",
"detail": "The tiktok/video source is unavailable right now.",
"retryable": true,
"action": "Wait `retry_after_seconds`, then retry; do not treat this as an empty result.",
"endpoints": [
"tiktok/video"
],
"run": {
"id": "run_8f2c1ad04b",
"kind": "video_lookup",
"status": "failed",
"created_at": "2026-09-08T09:14:02.418Z",
"completed_at": "2026-09-08T09:14:04.930Z",
"charge_credits": 0,
"list_price_credits": 0,
"cached": false
},
"retry_after_seconds": 60
}Related guides
This call creates a Run. With wait it holds the response open until the Run finishes or the wait runs out, then answers with the finished result or 202 and the running Run. Poll GET /v1/runs/{id} until it settles; re-reading a Run is free.
- Runs: How a call becomes a Run, waiting inline, polling and free re-reads.
- Pricing and estimates: Credits, estimates and why a cached result costs the same as a fresh one.
- Ads: Search Meta's, TikTok's and Google's ad libraries: the filters, what each Ad carries, the winner Score, Ad analysis, what is stored, and what a search costs.