> ## Documentation Index
> Fetch the complete documentation index at: https://aisa.one/docs/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> - Base URLs: models `https://api.aisa.one/v1` (Gemini GenerateContent: `https://api.aisa.one/v1beta`); data APIs `https://api.aisa.one/apis/v1`. The `servers` of each operation in https://aisa.one/openapi.yaml is authoritative.
> - Auth: `Authorization: Bearer $AISA_API_KEY`. Never print, log, or commit the key.
> - MCP (preferred for agents): `https://mcp.aisa.one/mcp`, signed in with OAuth, so there is no key to paste.
> - Agent Skill: `npx skills add AIsa-team/agent-skills --skill aisa`. Fallback with the AIsa CLI: `aisa skills install aisa`.
> - Spending: docs, https://aisa.one/models, https://aisa.one/api, `/v1/models`, and MCP `search`, `list_categories`, `get_details`, `batch_quote`, and the `account` operation are free. Quote the exact calls before running them (MCP `batch_quote`, CLI `aisa quote --json`). If the quote reports `auto_execute_eligible: true`, run it unless the user set a tighter limit or asked only for a quote. Otherwise, tell the user in one message the planned calls, the quoted price, and a total USD budget for the task, then wait for approval. Direct HTTP calls follow the stricter rule at https://aisa.one/docs/get-started/cli.md#direct-http-fallback. Do not make paid calls to test availability. Full rule: https://aisa.one/llms.txt

# Search TikTok Ad Library ads

> Searches the public TikTok Ad Library by keyword or advertiser. Provide `query`, `advertiserName` or `advertiserBusinessId`. Results are paged: while `data.page.hasMore` is true, send `data.page.nextCursor` as `cursor` to get the next page.

> **Request example pending verification.** The request example for this endpoint has not yet been verified in production. Static examples describe the request format; replace sample values with your own. Check the estimated price with a free quote request (`X-AISA-Cost-Mode: quote`) before running it.

## Request contract

* **Method and path:** GET /apis/v1/tiktok/ad-library/ads/search
* **Availability:** enabled
* **Request URL template:** `https://api.aisa.one/apis/v1/tiktok/ad-library/ads/search`
* **advertiserBusinessId:** query; optional
* **advertiserName:** query; optional
* **cursor:** query; optional
* **query:** query; optional

[Complete OpenAPI definition](https://aisa.one/docs/openapi-public/tiktok.json)

Effective request declaration (including authentication and referenced schemas):

```json theme={null}
{
  "operationId": "tiktok.ad-library.ads.search",
  "method": "GET",
  "path": "/apis/v1/tiktok/ad-library/ads/search",
  "servers": [
    {
      "url": "https://api.aisa.one"
    }
  ],
  "parameters": [
    {
      "in": "query",
      "name": "advertiserBusinessId",
      "required": false,
      "schema": {
        "description": "TikTok advertiser business ID, from `advertiserMatches[].businessId` or an ad's `advertiserBusinessId`. Pins an advertiser search to that exact advertiser. Requires `advertiserName`.",
        "maxLength": 4096,
        "minLength": 1,
        "type": "string"
      }
    },
    {
      "in": "query",
      "name": "advertiserName",
      "required": false,
      "schema": {
        "description": "Search the public TikTok Ads Library by advertiser name.",
        "maxLength": 4096,
        "minLength": 1,
        "type": "string"
      }
    },
    {
      "in": "query",
      "name": "cursor",
      "required": false,
      "schema": {
        "description": "Opaque pagination cursor from a previous response.",
        "maxLength": 16384,
        "minLength": 1,
        "type": "string"
      }
    },
    {
      "in": "query",
      "name": "query",
      "required": false,
      "schema": {
        "description": "Keyword to search the public TikTok Ads Library.",
        "maxLength": 4096,
        "minLength": 1,
        "type": "string"
      }
    }
  ],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "x-aisa-status": "enabled",
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  }
}
```

## Observed response structure

The response observations below come from successful probes or sampled requests. They are partial: fields and types may vary, and no field is guaranteed to be present. Reviewed response definitions take precedence. No real response values are published.

* **HTTP status / last observed:** 200 / 2026-11-26

```json theme={null}
{
  "additionalProperties": true,
  "properties": {
    "aisa_pagination": {
      "additionalProperties": true,
      "properties": {
        "has_more": {
          "type": "boolean"
        },
        "next_cursor": {
          "type": [
            "null",
            "string"
          ]
        },
        "next_param": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "data": {
      "additionalProperties": true,
      "properties": {
        "page": {
          "additionalProperties": true,
          "properties": {
            "hasMore": {
              "type": "boolean"
            },
            "nextCursor": {
              "type": [
                "null",
                "string"
              ]
            }
          },
          "type": "object"
        },
        "query": {
          "type": "string"
        },
        "source": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "meta": {
      "additionalProperties": true,
      "properties": {
        "version": {
          "type": "string"
        }
      },
      "type": "object"
    }
  },
  "type": "object"
}
```

## Cost and request rules

Usage-based pricing. Default request estimate: \$0.042 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.

## Pagination

* Pass `aisa_pagination.next_cursor` as `cursor` (query parameter) to fetch the next page; stop when `aisa_pagination.has_more` is false.
* The same values are returned in the `X-AISA-Has-More` and `X-AISA-Next-Cursor` response headers.

## Response time

* Typically returns within 30 seconds.


## OpenAPI

````yaml openapi-public/tiktok.json GET /apis/v1/tiktok/ad-library/ads/search
openapi: 3.1.0
info:
  description: ''
  title: TikTok
  version: '1'
  x-aisa-capabilities:
    idempotency: Idempotency-Key
    max_price: X-AISA-Max-Price-USD
    quote:
      header: X-AISA-Cost-Mode
      value: quote
  x-aisa-catalogs:
    tiktok:
      description: ''
      title: TikTok
      x-aisa-capabilities:
        idempotency: Idempotency-Key
        max_price: X-AISA-Max-Price-USD
        quote:
          header: X-AISA-Cost-Mode
          value: quote
      x-aisa-document:
        facts_hash: 0424d237ce9ac91d72c899e856bf8e31bbcfe376d66f9740a6615c49301a6ca3
        generator_version: '3'
        protocol_version: '1'
        schema_version: '1'
      x-aisa-plans:
        builder: 1
        display_plan: payg
        payg: 1
        similarweb_payg: 1
        team: 1
        version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-configured-paths:
    - /apis/v1/tiktok/ad-library/ads
    - /apis/v1/tiktok/ad-library/ads/search
    - /apis/v1/tiktok/collections/videos
    - /apis/v1/tiktok/feed/trending
    - /apis/v1/tiktok/live
    - /apis/v1/tiktok/music/{clipId}/videos
    - /apis/v1/tiktok/products
    - /apis/v1/tiktok/products/reviews
    - /apis/v1/tiktok/profiles/{handle}
    - /apis/v1/tiktok/profiles/{handle}/audience
    - /apis/v1/tiktok/profiles/{handle}/engagement
    - /apis/v1/tiktok/profiles/{handle}/followers
    - /apis/v1/tiktok/profiles/{handle}/following
    - /apis/v1/tiktok/profiles/{handle}/live
    - /apis/v1/tiktok/profiles/{handle}/region
    - /apis/v1/tiktok/profiles/{handle}/showcase-products
    - /apis/v1/tiktok/profiles/{handle}/videos
    - /apis/v1/tiktok/search
    - /apis/v1/tiktok/search/hashtags
    - /apis/v1/tiktok/search/suggestions
    - /apis/v1/tiktok/search/top
    - /apis/v1/tiktok/shop/products
    - /apis/v1/tiktok/shop/products/search
    - /apis/v1/tiktok/songs
    - /apis/v1/tiktok/users/search
    - /apis/v1/tiktok/videos
    - /apis/v1/tiktok/videos/comments
    - /apis/v1/tiktok/videos/comments/replies
    - /apis/v1/tiktok/videos/download
    - /apis/v1/tiktok/videos/transcript
  x-aisa-document:
    composer_version: '31'
    facts_hash: 0424d237ce9ac91d72c899e856bf8e31bbcfe376d66f9740a6615c49301a6ca3
    generator_version: '3'
    protocol_version: '1'
    response_pending: []
    schema_version: '1'
    public_projection:
      version: '4'
      source_document_hash: sha256:8e9b6a276ad49821408b746398b3bae74543d710b864bfdbc64e9333b44541f3
    document_hash: sha256:941dbd71e2389dfb81a6674474af8038a062a6ab5777e77d72033d9d53a651b0
  x-aisa-plans:
    builder: 1
    display_plan: payg
    payg: 1
    similarweb_payg: 1
    team: 1
    version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-provider: tiktok
servers:
  - url: https://api.aisa.one
security:
  - bearerAuth: []
paths:
  /apis/v1/tiktok/ad-library/ads/search:
    get:
      tags:
        - TikTok
      summary: Search TikTok Ad Library ads
      description: >-
        Searches the public TikTok Ad Library by keyword or advertiser. Provide
        `query`, `advertiserName` or `advertiserBusinessId`. Results are paged:
        while `data.page.hasMore` is true, send `data.page.nextCursor` as
        `cursor` to get the next page.


        > **Request example pending verification.** The request example for this
        endpoint has not yet been verified in production. Static examples
        describe the request format; replace sample values with your own. Check
        the estimated price with a free quote request (`X-AISA-Cost-Mode:
        quote`) before running it.
      operationId: tiktok.ad-library.ads.search
      parameters:
        - in: query
          name: advertiserBusinessId
          required: false
          schema:
            description: >-
              TikTok advertiser business ID, from
              `advertiserMatches[].businessId` or an ad's
              `advertiserBusinessId`. Pins an advertiser search to that exact
              advertiser. Requires `advertiserName`.
            maxLength: 4096
            minLength: 1
            type: string
        - in: query
          name: advertiserName
          required: false
          schema:
            description: Search the public TikTok Ads Library by advertiser name.
            maxLength: 4096
            minLength: 1
            type: string
        - in: query
          name: cursor
          required: false
          schema:
            description: Opaque pagination cursor from a previous response.
            maxLength: 16384
            minLength: 1
            type: string
        - in: query
          name: query
          required: false
          schema:
            description: Keyword to search the public TikTok Ads Library.
            maxLength: 4096
            minLength: 1
            type: string
      responses:
        '200':
          content:
            application/json:
              examples:
                advertiser:
                  value:
                    data:
                      ads:
                        - advertiserBusinessId: '6876464402330026753'
                          brandName: APPLE EUROPE LIMITED
                          category: News & Entertainment
                          cost: 1
                          ctr: 0.5
                          estimatedAudience: 1K-10K
                          firstShownAt: '2025-02-13T00:00:00.000Z'
                          format: video
                          id: '1869335220395266'
                          imageUrls: []
                          industryKey: label_22108000000
                          lastShownAt: '2026-08-30T00:00:00.000Z'
                          likeCount: 92
                          moderation:
                            auditStatus: '1'
                            rejectionReason: null
                          objective: campaign_objective_reach
                          title: null
                          url: >-
                            https://library.tiktok.com/ads/detail/?ad_id=1872975048695249
                          video:
                            coverUrl: >-
                              https://p16-common-sign.tiktokcdn.com/tos-maliva-p-0068c799-us/example~tplv-noop.image
                            durationSeconds: 89.767
                            height: 1280
                            id: v12044gd0000d8erq07og65h1cq991gg
                            urls:
                              p1080: null
                              p360: null
                              p480: null
                              p540: >-
                                https://v16m-default.tiktokcdn.com/example-540p.mp4
                              p720: >-
                                https://v16m-default.tiktokcdn.com/example-720p.mp4
                            width: 720
                          videos:
                            - coverUrl: >-
                                https://p16-common-sign.tiktokcdn.com/tos-maliva-p-0068c799-us/example~tplv-noop.image
                              durationSeconds: 89.767
                              height: 1280
                              id: v12044gd0000d8erq07og65h1cq991gg
                              urls:
                                p1080: null
                                p360: null
                                p480: null
                                p540: >-
                                  https://v16m-default.tiktokcdn.com/example-540p.mp4
                                p720: >-
                                  https://v16m-default.tiktokcdn.com/example-720p.mp4
                              width: 720
                      advertiserMatches:
                        - businessId: '6876463108651483905'
                          name: APPLE INC.
                        - businessId: '6876464402330026753'
                          name: APPLE EUROPE LIMITED
                        - businessId: '6935909443695543041'
                          name: APPLE SERVICES LIMITED
                      advertiserName: APPLE EUROPE LIMITED
                      page:
                        hasMore: true
                        nextCursor: >-
                          eyJjIjoiMiIsImYiOnsiYWR2ZXJ0aXNlck5hbWUiOiJBUFBMRSBFVVJPUEUgTElNSVRFRCIsImFkdmVydGlzZXJCdXNpbmVzc0lkIjoiNjg3NjQ2NDQwMjMzMDAyNjc1MyJ9fQ
                        totalResultsEstimate: 373
                      query: ''
                      resolvedAdvertiserName: APPLE EUROPE LIMITED
                      source: tiktok_ads_library
                    meta:
                      creditsCharged: 1
                      requestId: req_01tiktok_ad_library_search_advertiser
                      version: v1
                empty:
                  value:
                    data:
                      ads: []
                      advertiserMatches: []
                      advertiserName: null
                      page:
                        hasMore: false
                        nextCursor: null
                        totalResultsEstimate: 0
                      query: zzzznonexistent
                      resolvedAdvertiserName: null
                      source: null
                    meta:
                      creditsCharged: 1
                      requestId: req_01tiktok_ad_library_search_empty
                      version: v1
                found:
                  value:
                    data:
                      ads:
                        - advertiserBusinessId: null
                          brandName: slvmpedprincesss
                          category: News & Entertainment
                          cost: 1
                          ctr: 0.5
                          estimatedAudience: 1K-10K
                          firstShownAt: '2025-02-13T00:00:00.000Z'
                          format: video
                          id: '1872975048695249'
                          imageUrls: []
                          industryKey: label_22108000000
                          lastShownAt: '2026-08-30T00:00:00.000Z'
                          likeCount: 92
                          moderation:
                            auditStatus: '1'
                            rejectionReason: null
                          objective: campaign_objective_reach
                          title: >-
                            I thought this was a gimmick until I tried it! A
                            wrinkled shirt, one button, and a few minutes
                            later... ready to wear.
                          url: >-
                            https://library.tiktok.com/ads/detail/?ad_id=1872975048695249
                          video:
                            coverUrl: >-
                              https://p16-common-sign.tiktokcdn.com/tos-maliva-p-0068c799-us/example~tplv-noop.image
                            durationSeconds: 89.767
                            height: 1280
                            id: v12044gd0000d8erq07og65h1cq991gg
                            urls:
                              p1080: null
                              p360: null
                              p480: null
                              p540: >-
                                https://v16m-default.tiktokcdn.com/example-540p.mp4
                              p720: >-
                                https://v16m-default.tiktokcdn.com/example-720p.mp4
                            width: 720
                          videos:
                            - coverUrl: >-
                                https://p16-common-sign.tiktokcdn.com/tos-maliva-p-0068c799-us/example~tplv-noop.image
                              durationSeconds: 89.767
                              height: 1280
                              id: v12044gd0000d8erq07og65h1cq991gg
                              urls:
                                p1080: null
                                p360: null
                                p480: null
                                p540: >-
                                  https://v16m-default.tiktokcdn.com/example-540p.mp4
                                p720: >-
                                  https://v16m-default.tiktokcdn.com/example-720p.mp4
                              width: 720
                        - advertiserBusinessId: '7377365644930662401'
                          brandName: EXAMPLE NEWS LTD
                          category: News & Entertainment
                          cost: null
                          ctr: null
                          estimatedAudience: 100K-200K
                          firstShownAt: '2026-08-14T00:00:00.000Z'
                          format: images
                          id: '1873507867490451'
                          imageUrls:
                            - >-
                              https://p16-common-sign.tiktokcdn.com/example-photo-1.jpeg
                            - >-
                              https://p16-common-sign.tiktokcdn.com/example-photo-2.jpeg
                          industryKey: null
                          lastShownAt: '2026-08-30T00:00:00.000Z'
                          likeCount: null
                          moderation:
                            auditStatus: '1'
                            rejectionReason: null
                          objective: null
                          title: null
                          url: >-
                            https://library.tiktok.com/ads/detail/?ad_id=1873507867490451
                          video: null
                          videos: []
                      advertiserMatches: []
                      advertiserName: null
                      page:
                        hasMore: true
                        nextCursor: eyJjIjoiMiIsImYiOnsicXVlcnkiOiJzcG90aWZ5In19
                        totalResultsEstimate: 326
                      query: spotify
                      resolvedAdvertiserName: null
                      source: tiktok_ads_library
                    meta:
                      creditsCharged: 1
                      requestId: req_01tiktok_ad_library_search_found
                      version: v1
              schema:
                description: Standard success response envelope.
                properties:
                  aisa_pagination:
                    additionalProperties: false
                    description: >-
                      AIsa pagination. Pass next_cursor as cursor to fetch the
                      next page; has_more is false on the last page.
                    properties:
                      has_more:
                        type: boolean
                      next_cursor:
                        type:
                          - string
                          - 'null'
                      next_param:
                        const: cursor
                        type: string
                    required:
                      - has_more
                      - next_cursor
                      - next_param
                    type: object
                  data:
                    description: Endpoint-specific response payload.
                    properties:
                      ads:
                        description: >-
                          Ads returned for the requested search. This array may
                          be empty when no ads match.
                        items:
                          description: A TikTok Ad Library ad returned by search.
                          properties:
                            advertiserBusinessId:
                              description: >-
                                TikTok business ID of the ad's advertiser when
                                available. Pass it as `advertiserBusinessId`
                                with `advertiserName` to search only that
                                advertiser.
                              type:
                                - string
                                - 'null'
                            brandName:
                              description: Brand or advertiser name when available.
                              type:
                                - string
                                - 'null'
                            category:
                              description: >-
                                Ad category as TikTok labels it, such as `News &
                                Entertainment`, when available.
                              type:
                                - string
                                - 'null'
                            cost:
                              description: Relative cost signal when available.
                              type:
                                - number
                                - 'null'
                            ctr:
                              description: Click-through rate when available.
                              type:
                                - number
                                - 'null'
                            estimatedAudience:
                              description: Estimated audience band when available.
                              type:
                                - string
                                - 'null'
                            firstShownAt:
                              description: >-
                                ISO-8601 timestamp for when the ad was first
                                shown, when available.
                              type:
                                - string
                                - 'null'
                            format:
                              description: >-
                                Creative format: `video` for video ads, `images`
                                for photo or carousel ads. Null when no creative
                                is reported.
                              enum:
                                - video
                                - images
                                - null
                              type:
                                - string
                                - 'null'
                            id:
                              description: Stable identifier for the ad.
                              minLength: 1
                              type: string
                            imageUrls:
                              description: >-
                                Image URLs for photo or carousel ads, in display
                                order. Empty for video ads.
                              items:
                                minLength: 1
                                type: string
                              type: array
                            industryKey:
                              description: Industry key reported for the ad when available.
                              type:
                                - string
                                - 'null'
                            lastShownAt:
                              description: >-
                                ISO-8601 timestamp for when the ad was last
                                shown, when available.
                              type:
                                - string
                                - 'null'
                            likeCount:
                              description: Like count when available.
                              minimum: 0
                              type:
                                - integer
                                - 'null'
                            moderation:
                              description: TikTok's review information for the ad.
                              properties:
                                auditStatus:
                                  description: >-
                                    Review status code exactly as TikTok reports
                                    it, such as `1`. TikTok does not document
                                    these codes. Null when not reported.
                                  type:
                                    - string
                                    - 'null'
                                rejectionReason:
                                  description: >-
                                    Rejection details as TikTok reports them,
                                    when the ad was rejected. Null otherwise.
                                  type:
                                    - string
                                    - 'null'
                              required:
                                - auditStatus
                                - rejectionReason
                              type: object
                            objective:
                              description: Campaign objective key when available.
                              type:
                                - string
                                - 'null'
                            title:
                              description: Ad title or caption when available.
                              type:
                                - string
                                - 'null'
                            url:
                              description: >-
                                Public TikTok Ads Library detail URL when
                                available.
                              type:
                                - string
                                - 'null'
                            video:
                              description: Video creative when available.
                              properties:
                                coverUrl:
                                  description: Cover image URL when available.
                                  type:
                                    - string
                                    - 'null'
                                durationSeconds:
                                  description: >-
                                    Video duration in seconds when available.
                                    Null for results from the public TikTok Ads
                                    Library, which does not report duration.
                                  type:
                                    - number
                                    - 'null'
                                height:
                                  description: Video height in pixels when available.
                                  minimum: 0
                                  type:
                                    - integer
                                    - 'null'
                                id:
                                  description: Video id when available.
                                  type:
                                    - string
                                    - 'null'
                                urls:
                                  description: Playback URLs by resolution when available.
                                  properties:
                                    p1080:
                                      description: 1080p video URL when available.
                                      type:
                                        - string
                                        - 'null'
                                    p360:
                                      description: 360p video URL when available.
                                      type:
                                        - string
                                        - 'null'
                                    p480:
                                      description: 480p video URL when available.
                                      type:
                                        - string
                                        - 'null'
                                    p540:
                                      description: 540p video URL when available.
                                      type:
                                        - string
                                        - 'null'
                                    p720:
                                      description: 720p video URL when available.
                                      type:
                                        - string
                                        - 'null'
                                  required:
                                    - p360
                                    - p480
                                    - p540
                                    - p720
                                    - p1080
                                  type:
                                    - object
                                    - 'null'
                                width:
                                  description: Video width in pixels when available.
                                  minimum: 0
                                  type:
                                    - integer
                                    - 'null'
                              required:
                                - id
                                - durationSeconds
                                - coverUrl
                                - width
                                - height
                                - urls
                              type:
                                - object
                                - 'null'
                            videos:
                              description: >-
                                Every video creative reported for the ad.
                                `video` is the first entry. Empty for image ads.
                              items:
                                description: Video creative for a TikTok Ad Library ad.
                                properties:
                                  coverUrl:
                                    description: Cover image URL when available.
                                    type:
                                      - string
                                      - 'null'
                                  durationSeconds:
                                    description: >-
                                      Video duration in seconds when available.
                                      Null for results from the public TikTok
                                      Ads Library, which does not report
                                      duration.
                                    type:
                                      - number
                                      - 'null'
                                  height:
                                    description: Video height in pixels when available.
                                    minimum: 0
                                    type:
                                      - integer
                                      - 'null'
                                  id:
                                    description: Video id when available.
                                    type:
                                      - string
                                      - 'null'
                                  urls:
                                    description: >-
                                      Playback URLs by resolution when
                                      available.
                                    properties:
                                      p1080:
                                        description: 1080p video URL when available.
                                        type:
                                          - string
                                          - 'null'
                                      p360:
                                        description: 360p video URL when available.
                                        type:
                                          - string
                                          - 'null'
                                      p480:
                                        description: 480p video URL when available.
                                        type:
                                          - string
                                          - 'null'
                                      p540:
                                        description: 540p video URL when available.
                                        type:
                                          - string
                                          - 'null'
                                      p720:
                                        description: 720p video URL when available.
                                        type:
                                          - string
                                          - 'null'
                                    required:
                                      - p360
                                      - p480
                                      - p540
                                      - p720
                                      - p1080
                                    type:
                                      - object
                                      - 'null'
                                  width:
                                    description: Video width in pixels when available.
                                    minimum: 0
                                    type:
                                      - integer
                                      - 'null'
                                required:
                                  - id
                                  - durationSeconds
                                  - coverUrl
                                  - width
                                  - height
                                  - urls
                                type: object
                              type: array
                          required:
                            - id
                            - title
                            - brandName
                            - cost
                            - ctr
                            - likeCount
                            - industryKey
                            - objective
                            - url
                            - firstShownAt
                            - lastShownAt
                            - estimatedAudience
                            - video
                            - advertiserBusinessId
                            - format
                            - videos
                            - imageUrls
                            - category
                            - moderation
                          type: object
                        type: array
                      advertiserMatches:
                        description: >-
                          Advertisers TikTok matched to `advertiserName`. Empty
                          for keyword searches or when none are reported.
                        items:
                          description: >-
                            An advertiser TikTok matched to the requested
                            advertiser name.
                          properties:
                            businessId:
                              description: >-
                                TikTok advertiser business ID. Pass it as
                                `advertiserBusinessId`, with this `name` as
                                `advertiserName`, to search only this
                                advertiser.
                              minLength: 1
                              type: string
                            name:
                              description: Advertiser name as TikTok lists it.
                              minLength: 1
                              type: string
                          required:
                            - name
                            - businessId
                          type: object
                        type: array
                      advertiserName:
                        description: >-
                          Advertiser name filter that was evaluated, when
                          searching by advertiser.
                        type:
                          - string
                          - 'null'
                      page:
                        description: Pagination information for the current response.
                        properties:
                          hasMore:
                            description: Whether another page of ads can be requested.
                            type: boolean
                          nextCursor:
                            description: >-
                              Cursor to pass as `cursor` in the next request
                              when `hasMore` is true; otherwise null.
                            type:
                              - string
                              - 'null'
                          totalResultsEstimate:
                            description: >-
                              Estimated total number of matching ads when
                              available.
                            minimum: 0
                            type:
                              - integer
                              - 'null'
                        required:
                          - nextCursor
                          - hasMore
                          - totalResultsEstimate
                        type: object
                      query:
                        description: Keyword query that was evaluated for this response.
                        type: string
                      resolvedAdvertiserName:
                        description: >-
                          Advertiser TikTok resolved `advertiserName` to, when
                          searching by advertiser and a match was found.
                        type:
                          - string
                          - 'null'
                      source:
                        description: >-
                          Listing source when reported. `tiktok_ads_library` is
                          the public Ads Library.
                        enum:
                          - tiktok_ads_library
                          - top_ads
                          - null
                        type:
                          - string
                          - 'null'
                    required:
                      - query
                      - advertiserName
                      - resolvedAdvertiserName
                      - advertiserMatches
                      - source
                      - ads
                      - page
                    type: object
                  meta:
                    description: Metadata describing the request and billing outcome.
                    properties:
                      creditsCharged:
                        description: Credits charged for this request.
                        minimum: 0
                        type: integer
                      requestId:
                        description: Unique request identifier for tracing this API call.
                        minLength: 1
                        type: string
                      version:
                        description: Public API version that served the response.
                        enum:
                          - v1
                        type: string
                    required:
                      - requestId
                      - creditsCharged
                      - version
                    type: object
                required:
                  - data
                  - meta
                type: object
          description: TikTok Ad Library search results.
          headers:
            X-AISA-Has-More:
              description: Mirrors aisa_pagination.has_more.
              schema:
                enum:
                  - 'true'
                  - 'false'
                type: string
            X-AISA-Next-Cursor:
              description: Mirrors aisa_pagination.next_cursor; absent on the last page.
              schema:
                type: string
        default:
          content:
            application/json:
              schema: {}
          description: >-
            Error response; upstream passthrough responses may use provider
            formats
components:
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.