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

# Read Page Metadata

> Returns the title, description, canonical URL, Open Graph and Twitter card tags, and icons of a page.
Reads the server-rendered HTML without a browser, so tags added by JavaScript after load are not seen.

## Token Cost
**1 token** per successful call. Failed fetches are not charged.



## OpenAPI

````yaml https://api.snapopa.com/specs post /metadata
openapi: 3.1.0
info:
  title: Snapopa API
  version: 1.0.0
  description: >-
    High-performance API for website screenshots, screen recording, PDFs, and
    metadata extraction. Built for developers, marketers, and enterprises who
    need reliable, scalable capture solutions.
  termsOfService: https://snapopa.com/terms
  contact:
    name: Snapopa Support
    url: https://snapopa.com
    email: hello@snapopa.com
  license:
    name: Proprietary
    url: https://snapopa.com/terms
servers:
  - url: https://api.snapopa.com
    description: Production API
security:
  - bearerAuth: []
tags:
  - name: Capture
    description: >-
      Create and manage website screenshots, PDFs, and screen recordings.
      Supports caching, persistence, and custom viewport configurations.
    externalDocs:
      description: Capture API Guide
      url: https://docs.snapopa.com/capture/overview
  - name: System
    description: Health checks and system status monitoring endpoints
externalDocs:
  description: Full API Documentation
  url: https://docs.snapopa.com
paths:
  /metadata:
    post:
      tags:
        - Metadata
      summary: Read Page Metadata
      description: >-
        Returns the title, description, canonical URL, Open Graph and Twitter
        card tags, and icons of a page.

        Reads the server-rendered HTML without a browser, so tags added by
        JavaScript after load are not seen.


        ## Token Cost

        **1 token** per successful call. Failed fetches are not charged.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                url:
                  type: string
                  maxLength: 2048
                  format: uri
                  description: URL of the page to read.
                timeout:
                  type: integer
                  minimum: 1000
                  maximum: 30000
                  default: 10000
                  description: Fetch timeout in milliseconds.
              required:
                - url
            examples:
              basic:
                summary: Read a page
                value:
                  url: https://example.com
      responses:
        '200':
          description: Metadata read successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    enum:
                      - true
                  error:
                    nullable: true
                  data:
                    type: object
                    properties:
                      url:
                        type: string
                        description: Requested URL
                      finalUrl:
                        type: string
                        description: URL after redirects
                      statusCode:
                        type: integer
                        description: HTTP status of the final response
                      title:
                        type: string
                        nullable: true
                      description:
                        type: string
                        nullable: true
                      canonical:
                        type: string
                        nullable: true
                      lang:
                        type: string
                        nullable: true
                      themeColor:
                        type: string
                        nullable: true
                      openGraph:
                        type: object
                        additionalProperties:
                          type: string
                        description: >-
                          og:* tags without the og: prefix, e.g. { title, image
                          }
                      twitter:
                        type: object
                        additionalProperties:
                          type: string
                        description: 'twitter:* tags without the twitter: prefix'
                      icons:
                        type: array
                        items:
                          type: object
                          properties:
                            href:
                              type: string
                              description: Absolute icon URL
                            rel:
                              type: string
                              description: Link rel value, e.g. icon, apple-touch-icon
                            sizes:
                              type: string
                              description: Declared sizes, e.g. 32x32
                            type:
                              type: string
                              description: Declared MIME type
                            declared:
                              type: boolean
                              description: >-
                                false when the page declares no icon and
                                /favicon.ico is assumed
                          required:
                            - href
                            - rel
                            - declared
                      tokenCost:
                        type: integer
                        description: Number of tokens consumed
                      processingTimeMs:
                        type: integer
                        description: Time taken in milliseconds
                    required:
                      - url
                      - finalUrl
                      - statusCode
                      - title
                      - description
                      - canonical
                      - lang
                      - themeColor
                      - openGraph
                      - twitter
                      - icons
                      - tokenCost
                      - processingTimeMs
                required:
                  - success
                  - error
                  - data
        '400':
          description: Invalid request or blocked URL
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    enum:
                      - false
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                    required:
                      - code
                      - message
                  data:
                    nullable: true
                required:
                  - success
                  - error
                  - data
        '401':
          description: Unauthorized - Invalid or missing API key
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    enum:
                      - false
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                    required:
                      - code
                      - message
                  data:
                    nullable: true
                required:
                  - success
                  - error
                  - data
        '402':
          description: Payment Required - Quota exceeded
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    enum:
                      - false
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                    required:
                      - code
                      - message
                  data:
                    nullable: true
                required:
                  - success
                  - error
                  - data
        '422':
          description: The URL did not return HTML
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    enum:
                      - false
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                    required:
                      - code
                      - message
                  data:
                    nullable: true
                required:
                  - success
                  - error
                  - data
        '429':
          description: Too Many Requests - Rate limit exceeded
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    enum:
                      - false
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                    required:
                      - code
                      - message
                  data:
                    nullable: true
                required:
                  - success
                  - error
                  - data
        '502':
          description: The page could not be fetched
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    enum:
                      - false
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                    required:
                      - code
                      - message
                  data:
                    nullable: true
                required:
                  - success
                  - error
                  - data
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        API key authentication. Get your API key at
        https://snapopa.com/dashboard
      bearerFormat: API Key

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.