companydata.dk Production Units API

The Production Units API from companydata.dk — 4 operation(s) for production units.

GitHub OpenAPI

Operations 4

GET /v1/production-units /production-units #
GET /v1/production-units/nearby /production-units/nearby #
GET /v1/production-units/stats /production-units/stats #
GET /v1/production-units/{p_number} /production-units/{p_number} #

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-production-units-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-production-units-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Companydata Dk Production Units API
  version: 1.0.0
  x-refined-note:
  - x-source differs across the merged source definitions and was not carried
  description: 'Operations tagged Production Units 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: Production Units
paths:
  /v1/production-units:
    get:
      tags:
      - Production Units
      summary: /production-units
      description: '**Pro tier required.**


        Search production units with filters.


        **Examples:**

        - Search by P-number: `/v1/production-units?q=1234567890`

        - Filter by municipality: `/v1/production-units?municipality=101`

        - Filter by industry: `/v1/production-units?industry=47.11`'
      operationId: search_v1_production_units_get
      security:
      - BearerAuth: []
      parameters:
      - name: q
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: Search query (P-number or name)
          title: Q
        description: Search query (P-number or name)
      - name: status
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: Filter by status
          title: Status
        description: Filter by status
      - name: include_dissolved
        in: query
        required: false
        schema:
          type: boolean
          description: Include dissolved P-enheder
          default: false
          title: Include Dissolved
        description: Include dissolved P-enheder
      - name: industry
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: Filter by industry code
          title: Industry
        description: Filter by industry code
      - name: municipality
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: Filter by municipality code
          title: Municipality
        description: Filter by municipality code
      - name: postal_code
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: Filter by postal code
          title: Postal Code
        description: Filter by postal code
      - name: page
        in: query
        required: false
        schema:
          type: integer
          minimum: 1
          description: Page number
          default: 1
          title: Page
        description: Page number
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          maximum: 100
          minimum: 1
          description: Results per page
          default: 25
          title: Limit
        description: Results per page
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProductionUnitSearchResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    servers:
    - url: https://api.companydata.dk
      description: Production
  /v1/production-units/nearby:
    get:
      tags:
      - Production Units
      summary: /production-units/nearby
      description: '**Pro tier required.**


        Search production units near a location.


        Returns P-enheder within the specified radius, sorted by distance.

        This is useful for finding all business locations (stores, offices, etc.)

        near a geographic point.


        **Example:** Find all stores within 5km of Copenhagen:

        `/v1/production-units/nearby?lat=55.6761&lng=12.5683&radius=5000`'
      operationId: search_nearby_v1_production_units_nearby_get
      security:
      - BearerAuth: []
      parameters:
      - name: lat
        in: query
        required: true
        schema:
          type: number
          description: Latitude of center point
          title: Lat
        description: Latitude of center point
      - name: lng
        in: query
        required: true
        schema:
          type: number
          description: Longitude of center point
          title: Lng
        description: Longitude of center point
      - name: radius
        in: query
        required: false
        schema:
          type: integer
          maximum: 50000
          minimum: 50
          description: Search radius in meters (min 50m, max 50km)
          default: 1000
          title: Radius
        description: Search radius in meters (min 50m, max 50km)
      - name: status
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: Filter by status (active, dissolved)
          title: Status
        description: Filter by status (active, dissolved)
      - name: include_dissolved
        in: query
        required: false
        schema:
          type: boolean
          description: Include dissolved P-enheder
          default: false
          title: Include Dissolved
        description: Include dissolved P-enheder
      - name: industry
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: Filter by industry code
          title: Industry
        description: Filter by industry code
      - name: page
        in: query
        required: false
        schema:
          type: integer
          minimum: 1
          description: Page number
          default: 1
          title: Page
        description: Page number
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          maximum: 100
          minimum: 1
          description: Results per page
          default: 25
          title: Limit
        description: Results per page
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProductionUnitSearchResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    servers:
    - url: https://api.companydata.dk
      description: Production
  /v1/production-units/stats:
    get:
      tags:
      - Production Units
      summary: /production-units/stats
      description: '**Pro tier required.**


        Get statistics about production units in the database.'
      operationId: stats_v1_production_units_stats_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
      security:
      - BearerAuth: []
    servers:
    - url: https://api.companydata.dk
      description: Production
  /v1/production-units/{p_number}:
    get:
      tags:
      - Production Units
      summary: /production-units/{p_number}
      description: '**Pro tier required.**


        Get a production unit by P-number.


        P-numbers are 10-digit identifiers for physical business locations.'
      operationId: get_production_unit_v1_production_units__p_number__get
      security:
      - BearerAuth: []
      parameters:
      - name: p_number
        in: path
        required: true
        schema:
          type: string
          title: P Number
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProductionUnitResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    servers:
    - url: https://api.companydata.dk
      description: Production
components:
  schemas:
    ProductionUnit:
      properties:
        p_number:
          type: string
          title: P Number
          description: 10-digit P-nummer (unique production unit identifier)
          examples:
          - '1234567890'
        cvr:
          type: string
          title: Cvr
          description: CVR number of parent company
          examples:
          - '12345678'
        name:
          anyOf:
          - type: string
          - type: 'null'
          title: Name
          description: Production unit name/description
        status:
          type: string
          title: Status
          description: Unit status
          default: active
          examples:
          - active
          - dissolved
        is_main_unit:
          type: boolean
          title: Is Main Unit
          description: Whether this is the main unit (hovedafdeling)
          default: false
        valid_from:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Valid From
          description: Date P-enhed was created
        valid_to:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Valid To
          description: Date P-enhed was dissolved (null = active)
        address:
          anyOf:
          - $ref: '#/components/schemas/CompanyAddress'
          - type: 'null'
          description: Physical location address
        location:
          anyOf:
          - $ref: '#/components/schemas/app__models__company__GeoLocation'
          - type: 'null'
          description: Geocoded coordinates
        industry:
          anyOf:
          - $ref: '#/components/schemas/CompanyIndustry'
          - type: 'null'
          description: Industry classification (may differ from parent)
        employees:
          anyOf:
          - $ref: '#/components/schemas/CompanyEmployees'
          - type: 'null'
          description: Employee count at this location
        employees_monthly:
          anyOf:
          - $ref: '#/components/schemas/CompanyEmployees'
          - type: 'null'
          description: Latest monthly headcount at this location from CVR
        employees_yearly:
          anyOf:
          - $ref: '#/components/schemas/CompanyEmployees'
          - type: 'null'
          description: CVR's yearly employment series at this location, which ends with 2018
        contact:
          anyOf:
          - $ref: '#/components/schemas/CvrContact'
          - type: 'null'
          description: Contact information for this location
        advertising_protected:
          type: boolean
          title: Advertising Protected
          description: Whether unit is protected from advertising
          default: false
        meta:
          $ref: '#/components/schemas/ProductionUnitMeta'
          description: Record metadata
      type: object
      required:
      - p_number
      - cvr
      title: ProductionUnit
      description: 'A production unit (P-enhed) - physical business location.


        P-enheder are separate entities in CVR with their own unique address,

        employee counts, and industry classification.'
    ProductionUnitResponse:
      properties:
        data:
          $ref: '#/components/schemas/ProductionUnit'
          description: Full production unit details
        company_name:
          anyOf:
          - type: string
          - type: 'null'
          title: Company Name
          description: Parent company name for context
        meta:
          additionalProperties: true
          type: object
          title: Meta
          description: Response metadata
      type: object
      required:
      - data
      title: ProductionUnitResponse
      description: Response for single production unit lookup.
    ProductionUnitSearchResult:
      properties:
        p_number:
          type: string
          title: P Number
          description: 10-digit P-nummer
          examples:
          - '1234567890'
        cvr:
          type: string
          title: Cvr
          description: Parent company CVR
          examples:
          - '12345678'
        name:
          anyOf:
          - type: string
          - type: 'null'
          title: Name
          description: Production unit name
        status:
          type: string
          title: Status
          description: Unit status
          examples:
          - active
          - dissolved
        is_main_unit:
          type: boolean
          title: Is Main Unit
          description: Whether this is the main unit
          default: false
        address:
          anyOf:
          - $ref: '#/components/schemas/CompanyAddress'
          - type: 'null'
          description: Physical address
        industry:
          anyOf:
          - $ref: '#/components/schemas/CompanyIndustry'
          - type: 'null'
          description: Industry classification
        employees:
          anyOf:
          - $ref: '#/components/schemas/CompanyEmployees'
          - type: 'null'
          description: Employee information
        location:
          anyOf:
          - $ref: '#/components/schemas/app__models__company__GeoLocation'
          - type: 'null'
          description: Geocoded coordinates
        distance_meters:
          anyOf:
          - type: integer
          - type: 'null'
          title: Distance Meters
          description: Distance from search point (location searches only)
      type: object
      required:
      - p_number
      - cvr
      - status
      title: ProductionUnitSearchResult
      description: Simplified production unit for search results.
    CvrContact:
      properties:
        phone:
          anyOf:
          - type: string
          - type: 'null'
          title: Phone
          description: Phone number
          examples:
          - +45 12345678
        email:
          anyOf:
          - type: string
          - type: 'null'
          title: Email
          description: Email address
        website:
          anyOf:
          - type: string
          - type: 'null'
          title: Website
          description: Website URL
        fax:
          anyOf:
          - type: string
          - type: 'null'
          title: Fax
          description: Fax number
      type: object
      title: CvrContact
      description: 'Contact information as registered in CVR (adds the fax number, which

        a claimed profile cannot set).'
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    SecondaryIndustry:
      properties:
        code:
          anyOf:
          - type: string
          - type: 'null'
          title: Code
          description: 6-digit Danish industry code (DB07)
          examples:
          - '620100'
        text:
          anyOf:
          - type: string
          - type: 'null'
          title: Text
          description: Industry description in Danish
      type: object
      title: SecondaryIndustry
      description: Secondary industry classification.
    CompanyIndustry:
      properties:
        primary_code:
          anyOf:
          - type: string
          - type: 'null'
          title: Primary Code
          description: Primary 6-digit industry code (DB07)
          examples:
          - '620100'
        primary_text:
          anyOf:
          - type: string
          - type: 'null'
          title: Primary Text
          description: Primary industry description
          examples:
          - Computerprogrammering
        secondary:
          items:
            $ref: '#/components/schemas/SecondaryIndustry'
          type: array
          title: Secondary
          description: List of secondary industry codes
      type: object
      title: CompanyIndustry
      description: Industry classification using Danish DB07 codes.
    ProductionUnitSearchResponse:
      properties:
        data:
          items:
            $ref: '#/components/schemas/ProductionUnitSearchResult'
          type: array
          title: Data
          description: Matching production units
        meta:
          additionalProperties: true
          type: object
          title: Meta
          description: Response metadata
        pagination:
          additionalProperties: true
          type: object
          title: Pagination
          description: 'Pagination info: page, limit, total, pages'
      type: object
      required:
      - data
      title: ProductionUnitSearchResponse
      description: Response for production unit search endpoint.
    CompanyEmployees:
      properties:
        count:
          anyOf:
          - type: integer
          - type: 'null'
          title: Count
          description: Exact employee count (if available)
          examples:
          - 25
        interval:
          anyOf:
          - type: string
          - type: 'null'
          title: Interval
          description: Employee count interval
          examples:
          - 10-19
          - 20-49
          - 50-99
        full_time_equivalent:
          anyOf:
          - type: number
          - type: 'null'
          title: Full Time Equivalent
          description: Full-time equivalent (FTE) count
        including_owners:
          anyOf:
          - type: integer
          - type: 'null'
          title: Including Owners
          description: Employee count including owners
        year:
          anyOf:
          - type: integer
          - type: 'null'
          title: Year
          description: Year the employee data was reported
          examples:
          - 2024
        month:
          anyOf:
          - type: integer
          - type: 'null'
          title: Month
          description: Month of the figure (monthly series only)
          examples:
          - 7
      type: object
      title: CompanyEmployees
      description: Employee count information from CVR.
    ProductionUnitMeta:
      properties:
        cvr_updated_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Cvr Updated At
          description: Last sync from CVR
        geocoded_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Geocoded At
          description: When address was geocoded
        synced_at:
          type: string
          format: date-time
          title: Synced At
          description: Last sync timestamp
        created_at:
          type: string
          format: date-time
          title: Created At
          description: Record creation time
        updated_at:
          type: string
          format: date-time
          title: Updated At
          description: Record last update time
      type: object
      title: ProductionUnitMeta
      description: Metadata for production unit records.
    app__models__company__GeoLocation:
      properties:
        type:
          type: string
          title: Type
          description: GeoJSON type (always 'Point')
          default: Point
        coordinates:
          items:
            type: number
          type: array
          title: Coordinates
          description: Coordinates as [longitude, latitude]
          examples:
          - - 12.5683
            - 55.6761
      type: object
      required:
      - coordinates
      title: GeoLocation
      description: GeoJSON Point for geographic coordinates.
    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
    CompanyAddress:
      properties:
        address_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Address Id
          description: DAWA adgangsadresse ID for direct geocoding lookup
        street_name:
          anyOf:
          - type: string
          - type: 'null'
          title: Street Name
          description: Street name (vejnavn)
        street_code:
          anyOf:
          - type: integer
          - type: 'null'
          title: Street Code
          description: Street code, unique per municipality (vejkode)
        house_number:
          anyOf:
          - type: integer
          - type: 'null'
          title: House Number
          description: House number (husnummerFra)
        house_number_to:
          anyOf:
          - type: integer
          - type: 'null'
          title: House Number To
          description: House number end for address ranges
        house_letter:
          anyOf:
          - type: string
          - type: 'null'
          title: House Letter
          description: Letter suffix, e.g. 'A', 'B'
        house_letter_to:
          anyOf:
          - type: string
          - type: 'null'
          title: House Letter To
          description: Letter suffix end for ranges
        floor:
          anyOf:
          - type: string
          - type: 'null'
          title: Floor
          description: Floor (etage), e.g. 'st', '1', '2'
        door:
          anyOf:
          - type: string
          - type: 'null'
          title: Door
          description: 'Door identifier: ''th'' (right), ''tv'' (left), ''mf'' (middle)'
        postal_code:
          anyOf:
          - type: string
          - type: 'null'
          title: Postal Code
          description: 4-digit Danish postal code
          examples:
          - '1000'
          - '2100'
        postal_district:
          anyOf:
          - type: string
          - type: 'null'
          title: Postal District
          description: Postal district name
          examples:
          - København K
          - Aarhus C
        town_name:
          anyOf:
          - type: string
          - type: 'null'
          title: Town Name
          description: Town name for rural areas (bynavn)
        care_of:
          anyOf:
          - type: string
          - type: 'null'
          title: Care Of
          description: c/o name if applicable
        po_box:
          anyOf:
          - type: string
          - type: 'null'
          title: Po Box
          description: P.O. box number
        free_text:
          anyOf:
          - type: string
          - type: 'null'
          title: Free Text
          description: Free text address (typically for foreign addresses)
        country_code:
          anyOf:
          - type: string
          - type: 'null'
          title: Country Code
          description: ISO 3166-1 alpha-2 country code
          default: DK
        municipality_code:
          anyOf:
          - type: string
          - type: 'null'
          title: Municipality Code
          description: 3-digit Danish municipality code
          examples:
          - '101'
          - '751'
        municipality_name:
          anyOf:
          - type: string
          - type: 'null'
          title: Municipality Name
          description: Municipality name
          examples:
          - København
          - Aarhus
        street:
          anyOf:
          - type: string
          - type: 'null'
          title: Street
          description: Formatted street address for display
          examples:
          - Rådhuspladsen 1
        city:
          anyOf:
          - type: string
          - type: 'null'
          title: City
          description: City name (same as postal_district)
      type: object
      title: CompanyAddress
      description: Danish address with all CVR fields preserved for accurate geocoding.
  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