CompanyData Domain Enrichment API

Domain enrichment: download a public web page and extract the registration and VAT numbers and legal names that identify the company behind it via GET /api/website/html, then resolve them with company search. Guide: https://companydata.com/api-docs/domain-enrichment/

GitHub OpenAPI

Operations 1

GET /api/website/html Domain enrichment: download a website and extract the company behind it #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/companydata-com:companydata-com-domain-enrichment-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

companydata-com-domain-enrichment-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Companydata Com Domain Enrichment API
  version: 1.0.0
  contact:
    name: CompanyData
    url: https://companydata.com/api-docs/
  license:
    name: Commercial
    url: https://companydata.com/company-data-api/
  description: 'Operations tagged Domain Enrichment across 2 of this provider''s published API definitions: companydata-com-openapi.json, companydata-com-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://app.companydata.com
  description: Production
security:
- ApiKeyAuth: []
tags:
- name: Domain Enrichment
  description: 'Domain enrichment: download a public web page and extract the registration and VAT numbers and legal names that identify the company behind it via GET /api/website/html, then resolve them with company search. Guide: https://companydata.com/api-docs/domain-enrichment/'
paths:
  /api/website/html:
    get:
      operationId: downloadWebsiteHtml
      tags:
      - Domain Enrichment
      summary: 'Domain enrichment: download a website and extract the company behind it'
      description: 'Fetches a public web page server-side (redirects followed, body capped, SSRF-protected) and returns its HTML. With extract=true it also returns company candidates found in the page: JSON-LD organisation, KVK / Companies House / HRB / VAT identifiers, copyright and legal-suffix names. Pass a candidate nationalId or name to /api/company/search to resolve the website to a registered company. Guide: https://companydata.com/api-docs/domain-enrichment/'
      parameters:
      - name: url
        in: query
        required: true
        description: 'Page to download: a bare domain (coolblue.nl), host with path, or full http(s) URL. Bare domains default to https.'
        schema:
          type: string
          example: coolblue.nl
      - name: extract
        in: query
        required: false
        description: Set to true to include the candidates array of company signals found in the page.
        schema:
          type: boolean
          default: false
      - name: maxBytes
        in: query
        required: false
        description: Cap on downloaded bytes. Default 2000000, minimum 10000, maximum 5000000. Larger bodies are cut off and flagged truncated.
        schema:
          type: integer
          default: 2000000
          minimum: 10000
          maximum: 5000000
      responses:
        '200':
          description: Downloaded page, optionally with extracted company candidates.
          content:
            application/json:
              schema:
                type: object
                required:
                - requestedUrl
                - finalUrl
                - statusCode
                - html
                - bytes
                - truncated
                - redirects
                - fetchedAt
                properties:
                  requestedUrl:
                    type: string
                    description: Normalised URL that was fetched first.
                  finalUrl:
                    type: string
                    description: URL after following redirects.
                  statusCode:
                    type: integer
                    description: HTTP status of the final response.
                  contentType:
                    type:
                    - string
                    - 'null'
                    description: Content-Type header of the final response.
                  charset:
                    type: string
                    description: Charset used to decode the body.
                  html:
                    type: string
                    description: Page body as text, up to maxBytes.
                  bytes:
                    type: integer
                    description: Bytes downloaded.
                  truncated:
                    type: boolean
                    description: True when the body exceeded maxBytes and was cut off.
                  redirects:
                    type: array
                    items:
                      type: string
                    description: Redirect targets followed, in order.
                  fetchedAt:
                    type: string
                    format: date-time
                    description: When the page was fetched.
                  candidates:
                    type: array
                    description: Only with extract=true. Company signals in trust order, deduplicated, max 12.
                    items:
                      type: object
                      required:
                      - source
                      properties:
                        source:
                          type: string
                          enum:
                          - jsonld
                          - identifier
                          - copyright
                          - legal-suffix
                          - og
                          description: Where the signal was found.
                        name:
                          type: string
                          description: Company or trade name, when found.
                        nationalId:
                          type: string
                          description: Registration or VAT number; search it with nationalId=.
                        countryHint:
                          type: string
                          description: ISO 2-letter country inferred from the identifier, JSON-LD address or ccTLD.
                        city:
                          type: string
                          description: City from JSON-LD address, when present.
        '400':
          description: 'Missing or invalid url (code: invalid_url).'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          description: 'Host is not public: IP literal, internal name, or resolves to a private address (code: blocked_host).'
        '415':
          description: 'The URL returned a non-HTML document (code: not_html).'
        '502':
          description: 'Site unreachable, DNS failure, or more than 5 redirects (code: unreachable, too_many_redirects).'
        '504':
          description: 'Site did not respond within 10 seconds (code: timeout).'
      x-codeSamples:
      - lang: curl
        label: Download coolblue.nl and extract company candidates
        source: "curl -G \"https://app.companydata.com/api/website/html\" \\\n  -H \"x-api-key: YOUR_API_KEY\" \\\n  --data-urlencode \"url=coolblue.nl\" \\\n  --data-urlencode \"extract=true\""
    servers:
    - url: https://app.companydata.com
      description: Production
components:
  schemas:
    ErrorResponse:
      type: object
      description: Error body of every failure status except the empty-query 400 and export 500s. error is a human-readable reason; some failures add context fields (subscriptionStatus, searchesUsed / searchesLimit, requestsUsed / requestsLimit, paginationMessage, visitor).
      required:
      - error
      additionalProperties: true
      properties:
        error:
          type: string
          description: Human-readable reason for the failure.
        subscriptionStatus:
          type: string
          description: Present on 403 when the subscription is inactive (PAYMENT_FAILED, CANCELED or EXPIRED).
        searchesUsed:
          type: integer
          description: Present on 429 when the monthly search allowance is used up.
        searchesLimit:
          type: integer
          description: Present on 429 when the monthly search allowance is used up.
        requestsUsed:
          type: integer
          description: Present on 429 for manually invoiced keys.
        requestsLimit:
          type: integer
          description: Present on 429 for manually invoiced keys.
        paginationMessage:
          type: string
          description: Present on the browser-only PAGINATION_LIMIT 403.
        unknownParameters:
          type: array
          items:
            type: string
          description: 'Present on the unknown-parameter 400: the parameter names this endpoint does not have.'
        didYouMean:
          type: object
          additionalProperties:
            type: string
          description: 'Present on the unknown-parameter 400: each unknown name mapped to the parameter you probably meant.'
        documentation:
          type: string
          format: uri
          description: 'Present on the unknown-parameter 400: where the full parameter list lives.'
  responses:
    Unauthorized:
      description: The x-api-key header does not match an existing key (search and export), or no key and no browser session was sent (export). Search without any key or session answers 403 instead.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          examples:
            invalidApiKey:
              summary: Unknown API key
              value:
                error: Invalid API key
            missingCredentials:
              summary: No API key and no session (export only)
              value:
                error: 'Unauthorized: No token or user found. '
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: API key for the CompanyData API. Required on all endpoints.
x-refined-from:
- companydata-com-openapi.json
- companydata-com-openapi.yml