Apinoa Docs

Ad

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

View raw .mdx
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

curl "https://gateway.apinoa.com/v1/tiktok-ads/ad?id=1882611596287058" \
  -H "x-api-key: $APINOA_API_KEY"

What to Pass

PassReadsNotes
idOne adThe numeric id, or the ad's library URL (…/ads/detail/?ad_id=…)

Parameters

ParameterTypeRequiredNotes
idstringThe 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.

Response

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

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

StatusCodeMeaning
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 ad with that id in the library.
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.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.

On this page