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

# Get tweet metadata from a tweet URL



## OpenAPI

````yaml /openapi.json get /v1/twitter/tweet
openapi: 3.1.0
info:
  title: urltodata.ai
  description: >-
    API for extracting transcripts, metadata, and structured data from YouTube,
    TikTok, Instagram, X (Twitter), Facebook, and the web.
  version: 0.1.0
servers:
  - url: https://api.urltodata.ai
    description: Production API
security:
  - bearerAuth: []
paths:
  /v1/twitter/tweet:
    get:
      summary: Get tweet metadata from a tweet URL
      operationId: getTwitterTweet
      parameters:
        - name: url
          in: query
          required: true
          description: Tweet URL (x.com or twitter.com)
          schema:
            type: string
            format: uri
      responses:
        '200':
          description: Tweet metadata
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TweetMetadata'
        '400':
          $ref: '#/components/responses/InvalidRequest'
components:
  schemas:
    TweetMetadata:
      type: object
      properties:
        id:
          type: string
        url:
          type: string
        text:
          type: string
        author:
          type: object
          properties:
            username:
              type: string
            displayName:
              type: string
            profileImageUrl:
              type: string
            verified:
              type: boolean
        stats:
          type: object
          properties:
            likes:
              type:
                - integer
                - 'null'
            retweets:
              type:
                - integer
                - 'null'
            replies:
              type:
                - integer
                - 'null'
            views:
              type:
                - integer
                - 'null'
            bookmarks:
              type:
                - integer
                - 'null'
        createdAt:
          type:
            - string
            - 'null'
        media:
          type: array
          items:
            type: object
            properties:
              type:
                type: string
                enum:
                  - image
                  - video
                  - gif
              url:
                type: string
        quotedTweet:
          type: object
          properties:
            id:
              type: string
            text:
              type: string
            author:
              type: object
              properties:
                username:
                  type: string
                displayName:
                  type: string
    ApiError:
      type: object
      properties:
        error:
          type: string
        message:
          type: string
        details:
          type: string
        documentationUrl:
          type: string
  responses:
    InvalidRequest:
      description: Invalid request parameters
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      x-default: your-api-key
      description: API key as Bearer token (e.g. Bearer mp_abc123_secret)

````