# DBA.dk Scraper - Lavpris Low-cost💲🔥🇩🇰🛒 (`delectable_incubator/dba-dk-scraper---lavpris-low-cost`) Actor

Scrape DBA.dk classified listings 🛒🔎 with a powerful marketplace scraper.

Extract ad titles, prices, specs, locations, posting dates, buy types, and listing URLs.

Ideal for resale analytics, price monitoring, and building structured marketplace datasets for insights 📊🚀🇩🇰

- **URL**: https://apify.com/delectable\_incubator/dba-dk-scraper---lavpris-low-cost.md
- **Developed by:** [Prime Scrape](https://apify.com/delectable_incubator) (community)
- **Categories:** E-commerce, Lead generation, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.00005 / actor start

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

<p align="center"> <img src="https://i.ibb.co/jkNS73wX/readme.png" alt="DBA.dk Ad Scraper" width="100%"> </p>

***

### DBA.dk Ad Scraper 🔎📊🛒

The DBA.dk Ad Scraper is a powerful and scalable Apify Actor designed to extract structured classified ad listings directly from dba.dk.

It enables marketplace monitoring, price tracking, resale analytics, lead generation, and structured dataset creation from one of Denmark’s largest classifieds platforms.

***

### 🎯 What This Scraper Does

Simply provide one or more DBA search URLs and the scraper handles everything automatically.

✅ Extracts structured ad listings from DBA.dk

✅ Supports multiple search URLs in one run

✅ Collects key listing data (title, price, specs, etc.)

✅ Captures location, posting date, and listing metadata

✅ Handles pagination automatically

✅ Stops at your defined max items limit

✅ Ideal for analytics, monitoring & resale research

✅ Ready for automation workflows

✅ Clean and structured output format

***

### 📊 Data Extracted

🛒 Listing Information

| Field          | Description                    |
| -------------- | ------------------------------ |
| 🆔 `adId`      | Unique ad identifier           |
| 📝 `title`     | Listing title                  |
| 💰 `price`     | Listing price                  |
| ⚙️ `specs`     | Key specs / attributes         |
| 📍 `location`  | Seller location                |
| 📅 `posted`    | Posting date                   |
| 🛒 `buyMode`   | Buy type (sale, auction, etc.) |
| 🏷️ `badge`    | Highlight (e.g., promoted)     |
| 🔗 `detailUrl` | Link to full listing           |
| 🖼️ `imageUrl` | Main listing image             |

***

### 🛠 How to Use

1️⃣ Configure Input

Provide DBA search URLs and max items:

```
{
  "urls": [
    "https://www.dba.dk/recommerce/forsale/search?q=Samsung",
    "https://www.dba.dk/recommerce/forsale/search?q=sofa"
  ],
  "maxitems": 50
}
```

2️⃣ Run the Actor

• Loads listings from each URL

• Automatically paginates results

• Extracts structured ad data

• Stops when the maxitems limit is reached

3️⃣ Export the Dataset

Download your results in multiple formats:

✅ JSON

✅ CSV

✅ Excel

✅ XML

✅ HTML

***

### ⚙️ Input Configuration

#### 📥 Input Example

```
{
  "urls": [
    "https://www.dba.dk/recommerce/forsale/search?q=Samsung",
    "https://www.dba.dk/recommerce/forsale/search?q=sofa"
  ],
  "maxitems": 50
}
```

#### Input Fields

| Field      | Type   | Description                          |
| ---------- | ------ | ------------------------------------ |
| `urls`     | array  | List of DBA search URLs              |
| `maxitems` | number | Maximum listings to retrieve per URL |

***

### 📤 Output Example

```
{
  "adId": "12345678",
  "title": "iPhone 13 Pro 128GB",
  "price": "4500 DKK",
  "specs": "128GB, Graphite, Good condition",
  "location": "København",
  "posted": "2 days ago",
  "buyMode": "Sale",
  "badge": "Top Ad",
  "imageUrl": "https://example.com/image.jpg",
  "detailUrl": "https://www.dba.dk/annonce/12345678"
}
```

***

### 📊 Output explanation

| Use Case                   | Description                                 |
| -------------------------- | ------------------------------------------- |
| 🛒 Marketplace Aggregation | Build your own classifieds platform         |
| 💰 Price Monitoring        | Track product prices over time              |
| 📊 Market Analysis         | Analyze second-hand market trends           |
| 📦 Resale Research         | Identify profitable arbitrage opportunities |
| 📈 Data Analytics          | Create structured datasets for insights     |

***

### 🌍 Why Use This Scraper?

🚀 Extract DBA listings at scale

⚡ Fully automated pagination

📊 Structured and analysis-ready data

🔍 Rich marketplace-specific attributes

📈 Ideal for resale, analytics & monitoring

***

### ⚠️ Disclaimer

This tool is an independent solution and is not affiliated with or endorsed by DBA.dk.

***

### 💸 Pricing

This scraper runs on a **pay per events subscription model**.

You only pay for **successful runs**.

💳 **Price:** $1.99 / 1000 results

***

### Related Actors

If you're interested in other scraping solutions (E-commerce, Jobs, Real Estate, Events, Social Media & more), explore more tools:

(Coming soon)

***

### 📬 Support

⭐⭐⭐⭐⭐ Leave a 5-star rating if you like this tool

***

### 🌍 PrimeScrape

Built for scalable web data extraction & automation

Contact for custom scraping solutions or enterprise requests via Apify or by email.

# Actor input Schema

## `urls` (type: `array`):

List of dba.dk search URLs to scrape. The scraper paginates (?page=N) until maxitems is reached.

Examples:
• https://www.dba.dk/recommerce/forsale/search?category=0.78
• https://www.dba.dk/recommerce/forsale/search?location=0.200001\&q=iphone
• https://www.dba.dk/recommerce/forsale/search?q=macbook

⚠️ URLs must be from dba.dk.

## `maxitems` (type: `integer`):

Maximum number of ad listings to collect per URL. The scraper paginates until this limit is reached or no more results are available.

## Actor input object example

```json
{
  "urls": [
    "https://www.dba.dk/recommerce/forsale/search?category=0.78",
    "https://www.dba.dk/recommerce/forsale/search?q=iphone"
  ],
  "maxitems": 80
}
```

# Actor output Schema

## `overview` (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 = {
    "urls": [
        "https://www.dba.dk/recommerce/forsale/search?category=0.78",
        "https://www.dba.dk/recommerce/forsale/search?q=iphone"
    ],
    "maxitems": 80
};

// Run the Actor and wait for it to finish
const run = await client.actor("delectable_incubator/dba-dk-scraper---lavpris-low-cost").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 = {
    "urls": [
        "https://www.dba.dk/recommerce/forsale/search?category=0.78",
        "https://www.dba.dk/recommerce/forsale/search?q=iphone",
    ],
    "maxitems": 80,
}

# Run the Actor and wait for it to finish
run = client.actor("delectable_incubator/dba-dk-scraper---lavpris-low-cost").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 '{
  "urls": [
    "https://www.dba.dk/recommerce/forsale/search?category=0.78",
    "https://www.dba.dk/recommerce/forsale/search?q=iphone"
  ],
  "maxitems": 80
}' |
apify call delectable_incubator/dba-dk-scraper---lavpris-low-cost --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,delectable_incubator/dba-dk-scraper---lavpris-low-cost"
        }
    }
}

```

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/xbiGGMUZaUKbau3vN/builds/saQdlfS2CCvrbHjSO/openapi.json
