Nexscope

TikTok Ad Library Ad Library Search

Search TikTok's public Ads Library by query or advertiser name. Advertiser searches first resolve the name through TikTok's advertiser typeahead.

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

What this API does

Search TikTok's public Ads Library by query or advertiser name. Advertiser searches first resolve the name through TikTok's advertiser typeahead. The request accepts query, advertiser_name, adv_biz_ids, cursor. Its documented result includes platform, resourceStatus.

TikTok Ad Library Ad Library Search API use cases

Plan a TikTok Ad Library Ad Library Search request

A researcher checks the published operation description and supplies query, advertiser_name, adv_biz_ids, cursor for TikTok Ad Library Ad Library Search. The request stays within the supported parameters rather than assuming other platform capabilities.

Inspect TikTok Ad Library Ad Library Search results

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

Document TikTok Ad Library Ad Library Search observations

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

TikTok Ad Library Ad Library Search API FAQ

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

Search TikTok's public Ads Library by query or advertiser name. Advertiser searches first resolve the name through TikTok's advertiser typeahead. The documented output includes platform, resourceStatus. It corresponds to the supplied query, advertiser_name, adv_biz_ids, cursor. 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 Search 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 Search API from my app or an MCP client?

Send a POST request to https://api.nexscope.ai/social/tiktok/ad-library/search 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_search. 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/search
MCP method
social_tiktok_ad_library_search

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/search

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/search' \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "query": "The Creator Loop"
}'

Code example

{
  "query": "The Creator Loop"
}

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

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_search",
    "arguments": {
      "query": "The Creator Loop"
    }
  }
}

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 Search provide, and how might I use it?

AI answer

Searches TikTok's public Ads Library using either query for a general search or advertiser_name for advertiser-specific results. Advertiser-name searches resolve the name through TikTok's advertiser typeahead first, then search the selected advertiser entity and return adv_biz_ids on each ad. You can pass adv_biz_ids with advertiser_name to pin the exact advertiser shown in TikTok's See all ads link. TikTok requires the name with the ID and ignores an ID-only search, so provide exactly one of

Data categoryDocumented fieldsHow to use them
Requestquery, cursor, advertiser_name, adv_biz_idsProvide 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 Search.
    • Prompt example: “Retrieve TikTok Ad Library Ad Library Search for [search phrase]. 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.”
  • Collect a Bounded Set of Results.
    • Prompt example: “Retrieve TikTok Ad Library Ad Library Search for [search phrase] across at most two pages within my approved credit budget. Use only the continuation information actually returned, with the same query and filters. Stop at the documented page limit, an absent continuation, an end indicator or a repeated page. Keep source references and report that the collection is bounded, not exhaustive.”
  • Inspect Ads From a Specific Advertiser.
    • Prompt example: “Find public TikTok ads for [advertiser name], using [the advertiser business ID from its See all ads link] to pin the intended advertiser. Do not send a general query in this request. Show the resolved advertiser and any ambiguity rather than treating every name match as the same business.”

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/search
MCP method
social_tiktok_ad_library_search
cURL
curl -X POST \
  https://api.nexscope.ai/social/tiktok/ad-library/search \
  -H "Authorization: Bearer nk-..." \
  -H "Content-Type: application/json" \
  -d '{ "query": "The Creator Loop" }'
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