TikTok Scraper

Get TikTok Ad Library Ad Library Search

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 query or advertiser_name. If TikTok has no matching advertiser entity, the API falls back to TikTok's name search. Results are global, sorted by the latest shown date, support cursor pagination, and include a public TikTok Ads Library URL for each ad.

1 creditNo API key needed

Endpoint

Parameters

NameTypeRequiredNote
limitnumber · optionalnumberoptional

Maximum number of results to return from this request. Leave empty for everything this request returns. This trims the response — it does not fetch more; use the returned cursor for the next batch. The price is the same either way.

querystring · optionalstringoptional

General ad search. Provide either query or advertiser_name, not both.

cursorstring · optionalstringoptional

Opaque cursor returned from the previous response.

adv_biz_idsstring · optionalstringoptional

TikTok advertiser business ID from a See all ads link. Use it with advertiser_name to pin the exact advertiser. Required companion: advertiser_name; ID-only searches return 400 because TikTok ignores the ID without the name.

advertiser_namestring · optionalstringoptional

Advertiser name to resolve through TikTok's typeahead and search by advertiser entity. Falls back to TikTok's name search when no entity matches. Provide either advertiser_name or query, not both.

Response schema

{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "properties": {
    "ads": {
      "type": "array"
    },
    "total": {
      "type": "number"
    },
    "cursor": {
      "type": "string"
    },
    "source": {
      "type": "string"
    },
    "has_more": {
      "type": "boolean"
    },
    "limitApplied": {
      "type": "boolean",
      "description": "True when a Limit trimmed the results; there were more in this response."
    },
    "advertiser_name": {
      "type": "string"
    },
    "advertiser_matches": {
      "type": "array"
    },
    "resolved_advertiser_name": {
      "type": "string"
    }
  },
  "additionalProperties": true
}

Get started

How to use this tool

  1. Connect your AI

    Add Connie to ChatGPT, Claude or Slack once, and this tool comes with it. There’s no API key or account to set up.

  2. Ask for the outcome

    Describe what you need in plain words. Your AI runs this tool when the job calls for it, along with any others it needs.

  3. Make it a workflow

    Add it as a step in a workflow that runs the same way every time, on a schedule or when something happens.

  4. Stay in control

    Choose whether it runs on its own or asks first. When it asks, you see an Allow or Deny card before any credits are spent.