> ## 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

# Get TikTok Ad Library ad

> Returns a single TikTok Ad Library or Top Ads creative. Provide `adId` or `url`.

> **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
* **Availability:** enabled
* **Request URL template:** `https://api.aisa.one/apis/v1/tiktok/ad-library/ads`
* **adId:** query; optional
* **url:** 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",
  "method": "GET",
  "path": "/apis/v1/tiktok/ad-library/ads",
  "servers": [
    {
      "url": "https://api.aisa.one"
    }
  ],
  "parameters": [
    {
      "in": "query",
      "name": "adId",
      "required": false,
      "schema": {
        "description": "TikTok Ad Library or Top Ads ad id.",
        "maxLength": 4096,
        "minLength": 1,
        "type": "string"
      }
    },
    {
      "in": "query",
      "name": "url",
      "required": false,
      "schema": {
        "description": "Public TikTok Ad Library or Top Ads detail URL for the ad.",
        "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-14

```json theme={null}
{
  "additionalProperties": true,
  "properties": {
    "data": {
      "additionalProperties": true,
      "properties": {
        "ad": {
          "additionalProperties": true,
          "properties": {
            "advertiserBusinessId": {
              "type": "string"
            },
            "brandName": {
              "type": "string"
            },
            "category": {
              "type": "null"
            },
            "commentCount": {
              "type": "null"
            },
            "cost": {
              "type": "null"
            },
            "countries": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "ctr": {
              "type": "null"
            },
            "detailUrl": {
              "type": "string"
            },
            "estimatedAudience": {
              "type": "string"
            },
            "firstShownAt": {
              "type": "string"
            },
            "format": {
              "type": "string"
            },
            "hasVoiceOver": {
              "type": "null"
            },
            "id": {
              "type": "string"
            },
            "imageUrls": {
              "items": {},
              "type": "array"
            },
            "industryKey": {
              "type": "null"
            },
            "interactiveAnalysis": {
              "additionalProperties": true,
              "properties": {
                "clicks": {
                  "type": "null"
                },
                "conversion": {
                  "type": "null"
                },
                "ctr": {
                  "type": "null"
                },
                "cvr": {
                  "type": "null"
                },
                "remain": {
                  "type": "null"
                }
              },
              "type": "object"
            },
            "isUnavailable": {
              "type": "boolean"
            },
            "keywords": {
              "type": "null"
            },
            "landingPageUrl": {
              "type": "null"
            },
            "lastShownAt": {
              "type": "string"
            },
            "likeCount": {
              "type": "null"
            },
            "moderation": {
              "additionalProperties": true,
              "properties": {
                "auditStatus": {
                  "type": "string"
                },
                "rejectionReason": {
                  "type": "null"
                }
              },
              "type": "object"
            },
            "objective": {
              "type": "string"
            },
            "objectives": {
              "items": {
                "additionalProperties": true,
                "properties": {
                  "label": {
                    "type": "string"
                  },
                  "value": {
                    "type": "null"
                  }
                },
                "type": "object"
              },
              "type": "array"
            },
            "patterns": {
              "items": {},
              "type": "array"
            },
            "relatedAds": {
              "items": {},
              "type": "array"
            },
            "shareCount": {
              "type": "null"
            },
            "source": {
              "type": "string"
            },
            "title": {
              "type": "string"
            },
            "url": {
              "type": "string"
            },
            "video": {
              "additionalProperties": true,
              "properties": {
                "coverUrl": {
                  "type": "string"
                },
                "durationSeconds": {
                  "type": "null"
                },
                "height": {
                  "type": "null"
                },
                "id": {
                  "type": "null"
                },
                "urls": {
                  "additionalProperties": true,
                  "type": "object"
                },
                "width": {
                  "type": "null"
                }
              },
              "type": "object"
            },
            "videos": {
              "items": {
                "additionalProperties": true,
                "properties": {
                  "coverUrl": {
                    "type": "string"
                  },
                  "durationSeconds": {
                    "type": "null"
                  },
                  "height": {
                    "type": "null"
                  },
                  "id": {
                    "type": "null"
                  },
                  "urls": {
                    "additionalProperties": true,
                    "type": "object"
                  },
                  "width": {
                    "type": "null"
                  }
                },
                "type": "object"
              },
              "type": "array"
            }
          },
          "type": "object"
        },
        "lookupStatus": {
          "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.

## Response time

* Typically returns within 10 seconds.


## OpenAPI

````yaml openapi-public/tiktok.json GET /apis/v1/tiktok/ad-library/ads
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:
    get:
      tags:
        - TikTok
      summary: Get TikTok Ad Library ad
      description: >-
        Returns a single TikTok Ad Library or Top Ads creative. Provide `adId`
        or `url`.


        > **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
      parameters:
        - in: query
          name: adId
          required: false
          schema:
            description: TikTok Ad Library or Top Ads ad id.
            maxLength: 4096
            minLength: 1
            type: string
        - in: query
          name: url
          required: false
          schema:
            description: Public TikTok Ad Library or Top Ads detail URL for the ad.
            maxLength: 4096
            minLength: 1
            type: string
      responses:
        '200':
          content:
            application/json:
              examples:
                found:
                  value:
                    data:
                      ad:
                        advertiserBusinessId: '7377365644930662401'
                        brandName: null
                        category: null
                        commentCount: 1
                        cost: 1
                        countries:
                          - TR
                          - US
                        ctr: 0.5
                        detailUrl: >-
                          https://library.tiktok.com/ads/detail/?ad_id=1872975048695249
                        estimatedAudience: 1K-10K
                        firstShownAt: '2025-02-13T00:00:00.000Z'
                        format: video
                        hasVoiceOver: false
                        id: '1872975048695249'
                        imageUrls: []
                        industryKey: label_22108000000
                        interactiveAnalysis:
                          clicks:
                            analysis:
                              - second: 0
                                value: 0.263
                              - second: 1
                                value: 1
                            duration: 91
                            highlight:
                              - 1
                              - 7
                              - 21
                            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.048
                              - second: 1
                                value: 1
                              - second: 2
                                value: 0.495
                            duration: 91
                            highlight:
                              - 1
                              - 4
                              - 21
                            metric: retain_ctr
                            percentile: 0.99
                          cvr:
                            analysis:
                              - second: 0
                                value: 0
                              - second: 1
                                value: 0
                            duration: 91
                            highlight: []
                            metric: retain_cvr
                            percentile: 0.99
                          remain:
                            analysis:
                              - second: 0
                                value: 1
                              - second: 1
                                value: 0.184
                            duration: 91
                            highlight: []
                            metric: play_retain_cnt
                            percentile: 0.99
                        isUnavailable: false
                        keywords: null
                        landingPageUrl: https://www.amazon.com/dp/B0DRTC8XBW
                        lastShownAt: '2026-08-30T00:00:00.000Z'
                        likeCount: 92
                        moderation:
                          auditStatus: '1'
                          rejectionReason: null
                        objective: campaign_objective_reach
                        objectives:
                          - label: campaign_objective_reach
                            value: 5
                        patterns: []
                        relatedAds:
                          - brandName: null
                            cost: 0
                            ctr: 0.63
                            estimatedAudience: null
                            firstShownAt: null
                            id: '7644102379697602567'
                            industryKey: label_22108000000
                            lastShownAt: null
                            likeCount: 127
                            objective: campaign_objective_reach
                            title: Related ad example title.
                            url: null
                            video:
                              coverUrl: >-
                                https://p16-common-sign.tiktokcdn.com/example-related.image
                              durationSeconds: 13.213
                              height: 1024
                              id: v1c044g50000d86qrfnog65v7nuvf30g
                              urls:
                                p1080: null
                                p360: null
                                p480: null
                                p540: null
                                p720: >-
                                  https://v16m-default.tiktokcdn.com/related-720p.mp4
                              width: 576
                        shareCount: 1
                        source: Others
                        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
                      lookupStatus: found
                    meta:
                      creditsCharged: 1
                      requestId: req_01tiktok_ad_library_ad_found
                      version: v1
                not_found:
                  value:
                    data:
                      ad: null
                      lookupStatus: not_found
                    meta:
                      creditsCharged: 1
                      requestId: req_01tiktok_ad_library_ad_not_found
                      version: v1
              schema:
                description: Standard success response envelope.
                properties:
                  data:
                    description: Endpoint-specific response payload.
                    properties:
                      ad:
                        description: Ad details when found; otherwise null.
                        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'
                          commentCount:
                            description: Comment count when available.
                            minimum: 0
                            type:
                              - integer
                              - 'null'
                          cost:
                            description: Relative cost signal when available.
                            type:
                              - number
                              - 'null'
                          countries:
                            description: Countries associated with the ad when available.
                            items:
                              minLength: 1
                              type: string
                            type: array
                          ctr:
                            description: Click-through rate when available.
                            type:
                              - number
                              - 'null'
                          detailUrl:
                            description: Public TikTok ad detail URL when available.
                            type:
                              - string
                              - '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'
                          hasVoiceOver:
                            description: Whether the ad includes a voice-over when known.
                            type:
                              - boolean
                              - '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'
                          interactiveAnalysis:
                            description: >-
                              Second-by-second interactive analysis when
                              available.
                            properties:
                              clicks:
                                description: Click count analysis when available.
                                properties:
                                  analysis:
                                    description: Second-by-second metric samples.
                                    items:
                                      description: A single second-level metric sample.
                                      properties:
                                        second:
                                          description: Second offset within the ad video.
                                          minimum: 0
                                          type: integer
                                        value:
                                          description: Metric value at this second.
                                          type: number
                                      required:
                                        - second
                                        - value
                                      type: object
                                    type: array
                                  duration:
                                    description: >-
                                      Analysis duration in seconds when
                                      available.
                                    minimum: 0
                                    type:
                                      - integer
                                      - 'null'
                                  highlight:
                                    description: >-
                                      Highlighted second offsets for this
                                      metric.
                                    items:
                                      minimum: 0
                                      type: integer
                                    type: array
                                  metric:
                                    description: Metric name when available.
                                    type:
                                      - string
                                      - 'null'
                                  percentile:
                                    description: >-
                                      Percentile ranking for this metric when
                                      available.
                                    type:
                                      - number
                                      - 'null'
                                required:
                                  - metric
                                  - analysis
                                  - duration
                                  - highlight
                                  - percentile
                                type:
                                  - object
                                  - 'null'
                              conversion:
                                description: Conversion count analysis when available.
                                properties:
                                  analysis:
                                    description: Second-by-second metric samples.
                                    items:
                                      description: A single second-level metric sample.
                                      properties:
                                        second:
                                          description: Second offset within the ad video.
                                          minimum: 0
                                          type: integer
                                        value:
                                          description: Metric value at this second.
                                          type: number
                                      required:
                                        - second
                                        - value
                                      type: object
                                    type: array
                                  duration:
                                    description: >-
                                      Analysis duration in seconds when
                                      available.
                                    minimum: 0
                                    type:
                                      - integer
                                      - 'null'
                                  highlight:
                                    description: >-
                                      Highlighted second offsets for this
                                      metric.
                                    items:
                                      minimum: 0
                                      type: integer
                                    type: array
                                  metric:
                                    description: Metric name when available.
                                    type:
                                      - string
                                      - 'null'
                                  percentile:
                                    description: >-
                                      Percentile ranking for this metric when
                                      available.
                                    type:
                                      - number
                                      - 'null'
                                required:
                                  - metric
                                  - analysis
                                  - duration
                                  - highlight
                                  - percentile
                                type:
                                  - object
                                  - 'null'
                              ctr:
                                description: >-
                                  Click-through retention analysis when
                                  available.
                                properties:
                                  analysis:
                                    description: Second-by-second metric samples.
                                    items:
                                      description: A single second-level metric sample.
                                      properties:
                                        second:
                                          description: Second offset within the ad video.
                                          minimum: 0
                                          type: integer
                                        value:
                                          description: Metric value at this second.
                                          type: number
                                      required:
                                        - second
                                        - value
                                      type: object
                                    type: array
                                  duration:
                                    description: >-
                                      Analysis duration in seconds when
                                      available.
                                    minimum: 0
                                    type:
                                      - integer
                                      - 'null'
                                  highlight:
                                    description: >-
                                      Highlighted second offsets for this
                                      metric.
                                    items:
                                      minimum: 0
                                      type: integer
                                    type: array
                                  metric:
                                    description: Metric name when available.
                                    type:
                                      - string
                                      - 'null'
                                  percentile:
                                    description: >-
                                      Percentile ranking for this metric when
                                      available.
                                    type:
                                      - number
                                      - 'null'
                                required:
                                  - metric
                                  - analysis
                                  - duration
                                  - highlight
                                  - percentile
                                type:
                                  - object
                                  - 'null'
                              cvr:
                                description: Conversion retention analysis when available.
                                properties:
                                  analysis:
                                    description: Second-by-second metric samples.
                                    items:
                                      description: A single second-level metric sample.
                                      properties:
                                        second:
                                          description: Second offset within the ad video.
                                          minimum: 0
                                          type: integer
                                        value:
                                          description: Metric value at this second.
                                          type: number
                                      required:
                                        - second
                                        - value
                                      type: object
                                    type: array
                                  duration:
                                    description: >-
                                      Analysis duration in seconds when
                                      available.
                                    minimum: 0
                                    type:
                                      - integer
                                      - 'null'
                                  highlight:
                                    description: >-
                                      Highlighted second offsets for this
                                      metric.
                                    items:
                                      minimum: 0
                                      type: integer
                                    type: array
                                  metric:
                                    description: Metric name when available.
                                    type:
                                      - string
                                      - 'null'
                                  percentile:
                                    description: >-
                                      Percentile ranking for this metric when
                                      available.
                                    type:
                                      - number
                                      - 'null'
                                required:
                                  - metric
                                  - analysis
                                  - duration
                                  - highlight
                                  - percentile
                                type:
                                  - object
                                  - 'null'
                              remain:
                                description: Playback retention analysis when available.
                                properties:
                                  analysis:
                                    description: Second-by-second metric samples.
                                    items:
                                      description: A single second-level metric sample.
                                      properties:
                                        second:
                                          description: Second offset within the ad video.
                                          minimum: 0
                                          type: integer
                                        value:
                                          description: Metric value at this second.
                                          type: number
                                      required:
                                        - second
                                        - value
                                      type: object
                                    type: array
                                  duration:
                                    description: >-
                                      Analysis duration in seconds when
                                      available.
                                    minimum: 0
                                    type:
                                      - integer
                                      - 'null'
                                  highlight:
                                    description: >-
                                      Highlighted second offsets for this
                                      metric.
                                    items:
                                      minimum: 0
                                      type: integer
                                    type: array
                                  metric:
                                    description: Metric name when available.
                                    type:
                                      - string
                                      - 'null'
                                  percentile:
                                    description: >-
                                      Percentile ranking for this metric when
                                      available.
                                    type:
                                      - number
                                      - 'null'
                                required:
                                  - metric
                                  - analysis
                                  - duration
                                  - highlight
                                  - percentile
                                type:
                                  - object
                                  - 'null'
                            required:
                              - ctr
                              - cvr
                              - clicks
                              - conversion
                              - remain
                            type:
                              - object
                              - 'null'
                          isUnavailable:
                            description: >-
                              Whether TikTok reports the ad as no longer
                              available, when known.
                            type:
                              - boolean
                              - 'null'
                          keywords:
                            description: Keywords associated with the ad when available.
                            items:
                              minLength: 1
                              type: string
                            type:
                              - array
                              - 'null'
                          landingPageUrl:
                            description: Landing page URL 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'
                          objectives:
                            description: Campaign objectives reported for the ad.
                            items:
                              description: A campaign objective entry for a TikTok ad.
                              properties:
                                label:
                                  description: Objective label when available.
                                  type:
                                    - string
                                    - 'null'
                                value:
                                  description: Objective value when available.
                                  type:
                                    - number
                                    - 'null'
                              required:
                                - label
                                - value
                              type: object
                            type: array
                          patterns:
                            description: Creative pattern labels when available.
                            items:
                              minLength: 1
                              type: string
                            type: array
                          relatedAds:
                            description: Related ads recommended alongside this ad.
                            items:
                              description: Summary of a TikTok Ad Library ad.
                              properties:
                                brandName:
                                  description: Brand or advertiser name 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'
                                id:
                                  description: Stable identifier for the ad.
                                  minLength: 1
                                  type: string
                                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'
                                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'
                              required:
                                - id
                                - title
                                - brandName
                                - cost
                                - ctr
                                - likeCount
                                - industryKey
                                - objective
                                - url
                                - firstShownAt
                                - lastShownAt
                                - estimatedAudience
                                - video
                              type: object
                            type: array
                          shareCount:
                            description: Share count when available.
                            minimum: 0
                            type:
                              - integer
                              - 'null'
                          source:
                            description: Reported ad source 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
                          - commentCount
                          - shareCount
                          - countries
                          - landingPageUrl
                          - keywords
                          - objectives
                          - patterns
                          - source
                          - hasVoiceOver
                          - detailUrl
                          - interactiveAnalysis
                          - relatedAds
                          - advertiserBusinessId
                          - format
                          - videos
                          - imageUrls
                          - category
                          - moderation
                          - isUnavailable
                        type:
                          - object
                          - 'null'
                      lookupStatus:
                        description: Whether the ad was found.
                        enum:
                          - found
                          - not_found
                        type: string
                    required:
                      - lookupStatus
                      - ad
                    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 ad.
        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.