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

# GET /classify

> Put a website into an IAB category, with descriptions, stock tickers and ISINs. 5 credits.

Returns the site's IAB category and subcategory under `data.classification`.

**5 credits.** Failed requests are never charged.

> [card] [Guide: Classify](https://docs.prefetch.io/company-data/classify.md)
>
> IAB IDs, the description fields and examples.


## OpenAPI

````yaml GET /classify
openapi: 3.1.0
info:
  title: Prefetch API
  description: >-
    Extract brand identity, company data, screenshots, IAB classifications, and
    clean page content from any URL.
  version: 1.0.0
  contact:
    email: support@prefetch.io
servers:
  - url: https://api.prefetch.io
    description: Production
security:
  - apiKey: []
tags:
  - name: Endpoints
    description: Data extraction endpoints. All require authentication and consume credits.
  - name: Health
    description: Health and readiness probes. No authentication required.
paths:
  /classify:
    get:
      tags:
        - Endpoints
      summary: Classify a website
      description: >-
        Classifies a website into an IAB content taxonomy category with
        human-readable descriptions, stock tickers, and ISIN codes. **Credit
        cost: 5.**
      operationId: classifyUrl
      parameters:
        - $ref: '#/components/parameters/url'
      responses:
        '200':
          description: Classification result.
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    enum:
                      - true
                  data:
                    $ref: '#/components/schemas/ClassifyData'
                  meta:
                    $ref: '#/components/schemas/Meta'
                required:
                  - success
                  - data
                  - meta
              example:
                success: true
                data:
                  url: https://stripe.com
                  domain: stripe.com
                  classification:
                    iab_id: IAB3-4
                    iab_parent_id: IAB3
                    category: Business
                    subcategory: Business Software
                    description: >-
                      Stripe provides payment processing infrastructure for
                      internet businesses.
                    tagline_description: Payment infrastructure for the internet.
                    long_description: >-
                      Stripe provides payment processing infrastructure for
                      internet businesses, enabling companies to accept
                      payments, manage subscriptions, and handle global commerce
                      operations.
                    stock_tickers: []
                    isins: []
                meta:
                  requestId: a3f2c1d4-7b6e-4f2a-9c1d-8e3f2a1b4c5d
                  durationMs: 1842
        '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'
        '403':
          description: Revoked key, expired key, credit limit, or blocklisted URL.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '422':
          description: URL hostname could not be resolved.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: Rate limit exceeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '503':
          description: Service temporarily busy — retry shortly.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '504':
          description: Request timed out.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  parameters:
    url:
      name: url
      in: query
      required: true
      description: >-
        The website URL to process. `https://` is prepended automatically if no
        protocol is provided.
      schema:
        type: string
        example: https://stripe.com
  schemas:
    ClassifyData:
      type: object
      properties:
        url:
          type: string
          format: uri
          description: The URL that was classified.
          example: https://stripe.com
        domain:
          type: string
          description: Normalized domain extracted from the URL.
          example: stripe.com
        classification:
          $ref: '#/components/schemas/ClassificationBlock'
      required:
        - url
        - domain
        - classification
    Meta:
      type: object
      properties:
        requestId:
          type: string
          format: uuid
          description: Unique identifier for this request.
          example: a3f2c1d4-7b6e-4f2a-9c1d-8e3f2a1b4c5d
        durationMs:
          type: integer
          nullable: true
          description: Time taken to process the request in milliseconds.
          example: 1842
      required:
        - requestId
        - durationMs
    ErrorResponse:
      type: object
      properties:
        success:
          type: boolean
          enum:
            - false
          description: >-
            Always false. Absent, like `meta`, on authentication and rate-limit
            errors, which are answered before a request is processed.
        error:
          type: string
          description: >-
            Human-readable error message. The wording can change: branch on
            `error_code`.
          example: Credit limit exceeded
        error_code:
          type: string
          enum:
            - INVALID_REQUEST
            - PAYLOAD_TOO_LARGE
            - NOT_FOUND
            - CONFLICT
            - UNAUTHORIZED
            - FORBIDDEN
            - CREDITS_EXHAUSTED
            - RATE_LIMITED
            - CONCURRENCY_LIMITED
            - URL_BLOCKED
            - URL_NOT_PERMITTED
            - DNS_RESOLUTION_FAILED
            - TARGET_BLOCKED
            - TARGET_CONNECTION_FAILED
            - TARGET_TIMEOUT
            - TARGET_SSL_ERROR
            - TARGET_SERVER_ERROR
            - TARGET_CLIENT_ERROR
            - TARGET_NOT_A_PAGE
            - NO_LINKS_FOUND
            - TARGET_UNLOADABLE
            - RESEARCH_INCONCLUSIVE
            - TIMEOUT
            - SERVICE_BUSY
            - SERVICE_UNAVAILABLE
            - INTERNAL_ERROR
          description: >-
            What went wrong, for machines. Stable: a code keeps its meaning once
            published. See [Error handling](/concepts/errors).
          example: CREDITS_EXHAUSTED
        retryable:
          type: boolean
          description: >-
            Whether the same request can succeed if sent again after a short
            wait (honour `Retry-After` when present). False for problems with
            the request or the target.
          example: false
        retryAfterSeconds:
          type: integer
          description: 'On `RATE_LIMITED`: seconds until a request will be accepted.'
        limit:
          type: integer
          description: >-
            On `CONCURRENCY_LIMITED`: how many requests this key may have in
            flight.
        meta:
          $ref: '#/components/schemas/Meta'
      required:
        - error
        - error_code
        - retryable
    ClassificationBlock:
      type: object
      nullable: true
      description: >-
        IAB classification of the site. Null in `/enrich` when classification
        failed.
      properties:
        iab_id:
          type: string
          description: IAB subcategory ID, in the IAB Content Taxonomy 1.0 format.
          example: IAB3-4
        iab_parent_id:
          type: string
          nullable: true
          description: IAB parent category ID.
          example: IAB3
        category:
          type: string
          description: IAB parent category name.
          example: Business
        subcategory:
          type: string
          nullable: true
          description: IAB subcategory name.
          example: Business Software
        description:
          type: string
          description: Short human-readable description of the website.
        tagline_description:
          type: string
          description: One-line tagline description.
        long_description:
          type: string
          description: Extended multi-sentence description of the website.
        stock_tickers:
          type: array
          items:
            type: string
          description: >-
            Stock ticker symbols associated with the company, if publicly
            traded.
        isins:
          type: array
          items:
            type: string
          description: ISIN codes associated with the company's securities.
      required:
        - iab_id
        - iab_parent_id
        - category
        - subcategory
        - description
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: X-API-Key
      description: Your Prefetch API key. Obtain one from the dashboard.

````

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