---
title: "Ad"
description: "One ad from TikTok's Ad Library: its advertiser and payer, link, impressions per country with the age × gender breakdown, and whom it targeted."
---

> 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/ad
```

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/ad?id=1882611596287058" \
  -H "x-api-key: $APINOA_API_KEY"
```

```js tab="JavaScript"
const params = new URLSearchParams({ id: "1882611596287058" });
const res = await fetch(`https://gateway.apinoa.com/v1/tiktok-ads/ad?${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/ad",
    params={"id": "1882611596287058"},
    headers={"x-api-key": os.environ["APINOA_API_KEY"]},
)
body = res.json()
```

## What to Pass

| Pass | Reads | Notes |
|---|---|---|
| `id` | One ad | The numeric id, or the ad's library URL (`…/ads/detail/?ad_id=…`) |

## Parameters

| Parameter | Type | Required | Notes |
|---|---|---|---|
| `id` | string |  | The ad's id in the library, or its library URL (…/ads/detail/?ad_id=<id>). |

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

## Response

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

```json
{
  "success": true,
  "data": {
    "library": "tiktok-ads",
    "id": "1882611596287058",
    "url": "https://library.tiktok.com/ads/detail/?ad_id=1882611596287058",
    "advertiser": {
      "id": "7569814894275739664",
      "name": "Ryan",
      "ext": {
        "registeredIn": "United Kingdom"
      }
    },
    "paidBy": "Ryan",
    "text": "#tn #nike #getreadywithme #treanding #viral @Nike ",
    "images": [],
    "videos": [
      {
        "url": "https://library.tiktok.com/api/v1/cdn/1795662270/video/aHR0cHM6Ly92NzcudGlrdG9rY…",
        "coverUrl": "https://p16-common-sign.tiktokcdn.com/tos-no1a-p-0037-no/o4EbIAFnVoumAqDqGFqRfxS…"
      }
    ],
    "cards": [],
    "categories": [
      "Apps"
    ],
    "firstShownAt": "2026-11-23T00:00:00.000Z",
    "lastShownAt": "2026-11-23T00:00:00.000Z",
    "impressions": {
      "text": "0-1K",
      "lower": 0,
      "upper": 1000
    },
    "reach": {
      "text": "0-1K",
      "lower": 0,
      "upper": 1000
    },
    "countries": [
      {
        "country": "SE",
        "impressions": {
          "text": "0-1K",
          "lower": 0,
          "upper": 1000
        },
        "ext": {
          "breakdown": [
            {
              "age": "18-24",
              "gender": "MALE",
              "impressions": {
                "text": "0-1K",
                "lower": 0,
                "upper": 1000
              }
            },
            {
              "age": "18-24",
              "gender": "FEMALE",
              "impressions": {
                "text": "0-1K",
                "lower": 0,
                "upper": 1000
              }
            }
          ]
        }
      },
      {
        "country": "DE",
        "impressions": {
          "text": "0-1K",
          "lower": 0,
          "upper": 1000
        },
        "ext": {
          "breakdown": [
            {
              "age": "18-24",
              "gender": "MALE",
              "impressions": {
                "text": "0-1K",
                "lower": 0,
                "upper": 1000
              }
            },
            {
              "age": "18-24",
              "gender": "FEMALE",
              "impressions": {
                "text": "0-1K",
                "lower": 0,
                "upper": 1000
              }
            }
          ]
        }
      }
    ],
    "ext": {
      "objective": "Community interaction",
      "targeting": {
        "countries": [
          "SE",
          "DE"
        ],
        "ages": [
          {
            "region": "SE",
            "13-17": false,
            "18-24": true,
            "25-34": true,
            "35-44": true,
            "45-54": true,
            "55+": true
          },
          {
            "region": "DE",
            "13-17": false,
            "18-24": true,
            "25-34": true,
            "35-44": true,
            "45-54": true,
            "55+": true
          }
        ],
        "genders": [
          {
            "region": "SE",
            "female": true,
            "male": true,
            "unknown": true
          },
          {
            "region": "DE",
            "female": true,
            "male": true,
            "unknown": true
          }
        ],
        "audienceSize": {
          "text": "187.7M-229.4M",
          "lower": 187700000,
          "upper": 229400000
        },
        "interests": "Education, Beauty & Personal Care, Travel, Pets, Apps, News & Entertainment, Foo…",
        "ext": {
          "audience": "No",
          "video_interactions": "",
          "creator_interactions": "",
          "cities": [
            "Glasgow"
          ],
          "provinces": [
            "Scotland"
          ],
          "device_models": [],
          "operating_systems": [
            "ALL"
          ],
          "high_spending_power": "No",
          "audience_exclude": "No",
          "location": {
            "total_region": 12
          }
        }
      },
      "audit_status": "1",
      "type": "2",
      "spent": "",
      "impression": 0,
      "show_mode": 1,
      "rejection_info": null,
      "sor_audit_status": "1",
      "display_mode": "enhanced"
    }
  }
}
```

## Errors

| Status | Code | Meaning |
|---|---|---|
| 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 ad with that id in the library. |
| 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.id` is what `ads?advertiser=` takes (with `advertiserName` = `advertiser.name`); `advertiser.ext.registeredIn` is the country it is registered in, as TikTok names it, and `advertiser.ext.account` the TikTok account the ad ran from, when the library states one.
- `impressions` is over every country; `countries` has one row per country the ad was shown in, with its impressions and, in the row's `ext.breakdown`, the age × gender split.
- Ranges keep TikTok's own text (`0-1K`, `22.2M-27.1M`) next to the bounds read from it.
- `ext.objective` is the campaign objective; `ext.targeting` is whom the ad targeted: the countries, the age groups and genders per country, `audienceSize`, languages, interests, and every other targeting fact (cities, devices, exclusions, …) in `ext.targeting.ext`.
- The video URLs are the library's own signed copies and expire.
