# Denmark Public Tenders Scraper: udbud.dk Procurement (`badboxx_newlife/denmark-public-tenders-scraper`) Actor

Scrape udbud.dk Danish public tenders (udbud): buyer, CVR, notice type, CPV, value, deadline, URL. Filter by keyword, CPV, type and date. No login.

- **URL**: https://apify.com/badboxx_newlife/denmark-public-tenders-scraper.md
- **Developed by:** [Francesco Correnti](https://apify.com/badboxx_newlife) (community)
- **Categories:** Lead generation, Other
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event

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/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## 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.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Denmark Public Tenders Scraper (udbud.dk)

Scrapes Danish public procurement notices (national, below-threshold and EU) from udbud.dk: buyer, CVR, notice type, CPV, value, deadline, link. For bid hunters, consultants and suppliers. No login.

### Source

Primary: udbud.dk (Konkurrence- og Forbrugerstyrelsen). The SPA calls the open JSON endpoint `POST https://udbud.dk/soegning/public/soegeresultat` (found with headless playwright); main.py calls it directly with urllib, no browser, no key, no WAF/captcha (HTTP 200). TED fallback not needed. Only public business data is kept (notice fields plus buyer name/CVR); no contact people, emails or phones. Respect udbud.dk terms; public notices, use responsibly.

### Input

| Field | Type | Default | Meaning |
|---|---|---|---|
| keyword | string | - | free text |
| cpv | string\[] | - | 8-digit CPV codes |
| noticeTypes | string\[] | \["competition"] | competition, planning, preplanning, result, dir-awa-pre; empty = all |
| daysBack | integer | 30 | last N days (ignored if publishedFrom set) |
| publishedFrom / publishedTo | string | - | YYYY-MM-DD |
| activeOnly | boolean | true | only active notices |
| maxItems | integer | 20 | cap (and cost) |

### Output

| Field | Meaning |
|---|---|
| id | udbud.dk notice id (unique) |
| title, description | notice title, first 500 chars of description |
| buyer, buyerId | buyer name, CVR/org id |
| noticeType, noticeSubType | type code, subtype text |
| cpv, cpvTitle | main CPV code and title |
| publishedDate | ISO 8601 date |
| deadline | tender deadline (ISO datetime) or null |
| estimatedValue, currency | estimated value if given |
| url | notice page on udbud.dk |

### Sample (local run)

| id | title | buyer | cpv | publishedDate | deadline |
|---|---|---|---|---|---|
| 2e9ba3b3-3c9a-4efa-aa56-5a0f3590c670 | Riding Breeches | Forsvarsministeriets Materiel og indkøbsstyrelse | 18000000 | 2026-11-06 | 2026-11-16 |
| 66253c7f-28e3-4281-8466-2e32b206b6c8 | DT-PV.R008 - Rammeaftale om naturfaglig rådgivning | Vejdirektoratet | 71000000 | 2026-11-06 |  |
| 7110e470-d4d9-4cd8-bda7-cbbaf60d14a6 | Udbud af rammeaftale vedr. rekrutteringsydelser ti | Københavns Universitet | 79600000 | 2026-11-06 | 2026-12-07 |
| 8c774617-8bd3-4460-9793-5382f020183d | Afsætning af affaldsfraktioner - Thy Recycle | THY RECYCLE APS | 90513000 | 2026-11-06 |  |
| 74d2f705-3ffa-4029-bc15-b3e7384ecb72 | Tilføjelse af RHIB'er til eksisterende rammeaftale | Danish Ministry of Defence Acquisition and Logistics Organisation | 50000000 | 2026-11-06 |  |

Full items: sample_output.json.

### Pricing

Pay per event: `actor-start` $0.005 per run, `result` $0.002 per notice returned.

### Run / test

`pip install -r requirements.txt`; `python3 check.py` (live fetch of 5 items, asserts fields, unique ids, no personal keys, prices, seo; exit 0 = pass). `python3 main.py` runs with local storage. `python3 publish.py --help` (`--noruns` pushes build/metadata only; needs APIFY_TOKEN). keywords.json holds SEO keywords (kept out of seo.json so its keys match #469).

# Actor input Schema

## `keyword` (type: `string`):

Free-text search on udbud.dk (Danish works best). Example: software.

## `cpv` (type: `array`):

8-digit CPV codes. Example: 72000000.

## `noticeTypes` (type: `array`):

udbud.dk type codes: competition, planning, preplanning, result, dir-awa-pre. Empty = all.

## `daysBack` (type: `integer`):

Notices published in the last N days (ignored if Published from is set). Example: 30.

## `publishedFrom` (type: `string`):

YYYY-MM-DD. Example: 2026-10-01.

## `publishedTo` (type: `string`):

YYYY-MM-DD. Example: 2026-11-06.

## `activeOnly` (type: `boolean`):

Only notices udbud.dk marks as active. Example: true.

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

Maximum notices returned; you pay per notice, so this caps cost. Example: 20.

## Actor input object example

```json
{
  "noticeTypes": [
    "competition"
  ],
  "daysBack": 30,
  "activeOnly": true,
  "maxItems": 20
}
```

# Actor output Schema

## `notices` (type: `string`):

No description

# 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 = {
    "noticeTypes": [
        "competition"
    ],
    "maxItems": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("badboxx_newlife/denmark-public-tenders-scraper").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 = {
    "noticeTypes": ["competition"],
    "maxItems": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("badboxx_newlife/denmark-public-tenders-scraper").call(run_input=run_input)

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

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

```

## CLI example

```bash
echo '{
  "noticeTypes": [
    "competition"
  ],
  "maxItems": 20
}' |
apify call badboxx_newlife/denmark-public-tenders-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,badboxx_newlife/denmark-public-tenders-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/jPa4ZPJdgW1SReWee/builds/Y0xhllhVyKOiTLH3L/openapi.json
