{"openapi":"3.1.0","info":{"title":"Vexqo API","description":"Public Meta Ad Library, eBay, TikTok and Instagram data. Authenticate with X-API-Key. Follow response links for related resources and supported pagination; each collection request can use credits. Social lookups are fresh by default; max_age explicitly allows cached public data.","version":"0.1.0"},"paths":{"/health":{"get":{"summary":"Health","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/leads":{"post":{"summary":"Lead","operationId":"lead_leads_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_LeadForm"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ebay/listings/{listing_id}":{"get":{"summary":"Ebay Listing","operationId":"ebay_listing_ebay_listings__listing_id__get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"listing_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9]+$","title":"Listing Id"}},{"name":"mode","in":"query","required":false,"schema":{"enum":["auto","browser","http"],"type":"string","default":"auto","title":"Mode"}},{"name":"headless","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Headless"}},{"name":"country","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^[A-Za-z]{2}$"},{"type":"null"}],"title":"Country"}},{"name":"include_html","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Html"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ebay/search":{"get":{"summary":"Ebay Search","operationId":"ebay_search_ebay_search_get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","maxLength":300,"title":"Q"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","default":60,"title":"Per Page"}},{"name":"sort","in":"query","required":false,"schema":{"enum":["best_match","ending_soonest","newly_listed","price_lowest","price_highest"],"type":"string","default":"best_match","title":"Sort"}},{"name":"buying_format","in":"query","required":false,"schema":{"enum":["all","auction","buy_it_now"],"type":"string","default":"all","title":"Buying Format"}},{"name":"condition","in":"query","required":false,"schema":{"enum":["any","new","used"],"type":"string","default":"any","title":"Condition"}},{"name":"min_price","in":"query","required":false,"schema":{"anyOf":[{"type":"number","minimum":0.0},{"type":"string"},{"type":"null"}],"title":"Min Price"}},{"name":"max_price","in":"query","required":false,"schema":{"anyOf":[{"type":"number","minimum":0.0},{"type":"string"},{"type":"null"}],"title":"Max Price"}},{"name":"category_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^[0-9]+$"},{"type":"null"}],"title":"Category Id"}},{"name":"country","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^[A-Za-z]{2}$"},{"type":"null"}],"title":"Country"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/facebook/pages/{page_id}/ads":{"get":{"summary":"Facebook Ads","operationId":"facebook_ads_facebook_pages__page_id__ads_get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"page_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9]+$","title":"Page Id"}},{"name":"ad_id","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","pattern":"^[0-9]+$"}},{"type":"null"}],"title":"Ad Id"}},{"name":"headless","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Headless"}},{"name":"wait_seconds","in":"query","required":false,"schema":{"type":"integer","maximum":60,"minimum":5,"default":40,"title":"Wait Seconds"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/facebook/ads":{"get":{"summary":"Facebook Ad Search","operationId":"facebook_ad_search_facebook_ads_get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Q"}},{"name":"page_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^[0-9]+$"},{"type":"null"}],"title":"Page Id"}},{"name":"search_type","in":"query","required":false,"schema":{"enum":["keyword_unordered","keyword_exact_phrase"],"type":"string","default":"keyword_unordered","title":"Search Type"}},{"name":"country","in":"query","required":false,"schema":{"type":"string","pattern":"^([A-Za-z]{2}|[Aa][Ll][Ll])$","default":"ALL","title":"Country"}},{"name":"active_status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/ActiveStatus"},{"type":"null"}],"description":"`active` keeps the ads that run now, `inactive` the ads that stopped, `all` both. Without it: `active`, or `all` when `end_date` is a day before today, since few ads of a past period still run.","title":"Active Status"},"description":"`active` keeps the ads that run now, `inactive` the ads that stopped, `all` both. Without it: `active`, or `all` when `end_date` is a day before today, since few ads of a past period still run."},{"name":"ad_type","in":"query","required":false,"schema":{"enum":["all","political_and_issue_ads","housing_ads","employment_ads","credit_ads"],"type":"string","default":"all","title":"Ad Type"}},{"name":"media_type","in":"query","required":false,"schema":{"enum":["all","image","video","meme","image_and_meme","none"],"type":"string","default":"all","title":"Media Type"}},{"name":"start_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"The first day of a period, as YYYY-MM-DD. The search keeps the ads that ran on a day of the period, whenever they started: it does not select by the day an ad started. Each ad says that day as `start_date`. Days are the Ad Library's, which begin at midnight Pacific time.","title":"Start Date"},"description":"The first day of a period, as YYYY-MM-DD. The search keeps the ads that ran on a day of the period, whenever they started: it does not select by the day an ad started. Each ad says that day as `start_date`. Days are the Ad Library's, which begin at midnight Pacific time."},{"name":"end_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"The last day of the period, as YYYY-MM-DD, counted in. The same day as `start_date` asks for one day.","title":"End Date"},"description":"The last day of the period, as YYYY-MM-DD, counted in. The same day as `start_date` asks for one day."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":30,"title":"Limit"}},{"name":"include_products","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Products"}},{"name":"include_page_info","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Page Info"}},{"name":"view","in":"query","required":false,"schema":{"enum":["raw","compact"],"type":"string","description":"Raw source fields (default), or compact ads with complete creative groups and no empty optional fields. No collection or credit difference.","default":"raw","title":"View"},"description":"Raw source fields (default), or compact ads with complete creative groups and no empty optional fields. No collection or credit difference."},{"name":"include_ad_details","in":"query","required":false,"schema":{"type":"boolean","description":"Fetch each returned ad's detail panel. Costs the ad-detail rate (normally 2 credits) per available panel, in addition to search. Up to 30 extra seconds; partial outcomes are reported per ad. Defaults to false.","default":false,"title":"Include Ad Details"},"description":"Fetch each returned ad's detail panel. Costs the ad-detail rate (normally 2 credits) per available panel, in addition to search. Up to 30 extra seconds; partial outcomes are reported per ad. Defaults to false."},{"name":"include_creative_assets","in":"query","required":false,"schema":{"type":"boolean","description":"Include an index of usable copy and media from the snapshot and its cards, with source paths. No extra credits; increases response size. Defaults to false.","default":false,"title":"Include Creative Assets"},"description":"Include an index of usable copy and media from the snapshot and its cards, with source paths. No extra credits; increases response size. Defaults to false."},{"name":"platforms","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Platforms"}},{"name":"languages","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Languages"}},{"name":"sort_by","in":"query","required":false,"schema":{"enum":["total_impressions","relevancy_monthly_grouped"],"type":"string","default":"total_impressions","title":"Sort By"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":2,"maxLength":4200},{"type":"null"}],"title":"Cursor"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MetaSearchResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/facebook/ads/{ad_id}":{"get":{"summary":"Facebook Ad","operationId":"facebook_ad_facebook_ads__ad_id__get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"ad_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9]+$","title":"Ad Id"}},{"name":"headless","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Headless"}},{"name":"view","in":"query","required":false,"schema":{"enum":["raw","compact"],"type":"string","description":"Raw source fields (default) or compact creative groups. No collection or credit difference.","default":"raw","title":"View"},"description":"Raw source fields (default) or compact creative groups. No collection or credit difference."},{"name":"include_creative_assets","in":"query","required":false,"schema":{"type":"boolean","description":"Include the creative asset index with source paths. No extra credits; increases response size. Defaults to false.","default":false,"title":"Include Creative Assets"},"description":"Include the creative asset index with source paths. No extra credits; increases response size. Defaults to false."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MetaDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/shopify":{"post":{"tags":["Shopify"],"summary":"Extract a Shopify product","description":"Read public product data, prices, variants and availability. No ad searches. Charged at the configured shopify_product rate on success.","operationId":"shopify_product_shopify_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShopifyProductRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"APIKeyHeader":[]}]}},"/research":{"post":{"tags":["Research"],"summary":"Research a product across Meta ads and stores","description":"Extract a Shopify product, search Meta ads and inspect linked sellers. Own-store ads, other sellers and possible matches remain separate. Charged once at the configured product_research rate, including successful searches with no matches.","operationId":"research_product_research_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductDiscoveryRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"APIKeyHeader":[]}]}},"/tiktok/posts":{"get":{"tags":["Public social data"],"summary":"Read one public TikTok post","operationId":"tiktok_post_tiktok_posts_get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"target","in":"query","required":true,"schema":{"type":"string","minLength":3,"maxLength":2048,"description":"Post ID/shortcode or full public HTTPS post URL. Short links are unsupported.","title":"Target"},"description":"Post ID/shortcode or full public HTTPS post URL. Short links are unsupported."},{"name":"max_age","in":"query","required":false,"schema":{"type":"integer","maximum":300,"minimum":0,"description":"Maximum acceptable cached age in seconds. 0 (default) collects fresh. Cache hits have the same credit cost.","default":0,"title":"Max Age"},"description":"Maximum acceptable cached age in seconds. 0 (default) collects fresh. Cache hits have the same credit cost."},{"name":"country","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^[A-Za-z]{2}$"},{"type":"null"}],"description":"Proxy exit country, not a filter of the post's audience or origin.","title":"Country"},"description":"Proxy exit country, not a filter of the post's audience or origin."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tiktok/profiles/{username}":{"get":{"tags":["Public social data"],"summary":"Read a public TikTok profile","operationId":"tiktok_profile_tiktok_profiles__username__get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"username","in":"path","required":true,"schema":{"type":"string","title":"Username"}},{"name":"max_age","in":"query","required":false,"schema":{"type":"integer","maximum":300,"minimum":0,"description":"Maximum acceptable cached age in seconds. 0 (default) collects fresh. Cache hits have the same credit cost.","default":0,"title":"Max Age"},"description":"Maximum acceptable cached age in seconds. 0 (default) collects fresh. Cache hits have the same credit cost."},{"name":"country","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^[A-Za-z]{2}$"},{"type":"null"}],"description":"Proxy exit country, not a filter of the post's audience or origin.","title":"Country"},"description":"Proxy exit country, not a filter of the post's audience or origin."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/instagram/posts":{"get":{"tags":["Public social data"],"summary":"Read one public Instagram post or reel","operationId":"instagram_post_instagram_posts_get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"target","in":"query","required":true,"schema":{"type":"string","minLength":3,"maxLength":2048,"description":"Post ID/shortcode or full public HTTPS post URL. Short links are unsupported.","title":"Target"},"description":"Post ID/shortcode or full public HTTPS post URL. Short links are unsupported."},{"name":"max_age","in":"query","required":false,"schema":{"type":"integer","maximum":300,"minimum":0,"description":"Maximum acceptable cached age in seconds. 0 (default) collects fresh. Cache hits have the same credit cost.","default":0,"title":"Max Age"},"description":"Maximum acceptable cached age in seconds. 0 (default) collects fresh. Cache hits have the same credit cost."},{"name":"country","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^[A-Za-z]{2}$"},{"type":"null"}],"description":"Proxy exit country, not a filter of the post's audience or origin.","title":"Country"},"description":"Proxy exit country, not a filter of the post's audience or origin."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/instagram/profiles/{username}":{"get":{"tags":["Public social data"],"summary":"Read a public Instagram profile","operationId":"instagram_profile_instagram_profiles__username__get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"username","in":"path","required":true,"schema":{"type":"string","title":"Username"}},{"name":"max_age","in":"query","required":false,"schema":{"type":"integer","maximum":300,"minimum":0,"description":"Maximum acceptable cached age in seconds. 0 (default) collects fresh. Cache hits have the same credit cost.","default":0,"title":"Max Age"},"description":"Maximum acceptable cached age in seconds. 0 (default) collects fresh. Cache hits have the same credit cost."},{"name":"country","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^[A-Za-z]{2}$"},{"type":"null"}],"description":"Proxy exit country, not a filter of the post's audience or origin.","title":"Country"},"description":"Proxy exit country, not a filter of the post's audience or origin."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/instagram/profiles/{username}/posts":{"get":{"tags":["Public social data"],"summary":"Read an Instagram public profile preview","description":"Up to 12 posts exposed in the public preview. Partial history, no supported pagination. Media can be incomplete; follow each post's detail link.","operationId":"instagram_posts_instagram_profiles__username__posts_get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"username","in":"path","required":true,"schema":{"type":"string","title":"Username"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":12,"minimum":1,"default":12,"title":"Limit"}},{"name":"max_age","in":"query","required":false,"schema":{"type":"integer","maximum":300,"minimum":0,"description":"Maximum acceptable cached age in seconds. 0 (default) collects fresh. Cache hits have the same credit cost.","default":0,"title":"Max Age"},"description":"Maximum acceptable cached age in seconds. 0 (default) collects fresh. Cache hits have the same credit cost."},{"name":"country","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^[A-Za-z]{2}$"},{"type":"null"}],"description":"Proxy exit country, not a filter of the post's audience or origin.","title":"Country"},"description":"Proxy exit country, not a filter of the post's audience or origin."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfilePostsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account":{"get":{"summary":"Account","operationId":"account_account_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"APIKeyHeader":[]}]}},"/account/checkout":{"post":{"summary":"Checkout","operationId":"checkout_account_checkout_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_Purchase"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"APIKeyHeader":[]}]}},"/account/portal":{"post":{"summary":"Portal","operationId":"portal_account_portal_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"APIKeyHeader":[]}]}},"/account/payments/sync":{"post":{"summary":"Sync","operationId":"sync_account_payments_sync_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"APIKeyHeader":[]}]}}},"components":{"schemas":{"ActiveStatus":{"type":"string","enum":["active","inactive","all"]},"AdLinks":{"properties":{"details":{"type":"string","title":"Details"},"advertiser":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Advertiser"}},"additionalProperties":true,"type":"object","required":["details"],"title":"AdLinks"},"Asset":{"properties":{"type":{"type":"string","enum":["image","video"],"title":"Type"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url","description":"Source media URL, if supplied; may expire or require platform cookies. It is not rehosted."},"preview_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preview Url"},"position":{"type":"integer","minimum":0.0,"title":"Position"},"width":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Width"},"height":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Height"},"duration_seconds":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Duration Seconds"}},"type":"object","required":["type","url","preview_url","position","width","height","duration_seconds"],"title":"Asset"},"Author":{"properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"},"username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Username"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"verified":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Verified"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"}},"type":"object","required":["id","username","name","verified","url"],"title":"Author"},"Collection":{"properties":{"scope":{"type":"string","const":"public_profile_preview","title":"Scope"},"returned":{"type":"integer","maximum":12.0,"minimum":0.0,"title":"Returned"},"partial":{"type":"boolean","const":true,"title":"Partial"},"has_more":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Has More"},"pagination_supported":{"type":"boolean","const":false,"title":"Pagination Supported"}},"type":"object","required":["scope","returned","partial","has_more","pagination_supported"],"title":"Collection"},"Creative":{"properties":{"source":{"type":"string","title":"Source","description":"Source group, such as snapshot.cards[0]. Groups are not inferred combinations."},"text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"destination_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Destination Url"},"cta":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cta"},"images":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Images"},"videos":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Videos"}},"additionalProperties":true,"type":"object","required":["source"],"title":"Creative"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"Media":{"properties":{"assets":{"items":{"$ref":"#/components/schemas/Asset"},"type":"array","title":"Assets"},"expected_count":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Expected Count","description":"Only the count explicitly supplied by the platform; null when unknown."},"returned_count":{"type":"integer","minimum":0.0,"title":"Returned Count"},"complete":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Complete","description":"False for partial previews; null when completeness cannot be established."}},"type":"object","required":["assets","expected_count","returned_count","complete"],"title":"Media"},"MetaAd":{"properties":{"ad_archive_id":{"type":"string","title":"Ad Archive Id"},"page_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Id"},"page_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Name"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"},"snapshot":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Snapshot","description":"Present in view=raw; Meta source fields, including nulls and templates."},"creatives":{"anyOf":[{"items":{"$ref":"#/components/schemas/Creative"},"type":"array"},{"type":"null"}],"title":"Creatives","description":"Present in view=compact when usable creative groups were captured. No truncation."},"ad_details":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Ad Details"},"ad_details_status":{"anyOf":[{"type":"string","enum":["available","unavailable","failed","skipped"]},{"type":"null"}],"title":"Ad Details Status"},"ad_details_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ad Details Reason"},"links":{"$ref":"#/components/schemas/AdLinks"}},"additionalProperties":true,"type":"object","required":["ad_archive_id","links"],"title":"MetaAd"},"MetaDetailResponse":{"properties":{"ad":{"$ref":"#/components/schemas/MetaAd"},"ad_details":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Ad Details"},"refused_requests":{"type":"integer","minimum":0.0,"title":"Refused Requests"},"links":{"$ref":"#/components/schemas/ResponseLinks"},"response_metadata":{"additionalProperties":true,"type":"object","title":"Response Metadata"}},"additionalProperties":true,"type":"object","required":["ad","ad_details","refused_requests","links","response_metadata"],"title":"MetaDetailResponse"},"MetaSearchResponse":{"properties":{"search_parameters":{"additionalProperties":true,"type":"object","title":"Search Parameters"},"search_information":{"$ref":"#/components/schemas/SearchInformation"},"ads":{"items":{"$ref":"#/components/schemas/MetaAd"},"type":"array","title":"Ads"},"links":{"$ref":"#/components/schemas/ResponseLinks"},"response_metadata":{"additionalProperties":true,"type":"object","title":"Response Metadata"}},"additionalProperties":true,"type":"object","required":["search_parameters","search_information","ads","links","response_metadata"],"title":"MetaSearchResponse"},"Metrics":{"properties":{"views":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Views"},"likes":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Likes"},"comments":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Comments"},"shares":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Shares"},"saves":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Saves"}},"type":"object","required":["views","likes","comments","shares","saves"],"title":"Metrics"},"Post":{"properties":{"id":{"type":"string","title":"Id"},"shortcode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Shortcode"},"url":{"type":"string","title":"Url"},"type":{"type":"string","enum":["image","video","photo","carousel","unknown"],"title":"Type"},"caption":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Caption"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"},"author":{"$ref":"#/components/schemas/Author"},"metrics":{"$ref":"#/components/schemas/Metrics"},"media":{"$ref":"#/components/schemas/Media"},"links":{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"null"}]},"type":"object","title":"Links"}},"type":"object","required":["id","shortcode","url","type","caption","created_at","author","metrics","media"],"title":"Post"},"PostResponse":{"properties":{"source":{"$ref":"#/components/schemas/Source"},"links":{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"null"}]},"type":"object","title":"Links"},"post":{"$ref":"#/components/schemas/Post"}},"type":"object","required":["source","links","post"],"title":"PostResponse"},"ProductDiscoveryRequest":{"properties":{"url":{"type":"string","maxLength":2048,"minLength":10,"title":"Url"},"country":{"type":"string","pattern":"^(?:ALL|[A-Za-z]{2})$","title":"Country","default":"ALL"},"limit":{"type":"integer","maximum":30.0,"minimum":1.0,"title":"Limit","default":10}},"additionalProperties":false,"type":"object","required":["url"],"title":"ProductDiscoveryRequest"},"Profile":{"properties":{"id":{"type":"string","title":"Id"},"username":{"type":"string","title":"Username"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"verified":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Verified"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"biography":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Biography"},"private":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Private"},"avatar_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar Url"},"website":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Website"},"followers":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Followers"},"following":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Following"},"posts_count":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Posts Count"},"likes":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Likes"}},"type":"object","required":["id","username","name","verified","url","biography","private","avatar_url","website","followers","following","posts_count","likes"],"title":"Profile"},"ProfilePostsResponse":{"properties":{"source":{"$ref":"#/components/schemas/Source"},"links":{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"null"}]},"type":"object","title":"Links"},"profile":{"$ref":"#/components/schemas/Profile"},"posts":{"items":{"$ref":"#/components/schemas/Post"},"type":"array","title":"Posts"},"collection":{"$ref":"#/components/schemas/Collection"}},"type":"object","required":["source","links","profile","posts","collection"],"title":"ProfilePostsResponse"},"ProfileResponse":{"properties":{"source":{"$ref":"#/components/schemas/Source"},"links":{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"null"}]},"type":"object","title":"Links"},"profile":{"$ref":"#/components/schemas/Profile"}},"type":"object","required":["source","links","profile"],"title":"ProfileResponse"},"ResponseLinks":{"properties":{"self":{"type":"string","title":"Self"},"next":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next"}},"additionalProperties":true,"type":"object","required":["self"],"title":"ResponseLinks"},"SearchInformation":{"properties":{"total_results":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Results"},"ads_returned":{"type":"integer","minimum":0.0,"title":"Ads Returned"},"has_more":{"type":"boolean","title":"Has More"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"},"refused_requests":{"type":"integer","minimum":0.0,"title":"Refused Requests"}},"additionalProperties":true,"type":"object","required":["total_results","ads_returned","has_more","next_cursor","refused_requests"],"title":"SearchInformation"},"ShopifyProductRequest":{"properties":{"url":{"type":"string","maxLength":2048,"minLength":10,"title":"Url"}},"additionalProperties":false,"type":"object","required":["url"],"title":"ShopifyProductRequest"},"Source":{"properties":{"platform":{"type":"string","enum":["tiktok","instagram"],"title":"Platform"},"method":{"type":"string","const":"public_web_page","title":"Method"},"collector":{"type":"string","const":"curl_cffi","title":"Collector"},"url":{"type":"string","title":"Url"},"observed_at":{"type":"string","title":"Observed At"},"cached":{"type":"boolean","title":"Cached"},"age_seconds":{"type":"number","maximum":300.0,"minimum":0.0,"title":"Age Seconds"},"exit_country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Exit Country","description":"Collection exit country, not a content-country filter."}},"type":"object","required":["platform","method","collector","url","observed_at","cached","age_seconds","exit_country"],"title":"Source"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"_LeadForm":{"properties":{"email":{"type":"string","maxLength":254,"pattern":"^[^@\\s]+@[^@\\s]+\\.[^@\\s]+$","title":"Email"},"need":{"type":"string","maxLength":4000,"title":"Need","default":""},"page":{"type":"string","maxLength":500,"title":"Page","default":""},"referrer":{"type":"string","maxLength":500,"title":"Referrer","default":""}},"type":"object","required":["email"],"title":"_LeadForm","description":"What the form of the site posts. A field it does not know is ignored."},"_Purchase":{"properties":{"plan":{"type":"string","maxLength":40,"minLength":1,"title":"Plan"},"recurring":{"type":"boolean","title":"Recurring","default":true}},"additionalProperties":false,"type":"object","required":["plan"],"title":"_Purchase"}},"securitySchemes":{"APIKeyHeader":{"type":"apiKey","in":"header","name":"X-API-Key"}}}}