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

# Get a TikTok Ad Library ad

> Fetch a single ad's detail by ad id.



## OpenAPI

````yaml get /v1/tiktok/ad-library/ad
openapi: 3.1.0
info:
  title: Scrapio
  version: 1.0.0
  description: >-
    Turn any URL into structured data. Fetch raw HTML, crawl sites, extract
    structured content, interact with dynamic pages, and search the web through
    one API.
  contact:
    name: Scrapio Support
    url: https://scrapio.dev
  license:
    name: Proprietary
servers:
  - url: https://api.scrapio.dev
    description: Production
security:
  - bearerAuth: []
tags:
  - name: System
  - name: Fetch
  - name: Crawl
  - name: Map
  - name: Interact
  - name: Search
  - name: Google
  - name: Fast Search
  - name: Jobs
  - name: YouTube
  - name: Amazon
  - name: Walmart
  - name: Booking
  - name: Agoda
  - name: Airbnb
  - name: AutoTrader
  - name: Glassdoor
  - name: Trustpilot
  - name: ZipRecruiter
  - name: Dice
  - name: SimplyHired
  - name: Built In
  - name: Wellfound
  - name: ChatGPT
  - name: Perplexity
  - name: Gemini
  - name: Bing
  - name: Reddit
  - name: Instagram
  - name: Twitter
  - name: Facebook
  - name: Hacker News
  - name: GitHub
  - name: TikTok
  - name: Apple App Store
  - name: Target
  - name: Monitors
paths:
  /v1/tiktok/ad-library/ad:
    get:
      tags:
        - TikTok Ad Library
      summary: Get a TikTok Ad Library ad
      description: >-
        Fetch a single TikTok ad's structured detail by ad id. Backed by
        ScrapeCreators. Requires a Starter plan or higher.
      operationId: getTiktokAdLibraryAd
      parameters:
        - name: ad_id
          in: query
          required: true
          schema:
            type: string
            minLength: 1
      responses:
        '200':
          description: Structured TikTok Ad Library ad detail.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TiktokAdLibraryAdResponse'
        '400':
          description: Missing or invalid ad_id.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Missing or invalid API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '402':
          description: TikTok Ad Library endpoints require a Starter plan or higher.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: The requested ad could not be found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: >-
            Daily credit cap exceeded, or the upstream provider rate-limited the
            request.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '502':
          description: TikTok Ad Library upstream failed or returned an unusable response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '503':
          description: TikTok Ad Library execution backend unavailable or unconfigured.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-codeSamples:
        - lang: cURL
          label: cURL
          source: >-
            curl
            "https://api.scrapio.dev/v1/tiktok/ad-library/ad?ad_id=1234567890123456789"
            \
              -H "Authorization: Bearer $SCRAPIO_API_KEY"
components:
  schemas:
    TiktokAdLibraryAdResponse:
      type: object
      properties:
        provider:
          type: string
          enum:
            - tiktok_ad_library
        request_id:
          type: string
        ad:
          type: object
          properties:
            ad_id:
              anyOf:
                - type: string
                - type: 'null'
            advertiser:
              type: object
              properties:
                name:
                  anyOf:
                    - type: string
                    - type: 'null'
                account_id:
                  anyOf:
                    - type: string
                    - type: 'null'
                verified:
                  anyOf:
                    - type: boolean
                    - type: 'null'
              required:
                - name
                - account_id
                - verified
              additionalProperties: false
            format:
              anyOf:
                - type: string
                  enum:
                    - video
                    - image
                    - spark_ad
                - type: 'null'
            creative:
              type: object
              properties:
                video_url:
                  anyOf:
                    - type: string
                    - type: 'null'
                thumbnail_url:
                  anyOf:
                    - type: string
                    - type: 'null'
                landing_page_url:
                  anyOf:
                    - type: string
                    - type: 'null'
              required:
                - video_url
                - thumbnail_url
                - landing_page_url
              additionalProperties: false
            first_shown_at:
              anyOf:
                - type: string
                - type: 'null'
            status:
              anyOf:
                - type: string
                  enum:
                    - active
                    - inactive
                - type: 'null'
            reach_range:
              anyOf:
                - type: string
                - type: 'null'
          required:
            - ad_id
            - advertiser
            - format
            - creative
            - first_shown_at
            - status
            - reach_range
          additionalProperties: false
      required:
        - provider
        - request_id
        - ad
      additionalProperties: false
    ErrorResponse:
      type: object
      properties:
        request_id:
          type: string
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
          required:
            - code
            - message
        diagnostics:
          type: object
          properties:
            outcome:
              type: string
              enum:
                - failed
            retryable:
              type: boolean
            blocked:
              type: boolean
            timed_out:
              type: boolean
          required:
            - outcome
            - retryable
          additionalProperties: false
      required:
        - request_id
        - error
      additionalProperties: false
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key

````