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

# TikTok

> Retrieve structured metadata for a TikTok video post.

<Note>
  TikTok endpoints require a paid plan (Starter or higher). Without one, this endpoint returns `402 plan_upgrade_required`. See [Pricing](/pricing) for details.
</Note>


## OpenAPI

````yaml get /v1/tiktok/post
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: ChatGPT
  - name: Perplexity
  - name: Gemini
  - name: Bing
  - name: Reddit
  - name: TikTok
  - name: Apple App Store
  - name: Target
  - name: Monitors
paths:
  /v1/tiktok/post:
    get:
      tags:
        - TikTok
      summary: Get a TikTok post
      description: >-
        Retrieves structured metadata for a TikTok video post: description,
        author, engagement stats, video/cover URLs, and music. Backed by our own
        maintained `tiktok_post` Web Scraping API target. Requires a Starter
        plan or higher.
      operationId: getTikTokPost
      parameters:
        - name: url
          in: query
          required: true
          schema:
            type: string
            format: uri
            description: TikTok post (video) URL
      responses:
        '200':
          description: Structured TikTok post details.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TikTokPostResponse'
        '400':
          description: Invalid or missing url.
          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 dedicated endpoints require a Starter plan or higher.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: The requested post could not be found or parsed.
          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 upstream failed or returned an unparseable page.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '503':
          description: TikTok 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/post?url=https%3A%2F%2Fwww.tiktok.com%2F%40scout2015%2Fvideo%2F6718335390845095173"
            \
              -H "Authorization: Bearer $SCRAPIO_API_KEY"
components:
  schemas:
    TikTokPostResponse:
      type: object
      properties:
        provider:
          type: string
          enum:
            - tiktok
        request_id:
          type: string
        post:
          type: object
          properties:
            id:
              type: string
            url:
              type: string
              format: uri
            description:
              anyOf:
                - type: string
                - type: 'null'
            created_at:
              anyOf:
                - type: string
                - type: 'null'
            duration_seconds:
              anyOf:
                - type: number
                - type: 'null'
            author:
              type: object
              properties:
                username:
                  anyOf:
                    - type: string
                    - type: 'null'
                nickname:
                  anyOf:
                    - type: string
                    - type: 'null'
                avatar_url:
                  anyOf:
                    - type: string
                      format: uri
                    - type: 'null'
              required:
                - username
                - nickname
                - avatar_url
              additionalProperties: false
            stats:
              type: object
              properties:
                likes:
                  anyOf:
                    - type: integer
                      minimum: 0
                      maximum: 9007199254740991
                    - type: 'null'
                comments:
                  anyOf:
                    - type: integer
                      minimum: 0
                      maximum: 9007199254740991
                    - type: 'null'
                shares:
                  anyOf:
                    - type: integer
                      minimum: 0
                      maximum: 9007199254740991
                    - type: 'null'
                plays:
                  anyOf:
                    - type: integer
                      minimum: 0
                      maximum: 9007199254740991
                    - type: 'null'
                collects:
                  anyOf:
                    - type: integer
                      minimum: 0
                      maximum: 9007199254740991
                    - type: 'null'
              required:
                - likes
                - comments
                - shares
                - plays
                - collects
              additionalProperties: false
            video:
              type: object
              properties:
                cover_url:
                  anyOf:
                    - type: string
                      format: uri
                    - type: 'null'
                play_url:
                  anyOf:
                    - type: string
                      format: uri
                    - type: 'null'
              required:
                - cover_url
                - play_url
              additionalProperties: false
            music:
              type: object
              properties:
                title:
                  anyOf:
                    - type: string
                    - type: 'null'
                author:
                  anyOf:
                    - type: string
                    - type: 'null'
              required:
                - title
                - author
              additionalProperties: false
          required:
            - id
            - url
            - description
            - created_at
            - duration_seconds
            - author
            - stats
            - video
            - music
          additionalProperties: false
      required:
        - provider
        - request_id
        - post
      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

````