
Social: read YouTube, Instagram and Threads through the API
Search YouTube, Instagram and Threads and read videos, posts, comments, profiles and YouTube captions as JSON from any API key, for 0.5 credits a completed request.

Read the public ad libraries of Meta, Google, LinkedIn and TikTok with one ADS request, and get each ad with its advertiser, run dates, format and landing domain, for 0.5 credits per 30 ads.
meta_ad_library (Facebook, Instagram, Messenger, WhatsApp, Threads), google_ads_transparency (Search, YouTube, Display, Play, Maps, Shopping), linkedin_ad_library, tiktok_ad_library and tiktok_creative_center.libraryId, the advertiser, format, startDate, endDate, activeDays, isActive and landingDomain, so ads from different libraries line up in one table.summary of every response: ads per advertiser, formats, landing domains, launches by week, the 5 longest running ads and the median activeDays.action ad opens one ad with its text, video and landing page, and for ads shown in the EU, the impressions or reach the library publishes. advertisers finds an advertiser’s ID by name.Send taskType ADS to POST /v1/async/task with a platform. search, the default, lists ads by advertiser ID, by up to 10 advertiser IDs at once, by advertiser name or, on Google, by the website in domain. A field the library cannot search is refused with 400 VALIDATION_ERROR naming the field.
Each library keeps what it publishes. Google and LinkedIn keep an ad for about 12 months, and the TikTok Ad Library for about 13 months in 34 regions: the EU and EEA, UK, Switzerland, Türkiye and Brazil. Meta keeps a stopped ad for about a year when it ran in the EU or the UK, and ads about social issues, elections and politics for about 7 years. The TikTok Creative Center ranks the top ads of the last 7, 30 or 180 days in 28 countries, including the US, Korea and Japan.
A search returns up to 500 ads. A response with more ads carries nextCursor, which reads the next ads of the same search. To keep a competitor’s ad history after the library drops it, run the search every day and store the ads.
activeDays to find the ads it keeps running.payer for the agency that pays for them.Send the request with your API key in the Authorization header.
curl -X POST https://api.querying.ai/v1/async/task \
-H "Authorization: Bearer $QUERYING_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"taskType": "ADS",
"payload": {
"platform": "google_ads_transparency",
"domain": "nike.com",
"country": "KR",
"limit": 5
}
}'taskTypestringRequiredCHATGPT or GOOGLE.payload.platformstringRequiredmeta_ad_library, google_ads_transparency, linkedin_ad_library, tiktok_ad_library or tiktok_creative_center.payload.actionstringsearch (default) lists ads, advertisers finds an advertiser’s ID by name, and ad opens one ad. Each library lists its actions in the docs.payload.domainstringgoogle_ads_transparency, a bare domain such as nike.com. search lists the ads that link to it, whichever advertiser runs them.payload.countrystringgoogle_ads_transparency, ALL (default) reads every country.payload.limitintegersearch, from 1 to 500. Default 30. A response with more ads carries nextCursor.webhook.urlstringA finished task looks like this, trimmed for length.
{
"success": true,
"task": {
"id": "…",
"taskType": "ADS",
"status": "COMPLETED",
"createdAt": "…"
},
"credits": { "creditsToCharge": 0.5, "creditsCharged": 0.5 },
"response": {
"platform": "google_ads_transparency",
"action": "search",
"country": "KR",
"domain": "nike.com",
"totalCountRange": { "min": 1000, "max": 2000 },
"returnedCount": 5,
"hasMore": true,
"nextCursor": "…",
"ads": [
{
"position": 1,
"libraryId": "CR09172534072340119553",
"advertiserId": "AR01437837420136497153",
"advertiserName": "株式会社ナイキジャパン",
"isActive": true,
"startDate": "2025-01-08",
"endDate": "2026-11-22",
"activeDays": 684,
"format": "TEXT",
"landingDomain": "nike.com"
},
"…"
],
"summary": {
"ads": 5,
"activeAds": 5,
"formats": { "TEXT": 5 },
"landingDomains": [{ "domain": "nike.com", "ads": 5 }],
"longestRunning": [
{
"libraryId": "CR16869261615919267841",
"advertiserName": "NIKE GLOBAL TRADING B.V. SINGAPORE BRANCH",
"activeDays": 1563
},
"…"
],
"medianActiveDays": 714
}
}
}task.statusstringQUEUED, PROCESSING, then COMPLETED with the answer or FAILED with error.credits.creditsChargedintegerresponse.adsarrayposition, libraryId, libraryUrl, the advertiser, format, startDate, endDate, activeDays, isActive, landingDomain, images and videos. A field the library does not publish is null.response.summaryobjectads, activeAds, advertisers, formats, landingDomains, launchesByWeek, longestRunning (the 5 ads with the most activeDays) and medianActiveDays.The request returns the task right away with status QUEUED. Poll GET /v1/async/task/{id} until status is COMPLETED or FAILED, or add webhook.url and the finished task arrives at your server with the same task, credits and response. Results stay available for 24 hours after a task finishes.
curl https://api.querying.ai/v1/async/task/$TASK_ID \
-H "Authorization: Bearer $QUERYING_API_KEY"A search uses 0.5 credits for every 30 ads it returns, on every library. advertisers, ad and advertiser use 0.5 credits each. Only completed tasks are charged. Plans and credits: https://querying.ai/pricing

Search YouTube, Instagram and Threads and read videos, posts, comments, profiles and YouTube captions as JSON from any API key, for 0.5 credits a completed request.

Give your agent web search in one call: each result comes with the passages of its page that answer the query, for 0.5 credits a search.
Get new product updates in your inbox.