Skip to content
ChangelogNew

See your competitors’ ads on Meta, Google, LinkedIn and TikTok

Ads
An ADS search on POST /v1/async/task for the ads that link to nike.com in Korea, with the longest running ad at 1,563 days, beside the five ad libraries ADS reads

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.

What you get

  • Five libraries in one request shape: 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.
  • Each ad with libraryId, the advertiser, format, startDate, endDate, activeDays, isActive and landingDomain, so ads from different libraries line up in one table.
  • A 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.

How it works

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.

Where it helps

  • List every Google ad that links to a competitor’s website in your country, and sort by activeDays to find the ads it keeps running.
  • Compare up to 10 competitors in one request and see who launched the most ads in each week.
  • Read a B2B competitor’s LinkedIn ads, and search by payer for the agency that pays for them.
  • Before you plan a TikTok campaign, read the top ads of your industry in the US, Korea or Japan from the Creative Center.

Send a request

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
    }
  }'

Request fields

taskTypestringRequired
The engine to run, such as CHATGPT or GOOGLE.
payload.platformstringRequired
The ad library to read: meta_ad_library, google_ads_transparency, linkedin_ad_library, tiktok_ad_library or tiktok_creative_center.
payload.actionstring
search (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.domainstring
On google_ads_transparency, a bare domain such as nike.com. search lists the ads that link to it, whichever advertiser runs them.
payload.countrystring
Where the ads were shown, as a two-letter country code. On google_ads_transparency, ALL (default) reads every country.
payload.limitinteger
Ads to return on search, from 1 to 500. Default 30. A response with more ads carries nextCursor.
webhook.urlstring
An HTTPS address on your server. The finished task is posted there the moment it completes.

Response

A finished task looks like this, trimmed for length.

JSON
{
  "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.statusstring
QUEUED, PROCESSING, then COMPLETED with the answer or FAILED with error.
credits.creditsChargedinteger
Credits charged for the finished task. A failed task charges 0.
response.adsarray
Ads in the library’s order: position, libraryId, libraryUrl, the advertiser, format, startDate, endDate, activeDays, isActive, landingDomain, images and videos. A field the library does not publish is null.
response.summaryobject
Counts over the ads of this response: ads, activeAds, advertisers, formats, landingDomains, launchesByWeek, longestRunning (the 5 ads with the most activeDays) and medianActiveDays.

Receive the result

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"

Pricing

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

More updates

Stay in the loop

Get new product updates in your inbox.

RSS feed