Companies House Document Metadata API

Document Metadata

GitHub OpenAPI

Operations 1

GET /document/{document_id} Fetch a document's metadata #

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/companies-house:companies-house-documentmetadata-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

companies-house-documentmetadata-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  version: 1.0.0
  title: Document Metadata API
  description: API suite providing company filing history document metadata and downloads.
servers:
- url: https://document-api.company-information.service.gov.uk
- url: http://document-api.company-information.service.gov.uk
security:
- api_key: []
tags:
- name: documentMetadata
  description: Document Metadata
paths:
  /document/{document_id}:
    get:
      summary: Fetch a document's metadata
      tags:
      - documentMetadata
      parameters:
      - name: document_id
        in: path
        description: the id of the document
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Document metadata
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/documentMetadata'
        '401':
          description: Not authorised to retrieve document metadata
      operationId: getDocumentByDocumentId
      x-operation-id-source: derived
components:
  schemas:
    resourcesModel:
      title: resourcesModel
      required:
      - '{content_type}'
      properties:
        '{content_type}':
          type: object
          description: The content-type (MIME type) that the document is available as. Not all content types will be available for all documents. Available content types are `application/pdf`, `application/json`, `application/xml`, `application/xhtml+xml`, `application/zip` and `text/csv`
          items:
            $ref: '#/components/schemas/resourceContent'
    resourceContent:
      title: resourceContent
      required:
      - content_length
      - created_at
      properties:
        content_length:
          type: number
          description: The size of the document when returned as this content-type.
        created_at:
          type: string
          format: date-time
          description: The date and time this document type was first created
        updated_at:
          type: string
          format: date-time
          description: The date and time the document type was last updated
    filingHistoryItemLinks:
      title: filingHistoryItemLinks
      properties:
        self:
          description: Link to this document.
          type: string
        document:
          description: Link to the document metadata associated with this document.
          type: string
    documentMetadata:
      title: documentMetadata
      required:
      - etag
      - created_at
      - id
      - links
      - company_number
      properties:
        etag:
          type: string
          description: The ETag of the resource.
        created_at:
          type: string
          format: date-time
          description: The date and time the document was first created
        updated_at:
          type: string
          format: date-time
          description: The date and time the document was last updated
        id:
          type: string
          description: The document ID.
        pages:
          type: number
          description: The document page count
        links:
          description: Links to other resources associated with this filing history item.
          items:
            $ref: '#/components/schemas/filingHistoryItemLinks'
          type: object
        resources:
          type: object
          description: The list of content-types that the document is available as, and associated type specific information
          items:
            $ref: '#/components/schemas/resourcesModel'
  securitySchemes:
    api_key:
      type: apiKey
      name: api_key
      in: header