# DBA.dk — 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 and retrieve detailed listings from Denmark's largest marketplace DBA.dk, including product information, pricing, and seller details across general goods and car categories. Browse marketplace categories, find specific items, and access comprehensive data on both regular listings and automotive inventory.

**Category:** Marketplaces | **Website:** [dba.dk/](https://dba.dk/) | **Docs:** [parse.bot/marketplace/fa32147d-8ac9-468c-95d6-0fadfd5d9f7b/dba-dk-api](https://parse.bot/marketplace/fa32147d-8ac9-468c-95d6-0fadfd5d9f7b/dba-dk-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-dba-dk-api-fa32147d/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### browse_categories

Retrieve the top-level marketplace categories. Returns both recommerce categories (with numeric IDs usable in search_listings category filter) and mobility categories (cars, boats, motorcycles). Static data reflecting DBA.dk's current category structure.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-dba-dk-api-fa32147d/browse_categories \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### get_car_listing_detail

Retrieve full details for a single car listing by its numeric ID. Returns brand, model, specifications (mileage, fuel type, year, etc.), images, description, and pricing. The listing_id is the trailing numeric segment of the URL returned by search_car_listings.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `listing_id` | string | Yes | The unique numeric ID of the car listing (from search_car_listings results). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-dba-dk-api-fa32147d/get_car_listing_detail \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"listing_id":"<string>"}'
```

### get_listing_detail

Retrieve full details for a single recommerce listing by its numeric ID. Returns description, images, condition, price, seller info, and extracted specifications. The listing_id is the trailing numeric segment of the URL returned by search_listings.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `listing_id` | string | Yes | The unique numeric ID of the listing (from search_listings results). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-dba-dk-api-fa32147d/get_listing_detail \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"listing_id":"<string>"}'
```

### search_car_listings

Full-text search across DBA.dk's mobility/car section. Returns paginated car listing summaries. Optional make/model filters narrow results. Each result carries a listing_id for drill-down via get_car_listing_detail.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `make` | string | No | Car make filter parameter. |
| `model` | string | No | Car model filter parameter. |
| `page` | integer | No | Page number for pagination. |
| `query` | string | Yes | Search keyword (e.g. 'audi', 'bmw'). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-dba-dk-api-fa32147d/search_car_listings \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"make":"<string>","model":"<string>","page":"<integer>","query":"<string>"}'
```

### search_listings

Full-text search across DBA.dk's recommerce marketplace. Returns paginated listing summaries with price, condition, and image. Sorting and category filtering narrow results server-side. Each result carries a listing_id for drill-down via get_listing_detail.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `category` | string | No | Category ID to filter by (e.g. '0.93' for Elektronik og hvidevarer). IDs available from browse_categories endpoint. |
| `page` | integer | No | Page number for pagination. |
| `query` | string | Yes | Search keyword (e.g. 'iphone', 'sofa'). |
| `sort` | string | No | Sort order for results. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-dba-dk-api-fa32147d/search_listings \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"category":"<string>","page":"<integer>","query":"<string>","sort":"<string>"}'
```
