companydata.dk Reference Data API

The Reference Data API from companydata.dk — 8 operation(s) for reference data.

GitHub OpenAPI

Operations 8

GET /v1/municipalities /municipalities #
GET /v1/municipalities/{code} /municipalities/{code} #
GET /v1/regions /regions #
GET /v1/industries /industries #
GET /v1/industries/translations /industries/translations #
GET /v1/postal-codes /postal-codes #
GET /v1/kuratorer /kuratorer #
GET /v1/postal-codes/{code} /postal-codes/{code} #

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-dk:companydata-dk-reference-data-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. See our Privacy Policy and Terms.

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

OpenAPI Specification

companydata-dk-reference-data-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Companydata Dk Reference Data API
  version: 1.0.0
  x-refined-note:
  - x-source differs across the merged source definitions and was not carried
  description: 'Operations tagged Reference Data across 2 of this provider''s published API definitions: companydata-dk-v1-openapi.json, companydata-dk-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.companydata.dk
  description: Production
security:
- BearerAuth: []
tags:
- name: Reference Data
paths:
  /v1/municipalities:
    get:
      tags:
      - Reference Data
      summary: /municipalities
      description: 'List all Danish municipalities.


        Optionally filter by region code. Results are sorted alphabetically by name.


        **Region codes:**

        - 1081: Region Nordjylland

        - 1082: Region Midtjylland

        - 1083: Region Syddanmark

        - 1084: Region Hovedstaden

        - 1085: Region Sjælland'
      operationId: list_municipalities_v1_municipalities_get
      security:
      - BearerAuth: []
      parameters:
      - name: region_code
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: Filter by region code
          title: Region Code
        description: Filter by region code
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/app__routers__reference__MunicipalityListResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    servers:
    - url: https://api.companydata.dk
      description: Production
  /v1/municipalities/{code}:
    get:
      tags:
      - Reference Data
      summary: /municipalities/{code}
      description: Get a single municipality by code.
      operationId: get_municipality_v1_municipalities__code__get
      security:
      - BearerAuth: []
      parameters:
      - name: code
        in: path
        required: true
        schema:
          type: string
          title: Code
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Municipality'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    servers:
    - url: https://api.companydata.dk
      description: Production
  /v1/regions:
    get:
      tags:
      - Reference Data
      summary: /regions
      description: 'List all Danish regions.


        Denmark has 5 regions. Results are sorted alphabetically by name.'
      operationId: list_regions_v1_regions_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RegionListResponse'
      security:
      - BearerAuth: []
    servers:
    - url: https://api.companydata.dk
      description: Production
  /v1/industries:
    get:
      tags:
      - Reference Data
      summary: /industries
      description: 'List industries with company counts.


        Returns industries sorted by total count (most common first).

        Use locale=en for English translations.'
      operationId: list_industries_v1_industries_get
      security:
      - BearerAuth: []
      parameters:
      - name: q
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: Search filter for industry name
          title: Q
        description: Search filter for industry name
      - name: code
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: Filter by exact industry code
          title: Code
        description: Filter by exact industry code
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          maximum: 2000
          minimum: 1
          description: Max results to return
          default: 50
          title: Limit
        description: Max results to return
      - name: locale
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: Locale for industry names (da/en)
          default: da
          title: Locale
        description: Locale for industry names (da/en)
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/app__routers__reference__IndustryListResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    servers:
    - url: https://api.companydata.dk
      description: Production
  /v1/industries/translations:
    get:
      tags:
      - Reference Data
      summary: /industries/translations
      description: 'Get all industry code translations for client-side caching.


        Returns a dictionary mapping industry codes to their Danish and English names.

        Response is cacheable for 24 hours.'
      operationId: get_industry_translations_v1_industries_translations_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IndustryTranslationsResponse'
      security:
      - BearerAuth: []
    servers:
    - url: https://api.companydata.dk
      description: Production
  /v1/postal-codes:
    get:
      tags:
      - Reference Data
      summary: /postal-codes
      description: 'List all Danish postal codes, sorted numerically by postal code.


        `municipality_code` filters to postal codes observed in that

        municipality (registered company addresses; postal codes that straddle

        municipal borders appear for every municipality they touch).'
      operationId: list_postal_codes_v1_postal_codes_get
      security:
      - BearerAuth: []
      parameters:
      - name: municipality_code
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: Filter by municipality code
          title: Municipality Code
        description: Filter by municipality code
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/app__routers__reference__PostalCodeListResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    servers:
    - url: https://api.companydata.dk
      description: Production
  /v1/kuratorer:
    get:
      tags:
      - Reference Data
      summary: /kuratorer
      description: '**Pro tier required.**


        Directory of kuratorer (bankruptcy trustees): appointments published in

        Statstidende konkursdekret notices within the last 12 months, grouped by

        trustee name. Professional-capacity data as published in Statstidende.


        Names are grouped as published; the same person may appear under name

        variants.'
      operationId: list_kuratorer_v1_kuratorer_get
      security:
      - BearerAuth: []
      parameters:
      - name: q
        in: query
        required: false
        schema:
          anyOf:
          - type: string
            minLength: 2
          - type: 'null'
          description: Name search (case-insensitive substring)
          title: Q
        description: Name search (case-insensitive substring)
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          maximum: 100
          minimum: 1
          default: 25
          title: Limit
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/KuratorDirectoryResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    servers:
    - url: https://api.companydata.dk
      description: Production
  /v1/postal-codes/{code}:
    get:
      tags:
      - Reference Data
      summary: /postal-codes/{code}
      description: Get a single postal code with company count.
      operationId: get_postal_code_v1_postal_codes__code__get
      security:
      - BearerAuth: []
      parameters:
      - name: code
        in: path
        required: true
        schema:
          type: string
          title: Code
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostalCode'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    servers:
    - url: https://api.companydata.dk
      description: Production
components:
  schemas:
    Industry:
      properties:
        code:
          type: string
          title: Code
          description: 6-digit industry code (DB07)
          examples:
          - '620100'
        name:
          type: string
          title: Name
          description: Industry name in selected locale
        name_en:
          anyOf:
          - type: string
          - type: 'null'
          title: Name En
          description: English industry name
        count:
          type: integer
          title: Count
          description: Total company count (primary + secondary)
        primary_count:
          anyOf:
          - type: integer
          - type: 'null'
          title: Primary Count
          description: Companies with this as primary industry
        secondary_count:
          anyOf:
          - type: integer
          - type: 'null'
          title: Secondary Count
          description: Companies with this as secondary industry
        active_count:
          anyOf:
          - type: integer
          - type: 'null'
          title: Active Count
          description: Active companies with this as primary industry; null until computed, 0 for a retired code
        division:
          anyOf:
          - type: string
          - type: 'null'
          title: Division
          description: 2-digit industry category (division) the code belongs to
      type: object
      required:
      - code
      - name
      - count
      title: Industry
      description: Industry data for dropdown/filter.
    Municipality:
      properties:
        code:
          type: string
          title: Code
          description: Municipality code
          examples:
          - '101'
        name:
          type: string
          title: Name
          description: Municipality name
          examples:
          - København
        region_code:
          anyOf:
          - type: string
          - type: 'null'
          title: Region Code
          description: Region code
          examples:
          - '1084'
        region_name:
          anyOf:
          - type: string
          - type: 'null'
          title: Region Name
          description: Region name
          examples:
          - Region Hovedstaden
      type: object
      required:
      - code
      - name
      title: Municipality
      description: Municipality data for dropdown/filter.
    KuratorDirectoryEntry:
      properties:
        name:
          type: string
          title: Name
          description: Kurator name as published
        title:
          anyOf:
          - type: string
          - type: 'null'
          title: Title
          description: Title (e.g. Advokat)
        active_cases_12m:
          type: integer
          title: Active Cases 12M
          description: Konkursdekret appointments in the last 12 months
        latest_appointment:
          anyOf:
          - type: string
          - type: 'null'
          title: Latest Appointment
          description: Most recent appointment date
        courts:
          items:
            type: string
          type: array
          title: Courts
          description: Courts appearing in the appointments
      type: object
      required:
      - name
      - active_cases_12m
      title: KuratorDirectoryEntry
    RegionListResponse:
      properties:
        data:
          items:
            $ref: '#/components/schemas/Region'
          type: array
          title: Data
          description: List of regions
        meta:
          additionalProperties: true
          type: object
          title: Meta
          description: Response metadata
      type: object
      required:
      - data
      - meta
      title: RegionListResponse
      description: Response with list of regions.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    KuratorDirectoryResponse:
      properties:
        data:
          items:
            $ref: '#/components/schemas/KuratorDirectoryEntry'
          type: array
          title: Data
        meta:
          additionalProperties: true
          type: object
          title: Meta
      type: object
      required:
      - data
      - meta
      title: KuratorDirectoryResponse
    PostalCode:
      properties:
        code:
          type: string
          title: Code
          description: 4-digit postal code
          examples:
          - '2100'
        name:
          type: string
          title: Name
          description: Postal code district name
          examples:
          - København Ø
        municipality_code:
          anyOf:
          - type: string
          - type: 'null'
          title: Municipality Code
          description: Municipality code
          examples:
          - '101'
        municipality_name:
          anyOf:
          - type: string
          - type: 'null'
          title: Municipality Name
          description: Municipality name
          examples:
          - København
      type: object
      required:
      - code
      - name
      title: PostalCode
      description: Postal code data for dropdown/filter.
    IndustryTranslationsResponse:
      properties:
        translations:
          additionalProperties:
            $ref: '#/components/schemas/IndustryTranslation'
          type: object
          title: Translations
          description: Map of code to translations
        count:
          type: integer
          title: Count
          description: Number of translations
      type: object
      required:
      - translations
      - count
      title: IndustryTranslationsResponse
      description: Response with all industry translations for client-side caching.
    app__routers__reference__IndustryListResponse:
      properties:
        data:
          items:
            $ref: '#/components/schemas/Industry'
          type: array
          title: Data
          description: List of industries
        meta:
          additionalProperties: true
          type: object
          title: Meta
          description: Response metadata
      type: object
      required:
      - data
      - meta
      title: IndustryListResponse
      description: Response with list of industries.
    IndustryTranslation:
      properties:
        da:
          type: string
          title: Da
          description: Danish name
        en:
          anyOf:
          - type: string
          - type: 'null'
          title: En
          description: English name
      type: object
      required:
      - da
      title: IndustryTranslation
      description: Industry translation with both Danish and English names.
    app__routers__reference__MunicipalityListResponse:
      properties:
        data:
          items:
            $ref: '#/components/schemas/Municipality'
          type: array
          title: Data
          description: List of municipalities
        meta:
          additionalProperties: true
          type: object
          title: Meta
          description: Response metadata
      type: object
      required:
      - data
      - meta
      title: MunicipalityListResponse
      description: Response with list of municipalities.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    app__routers__reference__PostalCodeListResponse:
      properties:
        data:
          items:
            $ref: '#/components/schemas/PostalCode'
          type: array
          title: Data
          description: List of postal codes
        meta:
          additionalProperties: true
          type: object
          title: Meta
          description: Response metadata
      type: object
      required:
      - data
      - meta
      title: PostalCodeListResponse
      description: Response with list of postal codes.
    Region:
      properties:
        code:
          type: string
          title: Code
          description: Region code
          examples:
          - '1084'
        name:
          type: string
          title: Name
          description: Region name
          examples:
          - Region Hovedstaden
      type: object
      required:
      - code
      - name
      title: Region
      description: Region data.
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: 'API key authentication. Include your API key in the Authorization header: `Bearer sk_live_your_key`. Get your key at [companydata.dk](https://companydata.dk)'
x-refined-from:
- companydata-dk-v1-openapi.json
- companydata-dk-openapi.yml