# Blocket Listings Scraper (`piotrv1001/blocket-listings-scraper`) Actor

Blocket Listings Scraper extracts Blocket.se marketplace items and used cars: titles, SEK prices, locations with coordinates, seller type, publish dates and photos, plus make, model, year, mileage in km, regno, VIN and full descriptions. Goes past the 2,650-result cap — ideal for price research.

- **URL**: https://apify.com/piotrv1001/blocket-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

### 🛒 Blocket Listings Scraper

**Blocket Listings Scraper** is a fast **Blocket scraper** that extracts marketplace and used-car listings from **[blocket.se](https://www.blocket.se/)** — Sweden's largest marketplace — with no login and no API key. Search by keyword or paste any blocket.se search URL and get clean JSON with **prices in SEK, 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 Blocket 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 blocket.se search URL with your filters and sorting already set.
- 🚗 **Cars too** — switch to the used-car category (Bilar) for make, model, model year, mileage (Swedish *mil* converted to km), fuel, transmission, registration number, VIN and dealer details.
- 📦 **Full depth** — Blocket 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 Blocket data?

- **Price research** — see what items and cars really sell for across Sweden.
- **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 Blocket

1. Enter a **search query** (e.g. `soffa`) and pick a category: marketplace items or used cars. Or paste one or more **blocket.se 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` | blocket.se 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 county (län) or municipality name, e.g. "Stockholm", "Skåne" or "Göteborg". |
| `priceFrom` / `priceTo` | Price range in SEK. |
| `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": "soffa",
    "location": "Stockholm",
    "sort": "PUBLISHED_DESC",
    "maxItems": 200
}
```

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

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

### 📤 Output

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

```json
{
    "id": "26965922",
    "url": "https://www.blocket.se/recommerce/forsale/item/26965922",
    "site": "Blocket.se",
    "vertical": "goods",
    "title": "Cykel, mintgrön",
    "price": 1000,
    "currency": "SEK",
    "location": "Falköping",
    "latitude": 58.174,
    "longitude": 13.54603,
    "publishedAt": "2026-10-05T10:26:51.000Z",
    "sellerType": "private",
    "sellerName": null,
    "tradeType": "Säljes",
    "imageUrl": "https://images.blocketcdn.se/dynamic/default/item/26965922/6cf8b11b-e4d8-4fc6-b506-5146f2aa6c68",
    "imageUrls": [
        "https://images.blocketcdn.se/dynamic/default/item/26965922/6cf8b11b-e4d8-4fc6-b506-5146f2aa6c68"
    ]
}
```

Example (used car):

```json
{
    "id": "27156840",
    "url": "https://www.blocket.se/mobility/item/27156840",
    "site": "Blocket.se",
    "vertical": "cars",
    "title": "Citroen Berlingo",
    "price": 29900,
    "currency": "SEK",
    "location": "Stenstorp",
    "latitude": 58.27031,
    "longitude": 13.71807,
    "publishedAt": "2026-10-05T10:53:35.000Z",
    "sellerType": "dealer",
    "sellerName": "Willes bil & maskin",
    "tradeType": null,
    "imageUrl": "https://images.blocketcdn.se/dynamic/default/item/27156840/17b1df02-1dba-4b66-9492-ea880abd9c00",
    "imageUrls": [
        "https://images.blocketcdn.se/dynamic/default/item/27156840/17b1df02-1dba-4b66-9492-ea880abd9c00",
        "https://images.blocketcdn.se/dynamic/default/item/27156840/672adf6c-ac6a-4207-b152-1b7925a8ba73"
    ],
    "make": "Citroen",
    "model": "Berlingo",
    "series": "Berlingo-Serie",
    "modelSpecification": "1.6 hdi",
    "year": 2010,
    "mileageKm": 269000,
    "mileage": 26900,
    "mileageUnit": "SCANDINAVIAN_MILE",
    "fuel": "Diesel",
    "transmission": "Manuell",
    "regno": "OOA699",
    "vin": "VF77D9HSC9J092343",
    "registrationClass": "Transportbil",
    "dealerSegment": "Företag",
    "dealerOrgId": "4007347"
}
```

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

```json
{
    "description": "Nu är det dags för vår fina Mitsubishi Outlander PHEV att hitta ett nytt hem. Vi har trivts väldigt bra med den – en bekväm och rymlig bil som är trevlig att köra, både till vardags och på längre resor.\nDu är varmt välko…",
    "attributes": {
        "Märke": "Mitsubishi",
        "Modell": "Outlander",
        "Modellår": "2018",
        "Biltyp": "SUV",
        "Drivmedel": "Plug-in Bensin",
        "Effekt": "203 Hk"
    },
    "equipment": [
        "Multifunktionsratt",
        "ABS",
        "Sidoairbags",
        "Nyckelfri start"
    ],
    "category": null,
    "address": null
}
```

#### Data fields

| Field | Description |
|---|---|
| `id` | Blocket ad id |
| `url` | Link to the ad |
| `title` | Ad title |
| `price` / `currency` | Asking price and currency (SEK) |
| `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 (converted from Swedish mil) |
| `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 Blocket?

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 blocket.se 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 Blocket shows in its location filter, e.g. "Stockholm", "Skåne" or "Göteborg".

### ❓ FAQ

**Can I get more than 2,650 results?**
Yes. Blocket 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 Blocket?**
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 Blocket'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 blocket.se, e.g. "cykel" or "soffa". Leave empty when you paste search URLs below, or with the Used cars category to list all cars.

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

Optional. Paste blocket.se search result URLs straight from your browser, with any filters and sorting applied, e.g. https://www.blocket.se/recommerce/forsale/search?q=soffa\&location=0.300001 (items) or https://www.blocket.se/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 county (län) or municipality name, e.g. "Stockholm", "Skåne" or "Göteborg".

## `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 blocket.se 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/blocket-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/blocket-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/blocket-listings-scraper --silent --output-dataset

```

## MCP server setup

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