# DBA Ad Detail API Documentation

Retrieve one public ad from DBA (dba.dk): title, plain-text description, price in DKK, ad type, category path, attributes such as condition and type, all images with size, location (postal code, city, coordinates), dealer flag, sold flag, url and last update time (ISO 8601, UTC). Seller identity and contact data are never returned. An unknown or expired ad id returns a non-billable 404.

- **Documentation:** [https://scrappa.co/docs/dba-api/dba_listing](https://scrappa.co/docs/dba-api/dba_listing)
- **API group:** DBA API
- **Endpoint:** `GET https://scrappa.co/api/dba/listing`

## Authentication

Send your Scrappa API key in the `X-API-KEY` request header. Paid endpoints also support accountless x402 payments when called without an API key.

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | string | Yes | Numeric DBA ad id (digits only), e.g. 25859380. Take it from the id field of a search result. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/dba/listing?id=25859380"
```

## Example response

```json
{
    "success": true,
    "data": {
        "id": "25859380",
        "title": "Bysykkel med kurv og gir",
        "description": "Bysykkel, kj\u00f8pt i 2010, pent brukt",
        "price": {
            "amount": 700,
            "currency": "DKK"
        },
        "trade_type": "Til salg",
        "category": [
            "Sport og friluftsliv",
            "Cykling",
            "Cykler"
        ],
        "attributes": [
            {
                "key": "condition",
                "label": "Stand",
                "value": "Brugt - men i god stand"
            },
            {
                "key": "bikes_type",
                "label": "Cykeltype",
                "value": "Andre"
            },
            {
                "key": "gender",
                "label": "K\u00f8n",
                "value": "Kvinde"
            }
        ],
        "images": [
            {
                "url": "https://images.dbastatic.dk/dynamic/default/item/25859380/b0c8f0d1-417b-4a62-be70-134e0c33c31c",
                "width": 5712,
                "height": 4284
            },
            {
                "url": "https://images.dbastatic.dk/dynamic/default/item/25859380/b8aff898-ba23-471b-859b-d530c35e90c0",
                "width": 5712,
                "height": 4284
            },
            {
                "url": "https://images.dbastatic.dk/dynamic/default/item/25859380/8cba8606-d59a-47f7-a9aa-6e8bbb97e10c",
                "width": 5712,
                "height": 4284
            },
            {
                "url": "https://images.dbastatic.dk/dynamic/default/item/25859380/295258cf-8a65-472c-9306-295fb2865b0d",
                "width": 5712,
                "height": 4284
            },
            {
                "url": "https://images.dbastatic.dk/dynamic/default/item/25859380/91af07aa-6908-4f88-92df-a71c8d7b783d",
                "width": 5712,
                "height": 4284
            },
            {
                "url": "https://images.dbastatic.dk/dynamic/default/item/25859380/a54c84c6-425f-40ba-b8e6-556838036648",
                "width": 5712,
                "height": 4284
            }
        ],
        "location": {
            "postal_code": "1577",
            "city": "K\u00f8benhavn V",
            "country_code": "DK",
            "coordinates": {
                "lat": 55.66901439,
                "lng": 12.56800721
            }
        },
        "is_dealer": false,
        "url": "https://www.dba.dk/recommerce/forsale/item/25859380",
        "updated_at": "2026-10-15T19:23:45Z"
    },
    "meta": {
        "endpoint_family": "listing",
        "billable": true
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A query parameter is missing or invalid. This response is not billable. |
| 404 | Ad Not Found | The ad does not exist or has expired. This response is not billable. |
| 503 | Invalid Source Response | DBA answered with a shape that no longer matches the documented contract. This response is not billable. |
| 503 | Service Unavailable | The upstream service is temporarily unavailable. Please retry shortly. |

## More Scrappa resources

- [API documentation](https://scrappa.co/docs)
- [Full LLM-readable API reference](https://scrappa.co/llms-full.txt)
- [OpenAPI specification](https://scrappa.co/docs/api.json)
- [Pricing](https://scrappa.co/pricing)
