# DBA Listings Scraper (`piotrv1001/dba-listings-scraper`) Actor

DBA Listings Scraper extracts DBA.dk marketplace items and used cars: titles, DKK prices, locations with coordinates, seller type, publish dates and photos, plus make, model, year, mileage, VIN and full descriptions. Goes past the 2,650-result cap — ideal for price research and deal hunting.

- **URL**: https://apify.com/piotrv1001/dba-listings-scraper.md
- **Developed by:** [FalconScrape](https://apify.com/piotrv1001) (community)
- **Categories:** E-commerce, Automation, Developer tools
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 listings

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

### 🛒 DBA Listings Scraper

**DBA Listings Scraper** is a fast **DBA scraper** that extracts marketplace and used-car listings from **[dba.dk](https://www.dba.dk/)** — Denmark's largest marketplace — with no login and no API key. Search by keyword or paste any dba.dk search URL and get clean JSON with **prices in DKK, locations with GPS coordinates, seller type, publish dates and photos**, plus **make, model, year, mileage, fuel, gearbox, registration number and VIN** for cars.

It goes past the site's 2,650-result limit per search: large searches are split automatically by area and price so you can scrape **every matching DBA listing**, not just the first 50 pages.

Run it on the **[Apify platform](https://apify.com/)** for scheduling, an API, webhooks and integrations (Google Sheets, Make, Zapier, Slack and more). The default input returns live listings in seconds.

### ✨ Features

- 🔍 **Keyword or URL search** — type a query like `cykel` or paste a dba.dk search URL with your filters and sorting already set.
- 🚗 **Cars too** — switch to the used-car category (Bil) for make, model, model year, mileage in km, fuel, transmission, registration number, VIN and dealer details.
- 📦 **Full depth** — DBA shows at most 2,650 results per search; this scraper splits big searches into smaller ones and removes duplicates, so you get them all.
- 🆕 **Newest first** — sort by publish date for scheduled runs that pick up new ads.
- 🎯 **Filters** — location, price range, condition (items), private or dealer sellers.
- 📝 **Optional full details** — the full description, item attributes (condition, brand, size) or car specifications and equipment, category path and address.
- 💸 **Pay only for results** — no monthly fee, duplicates are never charged.

### 💡 What can you do with DBA data?

- **Price research** — see what items and cars really sell for across Denmark.
- **Deal hunting & reselling** — catch underpriced listings minutes after they go live.
- **Car market analysis** — track stock, prices and mileage by make, model and dealer.
- **Market and competitor monitoring** — watch dealers' and shops' listings by region.
- **Datasets for analytics and AI** — structured, deduplicated listings with coordinates and timestamps.

### 🛠️ How to scrape DBA

1. Enter a **search query** (e.g. `sofa`) and pick a category: marketplace items or used cars. Or paste one or more **dba.dk search URLs** from your browser.
2. Optionally set a **location**, **price range**, **condition**, **seller type** and **sort order**.
3. Set **Max listings** (0 = everything that matches).
4. Turn on **Include full description and specs** if you need the full ad text.
5. Run it and download your data as JSON, CSV, Excel or HTML, or read it through the API.

### 📥 Input

| Field | Description |
|---|---|
| `query` | Keyword to search, e.g. `cykel`. |
| `searchUrls` | dba.dk search URLs. All filters and sorting in the URL are kept. |
| `vertical` | `goods` (marketplace items) or `cars` (used cars). Search URLs set this automatically. |
| `location` | A region or town name, e.g. "København og omegn", "Fyn" or "Aarhus". |
| `priceFrom` / `priceTo` | Price range in DKK. |
| `condition` | Items only: `new`, `like_new`, `good`, `fair`, `needs_repair`. |
| `sellerType` | `all`, `private` or `dealer`. |
| `sort` | `RELEVANCE`, `PUBLISHED_DESC` (newest), `PRICE_ASC`, `PRICE_DESC`, `MILEAGE_ASC`, `YEAR_DESC` (cars). |
| `maxItems` | Maximum listings to save. Default `100`; `0` = no limit. |
| `includeDetails` | Also open each ad for the full description and specs. Default `false`. |

Example — newest items in one area:

```json
{
    "query": "sofa",
    "location": "Fyn",
    "sort": "PUBLISHED_DESC",
    "maxItems": 200
}
```

Example — every dealer car of one make, from a pasted search URL:

```json
{
    "searchUrls": [
        {
            "url": "https://www.dba.dk/mobility/search/car?registration_class=1&variant=0.818"
        }
    ],
    "sellerType": "dealer",
    "maxItems": 0
}
```

### 📤 Output

One dataset item per listing. Example (marketplace item):

```json
{
    "id": "23433355",
    "url": "https://www.dba.dk/recommerce/forsale/item/23433355",
    "site": "DBA.dk",
    "vertical": "goods",
    "title": "El-cykel Centurion Dark Image Grøn",
    "price": 12000,
    "currency": "DKK",
    "location": "Brønshøj",
    "latitude": 55.70964,
    "longitude": 12.48463,
    "publishedAt": "2026-10-04T21:50:03.000Z",
    "sellerType": "dealer",
    "sellerName": "Bellahøj Cykler",
    "tradeType": "Til salg",
    "imageUrl": "https://images.dbastatic.dk/dynamic/default/item/23433355/27027d7e-78e0-4602-8bdc-90b750ae5b1f",
    "imageUrls": [
        "https://images.dbastatic.dk/dynamic/default/item/23433355/27027d7e-78e0-4602-8bdc-90b750ae5b1f",
        "https://images.dbastatic.dk/dynamic/default/item/23433355/f47b1a35-85f8-4756-81de-e47cd16ec9ee"
    ]
}
```

Example (used car):

```json
{
    "id": "25544440",
    "url": "https://www.dba.dk/mobility/item/25544440",
    "site": "DBA.dk",
    "vertical": "cars",
    "title": "Skoda Citigo",
    "price": 46990,
    "currency": "DKK",
    "location": "Herlev",
    "latitude": 55.71627,
    "longitude": 12.42856,
    "publishedAt": "2026-10-05T10:52:30.000Z",
    "sellerType": "dealer",
    "sellerName": "Autohandelsselskabet Aps",
    "tradeType": null,
    "imageUrl": "https://images.dbastatic.dk/dynamic/default/item/25544440/6ee551ef-166f-4361-bb64-33c4ac17be8b",
    "imageUrls": [
        "https://images.dbastatic.dk/dynamic/default/item/25544440/6ee551ef-166f-4361-bb64-33c4ac17be8b",
        "https://images.dbastatic.dk/dynamic/default/item/25544440/849683f7-aa9c-4e68-b372-4ec586bc217e"
    ],
    "make": "Skoda",
    "model": "Citigo",
    "series": "Citigo-Serie",
    "modelSpecification": "1,0 60 Ambition GreenTec  5D",
    "year": 2016,
    "mileageKm": 145000,
    "mileage": 145000,
    "mileageUnit": "KILOMETER",
    "fuel": "Benzin",
    "transmission": "Manuelt",
    "regno": "EK71986",
    "vin": "TMBZZZAAZGD604690",
    "registrationClass": "Personbil",
    "dealerSegment": "Forhandler",
    "dealerOrgId": "5740620"
}
```

With **Include full description and specs**, each item also has:

```json
{
    "description": "Køre og starter perfekt\nAlt virker\nEr ny synet og der er helt nye vinter dæk på",
    "attributes": {
        "Mærke": "Chevrolet",
        "Model": "Aveo",
        "Modelår": "2008",
        "Karosseri": "Hatchback 5-dørs",
        "Drivmiddel": "Benzin",
        "Effekt": "84 Hk"
    },
    "equipment": [],
    "category": null,
    "address": null
}
```

#### Data fields

| Field | Description |
|---|---|
| `id` | DBA ad id |
| `url` | Link to the ad |
| `title` | Ad title |
| `price` / `currency` | Asking price and currency (DKK) |
| `location` | Area shown on the ad |
| `latitude` / `longitude` | Approximate coordinates |
| `publishedAt` | When the ad was published (ISO 8601) |
| `sellerType` | `private` or `dealer` |
| `sellerName` | Shop or dealer name (businesses only) |
| `tradeType` | Ad type, e.g. for sale or giveaway (items) |
| `imageUrl` / `imageUrls` | Main photo and all photos |
| `make` / `model` / `series` / `modelSpecification` | Car make, model and variant |
| `year` | Model year |
| `mileageKm` | Mileage in km |
| `mileage` / `mileageUnit` | Mileage as published |
| `fuel` / `transmission` | Fuel type and gearbox |
| `regno` | Registration number (when published) |
| `vin` | Chassis number / VIN (when published) |
| `dealerSegment` / `dealerOrgId` | Seller segment and dealer id |
| `description*` | Full ad text |
| `attributes*` | Item attributes or car specifications |
| `equipment*` | Car equipment list |
| `category*` | Category path (items) |
| `address*` | Postcode and place (items) |

\* Only with **Include full description and specs**. Seller names and contact details of private people are not collected.

### 💰 How much does it cost to scrape DBA?

Pay per result — you are only charged for listings saved to your dataset:

| Event | Price |
|---|---|
| Actor start | $0.00005 per run |
| Listing | $0.001 per listing ($1 per 1,000) |
| Listing details (only with **Include full description and specs**) | $0.002 per listing ($2 per 1,000) |

So 1,000 listings cost about **$1**, or **$3** with full details. Duplicates found in overlapping searches are skipped and never charged, and the run stops at the maximum charge you set.

### ⚙️ Tips

- **Newest-first monitoring** — set `sort` to `PUBLISHED_DESC` with a small `maxItems` and schedule the run hourly or daily.
- **Everything in a category** — paste a dba.dk category search URL and set `maxItems` to `0`; large searches are split automatically.
- **Keep it cheap** — leave details off unless you need the full ad text.
- **Location names** — use the names DBA shows in its location filter, e.g. "København og omegn", "Fyn" or "Aarhus".

### ❓ FAQ

**Can I get more than 2,650 results?**
Yes. DBA stops at 50 pages per search, so the scraper splits large searches by area and price range and merges the results without duplicates.

**Is it legal to scrape DBA?**
The Actor only collects publicly visible ad data and no personal contact details. You are responsible for how you use the data and for complying with DBA's terms, copyright and database rights, and data-protection law such as GDPR.

**Why are some fields empty?**
Not every ad has every field, e.g. dealers' names only exist for business sellers and VINs only when the seller published them.

### 🛟 Support

Found a bug or need another field? Open an issue on the Actor's **Issues** tab.

# Actor input Schema

## `query` (type: `string`):

Keyword to search on dba.dk, e.g. "cykel" or "sofa". Leave empty when you paste search URLs below, or with the Used cars category to list all cars.

## `searchUrls` (type: `array`):

Optional. Paste dba.dk search result URLs straight from your browser, with any filters and sorting applied, e.g. https://www.dba.dk/recommerce/forsale/search?q=sofa\&location=0.200001 (items) or https://www.dba.dk/mobility/search/car?registration_class=1\&variant=0.818 (cars). Every filter in the URL is kept.

## `vertical` (type: `string`):

What to search when using the query field: marketplace items or used cars. Search URLs choose this automatically.

## `location` (type: `string`):

Optional region or town name, e.g. "København og omegn", "Fyn" or "Aarhus".

## `priceFrom` (type: `integer`):

Only listings priced at or above this amount.

## `priceTo` (type: `integer`):

Only listings priced at or below this amount.

## `condition` (type: `array`):

Marketplace items only. Keep listings in any of the selected conditions.

## `sellerType` (type: `string`):

Private sellers, dealers/businesses, or both.

## `sort` (type: `string`):

Result order. "Newest first" is ideal for scheduled runs that pick up new listings. Mileage and year sorting apply to cars only.

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

Maximum number of listings to save across all searches. Set 0 for no limit: large searches are split automatically so you get every matching listing, not just the first 2,650 that dba.dk shows.

## `includeDetails` (type: `boolean`):

Open each listing to add the full description, item attributes (condition, brand, size) or car specifications and equipment, category path and address. Charged as an extra event per listing.

## `proxyConfiguration` (type: `object`):

Proxy settings. The default Apify proxy works well for this site.

## Actor input object example

```json
{
  "query": "cykel",
  "vertical": "goods",
  "sellerType": "all",
  "sort": "RELEVANCE",
  "maxItems": 100,
  "includeDetails": false,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `results` (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 = {
    "query": "cykel",
    "maxItems": 100,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("piotrv1001/dba-listings-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 = {
    "query": "cykel",
    "maxItems": 100,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("piotrv1001/dba-listings-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 '{
  "query": "cykel",
  "maxItems": 100,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call piotrv1001/dba-listings-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,piotrv1001/dba-listings-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/oOvlcrp70su2KJsQO/builds/br5RVuX5aAwHKqCg8/openapi.json
