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

# Extract text from video frames using OCR (async)



## OpenAPI

````yaml /openapi.json post /v1/video/ocr
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/video/ocr:
    post:
      summary: Extract text from video frames using OCR (async)
      operationId: videoOcr
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/VideoOcrRequest'
      responses:
        '202':
          description: Job created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JobId'
        '400':
          $ref: '#/components/responses/InvalidRequest'
components:
  schemas:
    VideoOcrRequest:
      type: object
      required:
        - url
      properties:
        url:
          type: string
          format: uri
          description: Video URL
        lang:
          type: string
          description: Language code for OCR
        format:
          type: string
          enum:
            - json
            - srt
            - vtt
          description: Output format
        callbackUrl:
          type: string
          format: uri
          description: Webhook callback URL
    JobId:
      type: object
      properties:
        jobId:
          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)

````