> ## 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 /resolve

> Turn a company, brand or product name into its domain. 1 credit, 3 with a live lookup, 0 when nothing matches.

Turns a name into the domain of its official website, with a confidence score for each candidate.

**1 credit**, 3 when a live lookup runs, 0 when nothing matches. Failed requests are never charged.

> [card] [Guide: Resolve a name](https://docs.prefetch.io/company-data/resolve.md)
>
> Confidence scores, live lookups, typeahead and examples in cURL, Node.js and Python.


## OpenAPI

````yaml GET /resolve
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:
  /resolve:
    get:
      tags:
        - Endpoints
      summary: Find a domain from a name
      description: >-
        Resolves a company, brand or product name to the domain of its official
        website — `Stripe` → `stripe.com` — ready to pass to every other
        endpoint. Results are ranked, one per domain, each with a confidence; at
        0.8 or above, `results[0]` is the answer. **Credit cost: 1** from the
        index, **3** when a live lookup runs, **0** when an index-only lookup
        finds nothing.
      operationId: resolveName
      parameters:
        - name: name
          in: query
          required: true
          description: >-
            The company, brand or product name (1–100 characters). Case,
            accents, punctuation and legal suffixes are ignored: "The Coca-Cola
            Company" and "coca cola" are the same query.
          schema:
            type: string
            minLength: 1
            maxLength: 100
          example: Stripe
        - name: limit
          in: query
          required: false
          description: Maximum number of results.
          schema:
            type: integer
            minimum: 1
            maximum: 10
            default: 5
        - name: live
          in: query
          required: false
          description: >-
            When no answer reaches 0.8, look the name up live: candidate domains
            are verified against their own homepages. Takes a few seconds;
            billed 3 credits when the live lookup runs.
          schema:
            type: boolean
            default: false
      responses:
        '200':
          description: Matches, best first. Empty when nothing matched.
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    enum:
                      - true
                  data:
                    $ref: '#/components/schemas/ResolveData'
                  meta:
                    $ref: '#/components/schemas/Meta'
                required:
                  - success
                  - data
                  - meta
              example:
                success: true
                data:
                  query: Delta
                  results:
                    - name: Delta Air Lines
                      domain: delta.com
                      url: https://delta.com
                      confidence: 0.92
                      source: index
                    - name: DELTA
                      domain: delta.nl
                      url: https://delta.nl
                      confidence: 0.79
                      source: index
                  count: 2
                  live_used: false
                  warnings: []
                meta:
                  requestId: b4e3d2c1-8a7b-4c3d-9e2f-1a3b5c7d9e1f
                  durationMs: 41
        '400':
          description: Missing, empty or over-long name.
          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, or credit limit.
          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 unavailable — retry shortly.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '504':
          description: Request timed out.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    ResolveData:
      type: object
      properties:
        query:
          type: string
          description: The name, as resolved (whitespace collapsed).
          example: Stripe
        results:
          type: array
          items:
            $ref: '#/components/schemas/ResolveResultItem'
          description: Best match first; one entry per domain. Empty when nothing matched.
        count:
          type: integer
        live_used:
          type: boolean
          description: >-
            Whether the live lookup ran — and so whether the request was billed
            3 credits.
        warnings:
          type: array
          items:
            type: string
          description: >-
            Non-fatal notes, e.g. a live lookup skipped because the service was
            busy.
      required:
        - query
        - results
        - count
        - live_used
        - warnings
    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
    ResolveResultItem:
      type: object
      properties:
        name:
          type: string
          example: Stripe
        domain:
          type: string
          description: Bare host, ready for the `url` parameter of every other endpoint.
          example: stripe.com
        url:
          type: string
          example: https://stripe.com
        confidence:
          type: number
          description: >-
            0–1. Only `results[0]` can reach 0.8; at or above it, that result is
            the answer. Below it, a candidate to check.
          example: 0.97
        source:
          type: string
          enum:
            - curated
            - index
            - live
          description: >-
            `curated`: reviewed brand data. `index`: the name index. `live`:
            verified against the site during this request.
      required:
        - name
        - domain
        - url
        - confidence
        - source
  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.