---
title: "Ads"
description: "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."
---

> Every apinoa docs page as markdown: https://apinoa.com/llms.txt (all in one file: https://apinoa.com/llms-full.txt; this API family in one file: https://apinoa.com/docs/ads/llms.txt)

```http
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

```bash tab="cURL"
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"
```

```js tab="JavaScript"
const params = new URLSearchParams({ advertiserName: "NIKE Retail B.V.", advertiser: "6876453864464188162", country: "DE" });
const res = await fetch(`https://gateway.apinoa.com/v1/tiktok-ads/ads?${params}`, {
  headers: { "x-api-key": process.env.APINOA_API_KEY },
});
const { success, data, error } = await res.json();
```

```python tab="Python"
import os

import requests

res = requests.get(
    "https://gateway.apinoa.com/v1/tiktok-ads/ads",
    params={"advertiserName": "NIKE Retail B.V.", "advertiser": "6876453864464188162", "country": "DE"},
    headers={"x-api-key": os.environ["APINOA_API_KEY"]},
)
body = res.json()
```

## What to Pass

| Pass | Reads | Notes |
|---|---|---|
| `query` | Ads matching the keywords | |
| `advertiserName` | Every ad one advertiser ran | Its name as [`advertisers`](/docs/api-reference/tiktok-ads/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

| Parameter | Type | Required | Notes |
|---|---|---|---|
| `advertiser` | string |  | With `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. |
| `advertiserName` | string |  | Every ad one advertiser ran: its name exactly as `advertisers` lists it. |
| `country` | enum |  | Where 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` |
| `cursor` | string |  | Opaque cursor from the previous page's `cursor`. Pass it alone for the next page. |
| `endDate` | string |  | Last day shown, YYYY-MM-DD (default: today). |
| `order` | enum |  | desc (default) or asc. `desc` `asc` |
| `query` | string |  | Keywords to search the library's ads for. |
| `sort` | enum |  | Order: the day last shown (default), creation, or impressions. `lastShown` `created` `impressions` |
| `startDate` | string |  | First day shown, YYYY-MM-DD (default: 30 days before `endDate`). |
| `status` | enum |  | all ads (default), or only those still running. `all` `active` |

The same parameters, and every response type, are in the OpenAPI document: https://apinoa.com/openapi.json

## Response

Returns [`AdPage`](/docs/api-reference/ads/response-schema#adpage) in `data`. A real response, shortened: arrays keep their first entries and long text is cut.

```json
{
  "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

| Status | Code | Meaning |
|---|---|---|
| 400 | `INVALID_CURSOR` | The `cursor` is not one this operation returned. Start again without it. |
| 400 | `INVALID_PARAMS` | A parameter is missing, unknown or out of range. The message names it. |
| 401 | `UNAUTHORIZED` | The `x-api-key` header is missing, or the key is revoked or unknown. |
| 402 | `INSUFFICIENT_CREDITS` | Your credits do not cover this call. Choose a plan or top up in the dashboard. |
| 404 | `NOT_FOUND` | No advertiser by that name in the library. The message names the ones it lists. |
| 429 | `MARKETPLACE_SATURATED` | Too many concurrent calls. Retry after the `Retry-After` seconds. |
| 502 | `UPSTREAM_ERROR` | The platform answered with something unusable. Retry with backoff. |
| 503 | `SERVICE_UNAVAILABLE` | A temporary failure. Retry with backoff. |

Every code is listed in [Errors](/docs/errors). Failed calls are not billed.

## Pricing

**Price** 1 credit per call. [Plans and credits](https://apinoa.com/en/pricing).

## 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`](/docs/api-reference/tiktok-ads/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.
