Nexscope

TikTok Ad Library Ad Library Ad

Look up a TikTok ad by ID or URL. The lookup checks Creative Center Top Ads, then the public transparency Ads Library when the ID is not a Top Ads material.

CostAt least 10 credits / call
Try online
POST · https://api.nexscope.ai/social/tiktok/ad-library/adMCP · social_tiktok_ad_library_ad

What this API does

Look up a TikTok ad by ID or URL. The lookup checks Creative Center Top Ads, then the public transparency Ads Library when the ID is not a Top Ads material. The request accepts ad_id. Its documented result includes platform, resourceStatus.

TikTok Ad Library Ad Library Ad API use cases

Plan a TikTok Ad Library Ad Library Ad request

A researcher checks the published operation description and supplies ad_id for TikTok Ad Library Ad Library Ad. The request stays within the supported parameters rather than assuming other platform capabilities.

Inspect TikTok Ad Library Ad Library Ad results

An analyst reviews platform, resourceStatus from TikTok Ad Library Ad Library Ad for the requested subject. Missing values remain explicit, and the response does not establish complete platform coverage.

Document TikTok Ad Library Ad Library Ad observations

A researcher records the inputs and available results from TikTok Ad Library Ad Library Ad alongside its published description. The record supports a scoped review without inferring unsupported actions, refresh intervals or broader conclusions.

TikTok Ad Library Ad Library Ad API FAQ

What does the TikTok Ad Library Ad Library Ad API return?

Look up a TikTok ad by ID or URL. The lookup checks Creative Center Top Ads, then the public transparency Ads Library when the ID is not a Top Ads material. The documented output includes platform, resourceStatus. It corresponds to the supplied ad_id. Optional fields can be absent; a missing value should not be interpreted as a measured zero. Example values illustrate the response shape, rather than live account results.

How many credits does the TikTok Ad Library Ad Library Ad API cost?

The current documented cost is At least 10 credits / call. This is the same cost shown at the top of this page. If a range or estimate is displayed, the final charge depends on the request. Review your available credits and the pricing page before calling the API, and check API usage records for the actual charge.

How do I call the TikTok Ad Library Ad Library Ad API from my app or an MCP client?

Send a POST request to https://api.nexscope.ai/social/tiktok/ad-library/ad with your API key as a Bearer token and the JSON inputs shown in API integration. In a compatible MCP client such as Claude or Cursor, connect Nexscope and call social_tiktok_ad_library_ad. Use the MCP arguments shown in the MCP guide, or switch Online test to MCP to review its request before adding it to your app.

View plans and creditsConnect this API with MCP

Try this API
Endpoint
https://api.nexscope.ai/social/tiktok/ad-library/ad
MCP method
social_tiktok_ad_library_ad

Step 1 of 3 · Authenticate

Authentication

All run endpoints require a user API key. Send it as a bearer token in the Authorization header.

Authorization: Bearer nk-xxxxxxxxxxxxxxxxx
Missing or invalid API keys return an authentication error. Manage keys from .

Step 2 of 3 · Send a request

POSThttps://api.nexscope.ai/social/tiktok/ad-library/ad

Run an API

Send a JSON request body using the parameters described below.

Example request

Replace YOUR_API_KEY, then run this command in your terminal.

curl -X POST 'https://api.nexscope.ai/social/tiktok/ad-library/ad' \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "ad_id": "1869335220395266"
}'

Code example

{
  "ad_id": "1869335220395266"
}

Step 3 of 3 · Inspect the result

Check the response

Read code for the request status and data for the result. Open the parameter and response reference for the full field definitions.

HTTP status codes

CodeDescription
200Default HTTP response for both success and many business errors. Only outer JSON code 0 indicates success or asynchronous acceptance; inspect data for the result.
429Execution admission rate limit; honor Retry-After when present.
503Execution admission is temporarily unavailable; honor Retry-After when present.
Opt-inX-Nexscope-Http-Status: semantic maps controller-handled business errors to HTTP status on run and task routes. Pre-authentication failures, such as a missing API key (code 11209), may still return HTTP 200 before this mapping. Always check the outer JSON code; malformed requests and infrastructure failures may also return non-200 HTTP responses.
All categories/ Social Data
POSThttps://api.nexscope.ai/social/tiktok/ad-library/ad

Run this API

Send a JSON request to execute this API and receive the documented response payload.

Endpoint

MethodPOST
Pathhttps://api.nexscope.ai/social/tiktok/ad-library/ad
AuthBearer API key
Content-Typeapplication/json

Request parameters

NameTypeRequiredDescription
ad_idstringrequired
Creative Center Top Ads material ID or URL, or a public Ads Library ad ID or library.tiktok.com detail URL.
Example: 1869335220395266

Social data contract

Use your Nexscope API key. No supplier credentials are required. Requests reject unknown fields, including pageSize. URLs require HTTPS and an exact supported platform host and resource path. Documented YouTube video URLs may use youtu.be; other short links are unsupported. Check the request schema for supported fields and defaults.

Each request fetches one page. Continue manually with the returned nextCursor, or nextPage for Instagram Reels (pages 1–11). Cursors are opaque, unchanged strings up to 65536 UTF-8 bytes. No automatic pagination, retry, media download or transcription is performed. Repeated requests may purchase data again.

Resource status is independent of HTTP and billing: AVAILABLE, PARTIAL, PRIVATE, RESTRICTED, NOT_FOUND, NO_TRANSCRIPT or UNKNOWN can accompany code 0. Unknown values remain null; arrays remain empty arrays. fetchedAt is the response observation time; sourceFetchedAt is null without source evidence.

usage.billingStatus is NOT_CHARGED, SETTLED or UNKNOWN; chargedCredits is null when unconfirmed. Unknown charges never mean free. Completed lookups have a minimum charge of 10 credits, including cached, no-caption and unavailable-resource results; check API usage records for the actual charge. Parameter errors and unpublished APIs use the standard error envelope; upstream failures use code 13007, rate limits 429 and timeouts 408. Always check code and msg.

Response example

Platform response envelope. code 0 indicates success or acceptance; data contains the business result.

{
  "code": 0,
  "cost": "-1",
  "data": {
    "data": {
      "ad_title": "I thought this was a gimmick until I tried it! A wrinkled shirt, one button, and a few minutes later... ready to wear. Tap the link in bio and see why everyone’s talking about Bellairon before it sells out. @Bellairon LLC ",
      "brand_name": "",
      "comment": 1,
      "cost": 1,
      "country_code": [
        "TR"
      ],
      "creative_center_url": "https://ads.tiktok.com/business/creativecenter/topads/7646829987799334920/pc/en",
      "ctr": 0.5,
      "detail_analysis": null,
      "favorite": false,
      "has_summary": false,
      "highlight_text": "",
      "id": "7646829987799334920",
      "industry_key": "label_22108000000",
      "interactive_time_analysis": {
        "clicks": {
          "analysis": [
            {
              "second": 0,
              "value": 0.2631578947368421
            }
          ],
          "duration": 91,
          "highlight": [
            1
          ],
          "metric": "click_cnt",
          "percentile": 0.99
        },
        "conversion": {
          "analysis": [
            {
              "second": 0,
              "value": 0
            }
          ],
          "duration": 91,
          "highlight": [],
          "metric": "convert_cnt",
          "percentile": 0.99
        },
        "ctr": {
          "analysis": [
            {
              "second": 0,
              "value": 0.048321828136158054
            }
          ],
          "duration": 91,
          "highlight": [
            1
          ],
          "metric": "retain_ctr",
          "percentile": 0.99
        },
        "cvr": {
          "analysis": [
            {
              "second": 0,
              "value": 0
            }
          ],
          "duration": 91,
          "highlight": [],
          "metric": "retain_cvr",
          "percentile": 0.99
        },
        "remain": {
          "analysis": [
            {
              "second": 0,
              "value": 1
            }
          ],
          "duration": 91,
          "highlight": [],
          "metric": "play_retain_cnt",
          "percentile": 0.99
        }
      },
      "is_search": false,
      "keyword_list": null,
      "landing_page": "https://www.amazon.com/dp/B0DRTC8XBW?ref=cm_sw_r_cso_wa_apin_dp_71W8F02XC4M4QZRQ5RQN&ref_=cm_sw_r_cso_wa_apin_dp_71W8F02XC4M4QZRQ5RQN&social_share=cm_sw_r_cso_wa_apin_dp_71W8F02XC4M4QZRQ5RQN&oas=true&utm_source=tiktok&utm_medium=paid&utm_id=__CAMPAIGN_ID__&utm_campaign=__CAMPAIGN_NAME__",
      "like": 92,
      "objective_key": "campaign_objective_reach",
      "objectives": [
        {
          "label": "campaign_objective_reach",
          "value": 5
        }
      ],
      "pattern_label": [],
      "recommended_for_you": [
        {
          "ad_title": "Adımlarınıza eğlence katmaya hazır mısınız? \"Hiç böyle çorap görmüş müydünüz?\" diyoruz ve iddiamızı ortaya koyuyoruz! ​Giyimkent Outlet İndirim Çadırı'nda çorap modasına yepyeni bir boyut getirdik. Sevdiğiniz popüler kültür ve kült anime karakterlerini, kolları hareket edebilen bu özel 3 boyutlu tasarım çoraplarla tarzınıza taşıyın.  İster günlük kombinlerinize eğlenceli bir dokunuş yapın, ister arkadaşlarınıza tebessüm ettirecek harika bir hediye seçin. Videomuzdaki gibi ister halay çektirin, ister horon teptirin; seçim sizin! ​Bu benzersiz ve eğlenceli tasarım çoraplarda dev fırsat: 2 Adet Sadece 100 TL! Favori karakterleriniz tükenmeden sizleri de Esenler'deki Giyimkent Outlet indirim çadırımıza bekliyoruz. Adresimiz: Oruçreis mah. Giyimkent Caddesi No:5 Esenler/İstanbul M7 Metro Hattı Giyimkent durağı önü. Hafta içi 10:00 ile 19:00 Hafta Sonu 10:00 - 20:00 Saatleri Arasında açıktır. #alışverişfestivali #kampanya #outlet #giyimkent ",
          "brand_name": "",
          "cost": 0,
          "ctr": 0.63,
          "favorite": false,
          "id": "7644102379697602567",
          "industry_key": "label_22108000000",
          "is_search": false,
          "like": 127,
          "objective_key": "campaign_objective_reach",
          "video_info": {
            "cover": "https://p16-common-sign.tiktokcdn.com/tos-alisg-p-0037/ogCtJD4GUCr8GavLIfI1jAQ9IDvNeGEAfjQgg9~tplv-noop.image?dr=18692&refresh_token=fc9b28a3&x-expires=1781231805&x-signature=zYq%2F3BQnXoM8CMFBFKDON6lhPBs%3D&t=9276707c&ps=14f1eb3e&shp=9e36835a&shcp=317596d8&idc=my&VideoID=v1c044g50000d86qrfnog65v7nuvf30g",
            "duration": 13.213,
            "height": 1024,
            "vid": "v1c044g50000d86qrfnog65v7nuvf30g",
            "video_url": {
              "720p": "https://v16m-default.tiktokcdn.com/1342656e028b133716a1e892a89e214a/6a2b70bd/video/tos/alisg/tos-alisg-pve-0037c001/os3NtUfeIHH1ALjc3Q4IWADrx9BGCBG8IEgejj/?a=0&bti=NTU4QDM1NGA%3D&&bt=837&ft=cApXJCz7ThWHanz9LGZmo0P&mime_type=video_mp4&rc=ZDY4NTppZjg4ZWY6Nzc2NEBpajZ5cXk5cml0OzMzODczNEAwYi41YWMwNWMxYGEyM2IyYSMtY3I0MmRrbzNhLS1kMWBzcw%3D%3D&vvpl=1&l=20260612043632D3452D043274878B2384&btag=e000b0000"
            },
            "width": 576
          }
        }
      ],
      "share": 1,
      "source": "Others",
      "source_key": 73,
      "success": true,
      "video_info": {
        "cover": "https://p16-common-sign.tiktokcdn.com/tos-maliva-p-0068c799-us/oIbqBdvfEAiFpgvAOgrQHCF5R0mkDDLiEfvQDS~tplv-noop.image?dr=18692&refresh_token=2cdb79e2&x-expires=1781231880&x-signature=W%2BBTq1VGRRaNnIuMGUpWWSgmOoo%3D&t=9276707c&ps=14f1eb3e&shp=9e36835a&shcp=317596d8&idc=my&VideoID=v12044gd0000d8erq07og65h1cq991gg",
        "duration": 89.767,
        "height": 1280,
        "vid": "v12044gd0000d8erq07og65h1cq991gg",
        "video_url": {
          "540p": "https://v16m-default.tiktokcdn.com/3e7ec770348dbc627fc02ea1e8417c25/6a2b7108/video/tos/maliva/tos-maliva-ve-0068c799-us/oIN2GPIRgHAUBHOeNfLk2HBSERoJeIALGC3jAE/?a=0&bti=NTU4QDM1NGA%3D&&bt=315&ft=cApXJCz7ThWHKnz9LGZmo0P&mime_type=video_mp4&rc=Omk6ZWQ7Nzc7OGY8PGVnOkBpajQ8Zms5cjN1OzMzZzczNEBgNDAzXl9hXjMxLzEvXjFiYSNkNm4uMmQ0bmJhLS1kMS9zcw%3D%3D&vvpl=1&l=20260612043631BE40574FD5FFAA863321&btag=e00090000",
          "720p": "https://v16m-default.tiktokcdn.com/9f16ea869602069b9fdad27dc113cb48/6a2b7108/video/tos/maliva/tos-maliva-ve-0068c799-us/ooEipQa9HbhJ4ChzASIngUPhBAdXiABIvxU2E/?a=0&bti=NTU4QDM1NGA%3D&&bt=877&ft=cApXJCz7ThWHKnz9LGZmo0P&mime_type=video_mp4&rc=ZTg3OTQ0NTQzZGVpNWg6NkBpajQ8Zms5cjN1OzMzZzczNEBhNC0yMDViNi8xLV9hX2AuYSNkNm4uMmQ0bmJhLS1kMS9zcw%3D%3D&vvpl=1&l=20260612043631BE40574FD5FFAA863321&btag=e00090000"
        },
        "width": 720
      },
      "voice_over": false
    },
    "platform": "tiktok-ad-library",
    "resourceStatus": "AVAILABLE",
    "usage": {
      "billingStatus": "UNKNOWN"
    }
  },
  "msg": null,
  "time": "2026-01-01 00:00:00",
  "traceId": null,
  "ts": "0"
}

Response fields

NameTypeRequiredDescription
codeintegerrequired
0 means accepted or successful; nonzero is a platform error.
coststringrequired
Elapsed milliseconds, never credits; -1 outside web requests.
dataanyrequired
Data value used by this API operation.
msgstring | nullrequired
Msg value used by this API operation.
timestringrequired
Server local time: yyyy-MM-dd HH:mm:ss.
traceIdstring | nullrequired
Trace id value used by this API operation.
tsstringrequired
Epoch milliseconds.

Any of option 1 — requires platform, resourceStatus, data, usage

NameTypeRequiredDescription
dataobjectrequired
Data value used by this API operation.
data.dataobjectrequired
Data value used by this API operation.
data.platformstringrequired
Platform value used by this API operation.
data.resourceStatusstringrequired
Resource status value used by this API operation.
data.usageobjectrequired
Usage value used by this API operation.

Any of option 2

NameTypeRequiredDescription
datanullrequired
Data value used by this API operation.

Responses

CodeDescription
200Default HTTP response for both success and many business errors. Only outer JSON code 0 indicates success or asynchronous acceptance; inspect data for the result.
429Execution admission rate limit; honor Retry-After when present.
503Execution admission is temporarily unavailable; honor Retry-After when present.
Opt-inX-Nexscope-Http-Status: semantic maps controller-handled business errors to HTTP status on run and task routes. Pre-authentication failures, such as a missing API key (code 11209), may still return HTTP 200 before this mapping. Always check the outer JSON code; malformed requests and infrastructure failures may also return non-200 HTTP responses.

Data source, freshness, and limitations

Source, freshness, coverage, rate limits, and estimation notes are not specified in this API definition unless they appear in the request or response field documentation above. Do not assume official marketplace data or real-time freshness when it is not explicitly documented.

Step 1 of 2 · Connect your MCP client

MCP

V2 recommended

Connect remote agents through the standard MCP 2025-11-25 Streamable HTTP endpoint. Use OAuth 2.1 Authorization Code with PKCE, or an API key for compatibility.

POST https://api.nexscope.ai/mcp
MCP-Protocol-Version: 2025-11-25
Content-Type: application/json
Authentication

OAuth clients request the mcp:tools scope. The endpoint's 401 response advertises protected-resource metadata for authorization discovery.

Step 2 of 2 · Call the tool

Call a tool

{
  "jsonrpc": "2.0",
  "id": "tool-call-1",
  "method": "tools/call",
  "params": {
    "name": "social_tiktok_ad_library_ad",
    "arguments": {
      "ad_id": "1869335220395266"
    }
  }
}

Legacy MCP v1

Existing API-key clients can continue using the compatibility endpoint. New integrations should use MCP v2.

GET / POST /mcp/legacy

What can you do with this API?

Data explained and practical use cases

AI Guide

Question

What data can TikTok Ad Library Ad Library Ad provide, and how might I use it?

AI answer

Fetches one TikTok ad by ID or URL. It first checks Creative Center Top Ads (ads.tiktok.com), then TikTok's public transparency Ads Library (library.tiktok.com) when the ID is not a Top Ads material. Both sources return the same response shape. Fields TikTok does not expose for a public Ads Library ad are null, empty, or false as appropriate.

Data categoryDocumented fieldsHow to use them
Requestad_idProvide the required identifiers, filters, or paging inputs listed in the API document.
Responsedata.data, data.platform, data.resourceStatusInspect returned values and source references; availability depends on the request and upstream source.
  • Review TikTok Ad Library Ad Library Ad.
    • Prompt example: “Retrieve TikTok Ad Library Ad Library Ad for [ad ID or supported ad URL]. Summarize only the information actually returned and preserve source links when available. Report private, restricted, missing or partial results explicitly; missing values are not zero.”
  • Create a Brief From Returned Text.
    • Prompt example: “Retrieve TikTok Ad Library Ad Library Ad for [ad ID or supported ad URL] and prepare a brief about [my research question] using only text present in the response. Cite the corresponding source links when returned, distinguish quotations from interpretation, and report insufficient text. Do not claim to have read linked pages or infer private information.”
  • Review an Ad From the Public Transparency Library.
    • Prompt example: “Retrieve [TikTok public Ads Library ad URL] and identify the source actually returned. Summarize the advertiser, creative title, landing page and available media references. Explicitly label performance fields that are absent; do not substitute Creative Center figures or treat empty values as zero.”
  • Inspect a Creative Center Ad’s Attention Curve.
    • Prompt example: “Retrieve [TikTok Creative Center Top Ads URL]. If second-by-second analysis is returned, identify the supplied points or highlighted seconds worth reviewing and preserve their metric labels and source scale. Do not convert normalized values into spend, sales or exact conversion counts, and report when this analysis is unavailable.”

These are suggested workflows, not completed lookups. Report missing, restricted, or partial data explicitly; verify the live response before making a decision.

Online test

Execute the current API with your API key and JSON payload. Online tests use this site's configured API environment; the Endpoint and copyable examples use the public integration address.

One request fetches one page. Copy nextCursor into cursor, or nextPage into page (1–11 for Reels), then run manually. Repeated requests may purchase data again. Completed lookups have a minimum charge of 10 credits, including cached, no-caption, private, restricted and not-found results. Resource status and actual billing status are independent; null credits are unknown, never free. Check usage.billingStatus, usage.chargedCredits and API usage records for the actual charge.

Try it

Send a real request with the same contract shown in the reference.

Endpoint
/social/tiktok/ad-library/ad
MCP method
social_tiktok_ad_library_ad
cURL
curl -X POST \
  https://api.nexscope.ai/social/tiktok/ad-library/ad \
  -H "Authorization: Bearer nk-..." \
  -H "Content-Type: application/json" \
  -d '{ "ad_id": "1869335220395266" }'
Request estimate: Estimating…Usage based. The final charge depends on actual usage. Estimating does not run the API or charge credits.API usage records
Response
No response yet. Run the request to see the response here.

Related APIs