Apinoa Docs

Ads

Search TikTok's Ad Library by keyword, or list every ad one advertiser ran in a country of the EU, the UK, and the other countries the library covers.

View raw .mdx
GET | POST /v1/tiktok-ads/ads

Send parameters as a query string with GET, or as a JSON body with POST. Both are equivalent.

Request

curl "https://gateway.apinoa.com/v1/tiktok-ads/ads?advertiserName=NIKE%20Retail%20B.V.&advertiser=6876453864464188162&country=DE" \
  -H "x-api-key: $APINOA_API_KEY"

What to Pass

PassReadsNotes
queryAds matching the keywords
advertiserNameEvery ad one advertiser ranIts name as advertisers lists it; add advertiser (its id) to skip the lookup

Pass query or advertiserName, and country: one of AT, BE, BG, HR, CY, CZ, DK, EE, FI, FR, DE, GR, HU, IE, IT, LV, LT, LU, MT, NL, PL, PT, RO, SK, SI, ES, SE, IS, LI, NO, CH, GB, TR, BR. The library covers ads shown in the EU and the EEA, Switzerland, the UK, Turkey and Brazil; it does not cover the US. The filters (startDate, endDate, sort, order, status) work with either.

Parameters

ParameterTypeRequiredNotes
advertiserstringWith advertiserName: the advertiser's id (advertisers and an ad's advertiser.id give it), which saves the name lookup. A comma list where the library lists several.
advertiserNamestringEvery ad one advertiser ran: its name exactly as advertisers lists it.
countryenumWhere the ads were shown (required): one of AT, BE, BG, HR, CY, CZ, DK, EE, FI, FR, DE, GR, HU, IE, IT, LV, LT, LU, MT, NL, PL, PT, RO, SK, SI, ES, SE, IS, LI, NO, CH, GB, TR, BR — the EU, the EEA, Switzerland, the UK, Turkey and Brazil (not the US), which is what the library covers. AT BE BG HR CY CZ DK EE FI FR DE GR HU IE IT LV LT LU MT NL PL PT RO SK SI ES SE IS LI NO CH GB TR BR
cursorstringOpaque cursor from the previous page's cursor. Pass it alone for the next page.
endDatestringLast day shown, YYYY-MM-DD (default: today).
orderenumdesc (default) or asc. desc asc
querystringKeywords to search the library's ads for.
sortenumOrder: the day last shown (default), creation, or impressions. lastShown created impressions
startDatestringFirst day shown, YYYY-MM-DD (default: 30 days before endDate).
statusenumall ads (default), or only those still running. all active

The same parameters, and every response type, are in the OpenAPI document.

Response

Returns AdPage in data. A real response, shortened: arrays keep their first entries and long text is cut.

{
  "success": true,
  "data": {
    "library": "tiktok-ads",
    "items": [
      {
        "library": "tiktok-ads",
        "id": "1882724572699761",
        "url": "https://library.tiktok.com/ads/detail/?ad_id=1882724572699761",
        "advertiser": {
          "name": "NIKE Retail B.V."
        },
        "images": [],
        "videos": [
          {
            "url": "https://library.tiktok.com/api/v1/cdn/1795662568/video/aHR0cHM6Ly92MTZtLnRpa3Rva…",
            "coverUrl": "https://p16-common-sign.tiktokcdn.com/tos-useast2a-p-0037-euttp/oIP9EXaIYbgzE0ZC…"
          }
        ],
        "cards": [],
        "firstShownAt": "2026-11-24T00:00:00.000Z",
        "lastShownAt": "2026-11-24T00:00:00.000Z",
        "reach": {
          "text": "100K-200K",
          "lower": 100000,
          "upper": 200000
        },
        "ext": {
          "audit_status": "1",
          "type": "2",
          "spent": "",
          "impression": 0,
          "show_mode": 1,
          "rejection_info": null,
          "sor_audit_status": "1"
        }
      }
    ],
    "cursor": "dERsZAXeOKHmah7cEuTr7TborJxvm1ZkC31Xm_ImwWtV6floyr3ypouSoI4TEDeGpJKZHrwiQqgmYBj7…",
    "total": 16528
  }
}

Errors

StatusCodeMeaning
400INVALID_CURSORThe cursor is not one this operation returned. Start again without it.
400INVALID_PARAMSA parameter is missing, unknown or out of range. The message names it.
401UNAUTHORIZEDThe x-api-key header is missing, or the key is revoked or unknown.
402INSUFFICIENT_CREDITSYour credits do not cover this call. Choose a plan or top up in the dashboard.
404NOT_FOUNDNo advertiser by that name in the library. The message names the ones it lists.
429MARKETPLACE_SATURATEDToo many concurrent calls. Retry after the Retry-After seconds.
502UPSTREAM_ERRORThe platform answered with something unusable. Retry with backoff.
503SERVICE_UNAVAILABLEA temporary failure. Retry with backoff.

Every code is listed in Errors. Failed calls are not billed.

Pricing

Price 1 credit per call. Plans and credits.

Notes

  • advertiser is the advertiser's id and goes with advertiserName: TikTok's library finds an advertiser by its name and id together. advertisers gives both.
  • total is how many ads match, as the library states it. A keyword search counts to 5,000 and stops; at that cap the answer carries totalRange (lower: 5000) instead. An advertiser's ads are counted in full.
  • startDate and endDate are days (YYYY-MM-DD) the ad was shown between; without them, the last 30 days.
  • reach is the range of unique users the ad reached, with TikTok's own text (100K-200K) and the bounds read from it.
  • For who paid, the link, the impressions per country and the targeting, read the ad with ad.
  • What only TikTok states (its review codes, display fields) is in ext under the library's own names.
  • For the next page, pass cursor alone.

On this page