# Danish Company Lookup (CVR) (`scrapeworks/danish-company-lookup-cvr`) Actor

Look up Danish companies in the official CVR register by number, name, phone, email, domain, or address. Get status, type, industry, employees, address, and the advertising-protection flag as clean JSON. No API key.

- **URL**: https://apify.com/scrapeworks/danish-company-lookup-cvr.md
- **Developed by:** [Nicolas van Arkens](https://apify.com/scrapeworks) (community)
- **Categories:** Automation, Other
- **Stats:** 3 total users, 1 monthly users, 100.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## Danish Company Lookup (CVR)

Look up Danish companies in the official **Central Business Register (CVR)** and get clean, structured JSON — by CVR number, company name, phone, email, email domain, or address. No API key required.

CVR is Denmark's authoritative business register, covering 700,000+ active companies. This actor returns the core registry data for each match: legal name, status, company type, industry code, employees, founding date, address, contact details, production units, and — importantly — the **advertising-protection (reklamebeskyttelse) flag**.

### What it's for

- **KYB / due diligence** — verify a Danish company's identity, status, and registration.
- **B2B prospecting & enrichment** — turn a list of CVR numbers or names into full company records (see the legal note below before any marketing use).
- **Reverse lookup** — find companies by phone, email, email domain, or address.
- **Research & datasets** — pull structured Danish company data in bulk.

### Input

| Field | Type | Description |
|-------|------|-------------|
| `queries` | array | CVR numbers, names, phones, emails, domains, or addresses. |
| `searchBy` | select | `auto`, `cvrNumber`, `name`, `fuzzyName`, `phone`, `email`, `emailDomain`, `address`. |
| `postalCode` | string | Optional 4-digit code to narrow an address search. |
| `excludeProtected` | boolean | Drop advertising-protected companies (for marketing lists). |
| `maxItems` | integer | Cap on records returned. |

### Output

One record per company:

```json
{
  "cvrNumber": 24256790,
  "name": "NOVO NORDISK A/S",
  "status": "NORMAL",
  "bankrupt": false,
  "protected": false,
  "companyType": "Aktieselskab",
  "companyTypeShort": "A/S",
  "industryCode": 211000,
  "industryDesc": "Fremstilling af farmaceutiske råvarer",
  "employees": "5000+",
  "startDate": "1931-12-01",
  "address": "Novo Alle 1",
  "zipcode": 2880,
  "city": "Bagsværd",
  "phone": "44448888",
  "website": "novonordisk.com",
  "productionUnitCount": 2,
  "searchBy": "cvrNumber"
}
````

### ⚠️ Advertising protection (reklamebeskyttelse) — please read

Some Danish companies opt out of marketing contact. Each record includes a `protected` flag, but **be aware the upstream data source often does not populate this field, in which case it returns `null` (unknown) rather than `true`/`false`.** Do not treat `null` as "safe to contact."

Under the Danish CVR Act (§ 19 and § 22), you **must not** use the data of advertising-protected companies for direct marketing (calls, targeted mail, etc.), and you must mark them as protected if you pass the data to a third party. The `excludeProtected` option is conservative: it removes both protected companies and those with an unknown flag, leaving only confirmed-contactable ones. For any marketing use, verify protection status directly at datacvr.virk.dk. You are responsible for complying with these rules.

### Notes

- Data is sourced via the free, open-source apicvr.dk service, which proxies the official Erhvervsstyrelsen CVR register. As with any third-party dependency, availability is not guaranteed.
- Independent tool, not affiliated with Erhvervsstyrelsen or the Danish Business Authority.

# Actor input Schema

## `queries` (type: `array`):

One or more search terms. With searchBy = auto, an 8-digit value is treated as a CVR number and anything else as a company name. For phone/email/address modes, enter the matching value.

## `searchBy` (type: `string`):

How to interpret each query. `auto` detects CVR numbers vs. names. Other modes do reverse lookups by phone, email, email domain, or address.

## `postalCode` (type: `string`):

Optional 4-digit Danish postal code to narrow an address search. Only used when searchBy = address.

## `excludeProtected` (type: `boolean`):

If enabled, drops companies flagged with advertising protection (reklamebeskyttelse) AND companies where the flag is unknown, so only confirmed-contactable companies remain. Use this for marketing or outreach lists. See the README for your legal obligations under the CVR Act.

## `exactName` (type: `boolean`):

Only applies to name search. By default the legal form (A/S, ApS, K/S, etc.) is stripped so a search returns the whole company family. Enable this to keep the full name for a narrower match.

## `maxItems` (type: `integer`):

Maximum number of company records to return across all queries.

## Actor input object example

```json
{
  "queries": [
    "Novo Nordisk A/S",
    "25313763"
  ],
  "searchBy": "auto",
  "excludeProtected": false,
  "exactName": false,
  "maxItems": 100
}
```

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "queries": [
        "Novo Nordisk A/S",
        "25313763"
    ],
    "maxItems": 100
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapeworks/danish-company-lookup-cvr").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "queries": [
        "Novo Nordisk A/S",
        "25313763",
    ],
    "maxItems": 100,
}

# Run the Actor and wait for it to finish
run = client.actor("scrapeworks/danish-company-lookup-cvr").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "queries": [
    "Novo Nordisk A/S",
    "25313763"
  ],
  "maxItems": 100
}' |
apify call scrapeworks/danish-company-lookup-cvr --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=scrapeworks/danish-company-lookup-cvr",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Danish Company Lookup (CVR)",
        "description": "Look up Danish companies in the official CVR register by number, name, phone, email, domain, or address. Get status, type, industry, employees, address, and the advertising-protection flag as clean JSON. No API key.",
        "version": "0.1",
        "x-build-id": "bjkr5APKmLDrVDcmb"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/scrapeworks~danish-company-lookup-cvr/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-scrapeworks-danish-company-lookup-cvr",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/scrapeworks~danish-company-lookup-cvr/runs": {
            "post": {
                "operationId": "runs-sync-scrapeworks-danish-company-lookup-cvr",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/scrapeworks~danish-company-lookup-cvr/run-sync": {
            "post": {
                "operationId": "run-sync-scrapeworks-danish-company-lookup-cvr",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "queries": {
                        "title": "Queries",
                        "type": "array",
                        "description": "One or more search terms. With searchBy = auto, an 8-digit value is treated as a CVR number and anything else as a company name. For phone/email/address modes, enter the matching value.",
                        "default": [
                            "Novo Nordisk A/S"
                        ],
                        "items": {
                            "type": "string"
                        }
                    },
                    "searchBy": {
                        "title": "Search by",
                        "enum": [
                            "auto",
                            "cvrNumber",
                            "name",
                            "fuzzyName",
                            "phone",
                            "email",
                            "emailDomain",
                            "address"
                        ],
                        "type": "string",
                        "description": "How to interpret each query. `auto` detects CVR numbers vs. names. Other modes do reverse lookups by phone, email, email domain, or address.",
                        "default": "auto"
                    },
                    "postalCode": {
                        "title": "Postal code (address mode)",
                        "type": "string",
                        "description": "Optional 4-digit Danish postal code to narrow an address search. Only used when searchBy = address."
                    },
                    "excludeProtected": {
                        "title": "Exclude advertising-protected companies",
                        "type": "boolean",
                        "description": "If enabled, drops companies flagged with advertising protection (reklamebeskyttelse) AND companies where the flag is unknown, so only confirmed-contactable companies remain. Use this for marketing or outreach lists. See the README for your legal obligations under the CVR Act.",
                        "default": false
                    },
                    "exactName": {
                        "title": "Exact name match",
                        "type": "boolean",
                        "description": "Only applies to name search. By default the legal form (A/S, ApS, K/S, etc.) is stripped so a search returns the whole company family. Enable this to keep the full name for a narrower match.",
                        "default": false
                    },
                    "maxItems": {
                        "title": "Maximum companies",
                        "minimum": 1,
                        "maximum": 1000,
                        "type": "integer",
                        "description": "Maximum number of company records to return across all queries.",
                        "default": 100
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
