---
title: "/production-units/nearby"
method: GET
path: "/v1/production-units/nearby"
tags: ["Production Units"]
---

# /production-units/nearby

`GET /v1/production-units/nearby`

## Request

- Base URL: `https://api.companydata.dk` (the document declares no server; this is the origin it was published from)
- URL: `https://api.companydata.dk/v1/production-units/nearby`
- Auth: HTTP bearer

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`

## Query parameters

- `lat` number, required: Latitude of center point
- `lng` number, required: Longitude of center point
- `radius` integer: Search radius in meters (min 50m, max 50km)
- `status` string, nullable: Filter by status (active, dissolved)
- `include_dissolved` boolean: Include dissolved P-enheder
- `industry` string, nullable: Filter by industry code
- `page` integer: Page number
- `limit` integer: Results per page

## Response `200`

Successful Response

- ProductionUnitSearchResponse: Response for production unit search endpoint.
  - `data` ProductionUnitSearchResult[], required: Matching production units
    - `p_number` string, required: 10-digit P-nummer
    - `cvr` string, required: Parent company CVR
    - `name` string, nullable: Production unit name
    - `status` string, required: Unit status
    - `is_main_unit` boolean: Whether this is the main unit
    - `address` CompanyAddress: Danish address with all CVR fields preserved for accurate geocoding.
      - `address_id` string, nullable: DAWA adgangsadresse ID for direct geocoding lookup
      - `street_name` string, nullable: Street name (vejnavn)
      - `street_code` integer, nullable: Street code, unique per municipality (vejkode)
      - `house_number` integer, nullable: House number (husnummerFra)
      - `house_number_to` integer, nullable: House number end for address ranges
      - `house_letter` string, nullable: Letter suffix, e.g. 'A', 'B'
      - `house_letter_to` string, nullable: Letter suffix end for ranges
      - `floor` string, nullable: Floor (etage), e.g. 'st', '1', '2'
      - `door` string, nullable: Door identifier: 'th' (right), 'tv' (left), 'mf' (middle)
      - `postal_code` string, nullable: 4-digit Danish postal code
      - `postal_district` string, nullable: Postal district name
      - `town_name` string, nullable: Town name for rural areas (bynavn)
      - `care_of` string, nullable: c/o name if applicable
      - `po_box` string, nullable: P.O. box number
      - `free_text` string, nullable: Free text address (typically for foreign addresses)
      - `country_code` string, nullable: ISO 3166-1 alpha-2 country code
      - `municipality_code` string, nullable: 3-digit Danish municipality code
      - `municipality_name` string, nullable: Municipality name
      - `street` string, nullable: Formatted street address for display
      - `city` string, nullable: City name (same as postal_district)
    - `industry` CompanyIndustry: Industry classification using Danish DB07 codes.
      - `primary_code` string, nullable: Primary 6-digit industry code (DB07)
      - `primary_text` string, nullable: Primary industry description
      - `secondary` SecondaryIndustry[]: List of secondary industry codes
        - `code` string, nullable: 6-digit Danish industry code (DB07)
        - `text` string, nullable: Industry description in Danish
    - `employees` CompanyEmployees: Employee count information from CVR.
      - `count` integer, nullable: Exact employee count (if available)
      - `interval` string, nullable: Employee count interval
      - `full_time_equivalent` number, nullable: Full-time equivalent (FTE) count
      - `including_owners` integer, nullable: Employee count including owners
      - `year` integer, nullable: Year the employee data was reported
      - `month` integer, nullable: Month of the figure (monthly series only)
    - `location` AppModelsCompanyGeoLocation: GeoJSON Point for geographic coordinates.
      - `type` string: GeoJSON type (always 'Point')
      - `coordinates` number[], required: Coordinates as [longitude, latitude]
    - `distance_meters` integer, nullable: Distance from search point (location searches only)
  - `meta` object: Response metadata
  - `pagination` object: Pagination info: page, limit, total, pages

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/companydata/apis/companydata-dk-api.md) · [All operations](https://skmtc.dev/companydata/apis/companydata-dk-api/llms.txt) · [OpenAPI document](https://skmtc.dev/companydata/apis/companydata-dk-api/revisions/1cc6c361ae64?raw)
