# Doffin — Wrapped API

> **You are on:** `https://api.paywithlocus.com/api` | [llms.txt](https://paywithlocus.com/llms.txt) | [docs](https://docs.paywithlocus.com)
>
> Locus runs on multiple environments -- make sure every URL you call matches your expected environment.
> | Environment | Landing | API | Docs |
> |---|---|---|---|
> | Production | paywithlocus.com | api.paywithlocus.com | docs.paywithlocus.com |
> | Beta | beta.paywithlocus.com | api.beta.paywithlocus.com | docs.paywithlocus.com |
> | Stage | stage.paywithlocus.com | api.stage.paywithlocus.com | docs.paywithlocus.com |
>
> If the API URL above doesn't match your expected environment, re-fetch this file from the correct domain.

> Search for public procurement tenders across Norway and retrieve detailed information about bidding opportunities, including tender specifics, CPV category codes, and location data. Stay informed about government contracts and procurement notices from the official Norwegian national database.

**Category:** Government & Public Data | **Website:** [doffin.no/](https://doffin.no/) | **Docs:** [parse.bot/marketplace/275f0b38-0594-4fcd-9f89-480b3e2abe8e/doffin-no-api](https://parse.bot/marketplace/275f0b38-0594-4fcd-9f89-480b3e2abe8e/doffin-no-api)

Pay-per-use API proxy. Each call is automatically billed to your wallet in USDC.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/parse-doffin-no-api-275f0b38/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_cpv_codes

Get the hierarchical list of CPV (Common Procurement Vocabulary) codes used to classify procurement categories. Returns a tree structure with nested children.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-doffin-no-api-275f0b38/get_cpv_codes \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### get_location_codes

Get the hierarchical tree of Norwegian location and region codes used for filtering tenders by geography.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-doffin-no-api-275f0b38/get_location_codes \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### get_tender_detail

Get full details of a single procurement notice by its ID. Returns comprehensive information including buyer details, eForm structured sections, CPV codes, timeline, and award information.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `notice_id` | string | Yes | The reference ID of the notice (e.g. '2025-116485'). Obtainable from search_tenders results. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-doffin-no-api-275f0b38/get_tender_detail \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"notice_id":"<string>"}'
```

### search_tenders

Search for procurement notices (tenders) with various filters. Returns paginated results with facets for filtering.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `contract_natures` | string | No | Comma-separated contract nature filter values. |
| `cpv_ids` | string | No | Comma-separated CPV code IDs to filter by (e.g. '72000000,45000000'). |
| `limit` | integer | No | Number of results per page. |
| `locations` | string | No | Comma-separated location IDs to filter by (e.g. 'NO08,NO0A'). Use get_location_codes to discover valid IDs. |
| `page` | integer | No | Page number for pagination. |
| `pub_from` | string | No | Publication date lower bound in ISO 8601 format (e.g. '2023-01-01T00:00:00.000Z'). |
| `pub_to` | string | No | Publication date upper bound in ISO 8601 format (e.g. '2026-01-01T00:00:00.000Z'). |
| `query` | string | No | Search keyword to match against tender titles and descriptions. |
| `sort_by` | string | No | Sort order for results. |
| `statuses` | string | No | Comma-separated status filter values. |
| `types` | string | No | Comma-separated notice type filter values. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-doffin-no-api-275f0b38/search_tenders \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"contract_natures":"<string>","cpv_ids":"<string>","limit":"<integer>","locations":"<string>","page":"<integer>","pub_from":"<string>","pub_to":"<string>","query":"<string>","sort_by":"<string>","statuses":"<string>","types":"<string>"}'
```
