# Blocket.se Scraper - Swedish Classifieds Data (`evpp/blocket-se`) Actor

Extract Blocket.se classifieds as clean JSON: prices, locations, photos, vehicle and marketplace attributes, seller details, timestamps, and listing URLs.

- **URL**: https://apify.com/evpp/blocket-se.md
- **Developed by:** [Evp Labs](https://apify.com/evpp) (community)
- **Categories:** E-commerce, Real estate, Other
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.40 / 1,000 results

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

Learn more: https://docs.apify.com/actors/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.se Scraper - Swedish Classifieds Data

Scrape listings from **[Blocket.se](https://www.blocket.se)**, Sweden's largest classifieds marketplace (part of the Schibsted/FINN network), covering **~1 million active ads** across the Torget marketplace and the Mobility verticals: cars, motorcycles, boats, caravans, electronics, furniture, sports gear, and more.

The Actor reads Blocket's server-rendered search pages (embedded JSON-LD `ItemList` plus the rendered ad cards), so it is **fast, cheap, and needs no browser and no proxy** for typical workloads. Results land in a clean flat dataset ready for resale tooling, price watchers, and market analytics.

### What you get

| Field | Description |
|---|---|
| `id` | Blocket listing ID |
| `title` | Ad title |
| `url` | Canonical ad URL |
| `price` / `priceCurrency` | Listed price in SEK |
| `priceExVat` | Price excluding VAT (dealer ads) |
| `category` / `categoryPath` | Section the item was scraped under |
| `location` | City/district shown on the card |
| `publishedAt` / `publishedText` | Approx. timestamp + raw Swedish age text ("2 dagar") |
| `imageUrl` | Main image on `images.blocketcdn.se` |
| `sellerType` | `private` or `business` |
| `sellerName` | Dealer/company name (business ads) |
| `shipping` | "Kan skickas" flag |
| `paidPlacement` | Promoted "Betald placering" flag |
| `condition` | `new` or `used` |
| `description` | Subtitle / short description (trimmed to ~400 chars) |
| `parameters` | Named attributes: `brand`, `model`, `fuel`, `transmission`, `color`, `size`, `sellerExtras`, `attributes` |
| `param_year`, `param_mileage_mil`, `param_mileage_km`, `param_range_km`, `param_power_hp`, `param_engine_cc`, `param_storage_gb` | Flat numeric attributes for filtering |
| `param_power_kw` | integer | Engine power in kilowatts when listed |

### Example output (cars)

```json
{
    "id": 28504157,
    "title": "Volvo V60 Cross Country",
    "url": "https://www.blocket.se/mobility/item/28504157",
    "price": 229000,
    "priceCurrency": "SEK",
    "category": "Bilar",
    "categoryPath": "Blocket Mobility > Bilar",
    "location": "Borås",
    "publishedAt": "2026-01-15T10:58:00.000Z",
    "publishedText": "1 min",
    "imageUrl": "https://images.blocketcdn.se/dynamic/default/item/28504157/5f571690-a17b-4c77-9362-0371fbf590b0",
    "sellerType": "business",
    "sellerName": "Alters bil",
    "paidPlacement": false,
    "condition": "used",
    "description": "D4 AWD Geartronic Advanced SE II (en mycket fin bil)",
    "parameters": { "brand": "Volvo", "model": "V60 Cross Country", "fuel": "Diesel", "transmission": "Automatisk" },
    "param_year": 2020,
    "param_mileage_mil": 21000,
    "param_mileage_km": 210000
}
```

### Quick start input

Target source: `blocket.se`. Paste this JSON into the Actor input tab for a fast first run, or use it as the body of the Apify API run call:

```json
{
    "category": "bilar",
    "searchQuery": "",
    "region": "",
    "minPrice": 0,
    "maxPrice": 0,
    "sort": "PUBLISHED_DESC",
    "maxItems": 10
}
```

The default input is intentionally small. Raise `maxItems` only after validating the first listing records.

### Input

| Field | Type | Default | Notes |
|---|---|---|---|
| `category` | string enum | `bilar` | `all`, `bilar`, `mc`, `batar`, `husbilar`, `elektronik`, `mobler`, `fritid`, `sport`, `klader`, `barn`, `bygg`, `djur`, `konst`, `fordonstillbehor`, `affarsverksamhet` |
| `searchQuery` | string | `""` | Free-text `q` search (volvo, ikea, iphone...) |
| `region` | string | `""` | County name (`stockholm`, `skane`, `vastra gotaland`), big city (`goteborg`, `malmo`), län code (`14`), or Blocket location id (`0.300014`) |
| `minPrice` / `maxPrice` | integer | `0` | SEK bounds applied server-side |
| `sort` | string enum | `PUBLISHED_DESC` | `PUBLISHED_DESC`, `RELEVANCE`, `PRICE_ASC`, `PRICE_DESC`, `PUBLISHED_ASC` |
| `maxItems` | integer | `15` | Stops when reached (~50 ads per page, max 50 pages) |
| `proxyConfiguration` | object | off | Usually not needed; enable if you hit HTTP 403 |

#### Category notes

- **Torget (`all` + goods categories)** maps to `blocket.se/recommerce/forsale/search` with Blocket's numeric category filters.
- **Mobility (`bilar`, `mc`, `batar`, `husbilar`)** maps to `blocket.se/mobility/search/<vertical>` and returns richer specs (year, mileage, fuel, transmission, dealer name).
- **Rental housing (bostad)** is no longer on Blocket - those listings moved to Qasa (`qasa.com`) and are intentionally not in the enum.

### Use cases

- **Resale arbitrage** - watch `fritid`/`elektronik`/`mobler` for underpriced items with `sort=PUBLISHED_DESC`.
- **Car dealer intel** - track competitor pricing per `region`, monitor `param_mileage_km`/`param_year` distributions.
- **Price monitoring** - scheduled runs on `searchQuery` (e.g. `iphone 15`) + `maxPrice` ceiling; diff `publishedAt` for new ads.
- **Dealer detection** - `sellerType` + `sellerName` exposes businesses reposting inside private categories.
- **Market research** - `parameters.attributes` chips reveal storage/size/color mix of used electronics supply.
- **Classifieds aggregation** - flat JSON items drop straight into a cross-marketplace feed.

### Output

One flat JSON item is produced per listing. Download the dataset as JSON, CSV, Excel, or HTML, or consume it through the Apify API.

#### Real sample output (latest live dataset)

```json
{
    "id": 28751706,
    "title": "Dacia Sandero Stepway",
    "url": "https://www.blocket.se/mobility/item/28751706",
    "price": 164500,
    "priceCurrency": "SEK",
    "category": "Bilar",
    "categoryPath": "Blocket Mobility > Bilar",
    "location": "Ludvika",
    "publishedAt": "2026-12-04T12:55:45.136Z",
    "publishedText": "1 min",
    "imageUrl": "https://images.blocketcdn.se/dynamic/default/item/28751706/42357a29-712b-404b-82f9-0a6041b5ecc3",
    "sellerType": "business",
    "sellerName": "Rolf Ericson Bil i Ludvika",
    "paidPlacement": false,
    "condition": "used",
    "description": "TCe 90 Stepway Expression",
    "parameters": {
        "brand": "Dacia",
        "model": "Sandero Stepway",
        "fuel": "Bensin",
        "transmission": "Manuell"
    },
    "param_year": 2023,
    "param_mileage_mil": 309,
    "param_mileage_km": 3090
}
```

### Use with AI agents (MCP), n8n, Make, and Python

- **AI agents / MCP:** add `https://mcp.apify.com/?tools=evpp/blocket-se` to your MCP client, then ask the agent to scrape Blocket.se data or export the latest dataset.
- **n8n / Make / Zapier:** run Actor `evpp/blocket-se` with the quick-start input, then map dataset items into Google Sheets, a CRM, a webhook, or a monitoring workflow.
- **Python:** install the client with `pip install apify-client` and run:

```python
import json
from apify_client import ApifyClient

client = ApifyClient()
run_input = json.loads('''{"category":"bilar","searchQuery":"","region":"","minPrice":0,"maxPrice":0,"sort":"PUBLISHED_DESC","maxItems":10}''')
run = client.actor("evpp/blocket-se").call(run_input=run_input)
items = list(client.dataset(run["defaultDatasetId"]).iterate_items())
print(items[0])
```

The same dataset is available as JSON, CSV, Excel, XML, RSS, and HTML through the Apify API.

### Cost and speed

- \~40-50 ads per search page; `maxItems=15` finishes in **under 15 seconds** on a 256 MB run.
- Roughly **~1,500 listings per minute** at concurrency 8 with zero proxy cost.
- Suggested PPE pricing: **~$2.00 per 1,000 results** (comparable marketplace scrapers).

### FAQ

**Does it need a proxy?** Not in testing - search pages are public HTML 200. Blocket may rate-limit aggressive schedules; enable `proxyConfiguration` (datacenter is enough) if you see 403s.

**How fresh is the data?** Cards show relative age ("2 dagar", "11 min"); `publishedAt` is computed from it at scrape time.

**Can I filter by city instead of county?** The `region` filter is county-level (Blocket's own filter granularity). Card `location` gives the city/district for post-filtering.

**Why are some fields missing on some items?** Private ads lack `sellerName`; non-vehicle items lack `param_year`/`param_mileage_*`; `priceExVat` only appears on business ads. Empty values are omitted, not nulled.

**Pagination limit?** Blocket serves up to 50 pages per search - that caps any single query at roughly 2,000-2,500 listings. Narrow with `searchQuery`, `region`, price bounds, or category for full coverage.

**Is this legal?** The Actor reads public, unauthenticated listing pages. Check Blocket's terms of service for your use case and keep request rates reasonable.

# Actor input Schema

## `category` (type: `string`):

Marketplace vertical to scrape. Recommerce categories (mobler, elektronik, fritid, sport, klader, barn, bygg, djur, fordonstillbehor, konst, affarsverksamhet, all) map to Blocket Torget; mobility categories (bilar, mc, batar, husbilar) map to Blocket Mobility. Note: rental housing (bostad) is no longer listed on Blocket - it moved to Qasa.

## `searchQuery` (type: `string`):

Optional keyword search passed to Blocket's `q` parameter (e.g. volvo, ikea, iphone). Leave empty for the newest listings in the chosen category.

## `region` (type: `string`):

Optional Swedish county (lan) filter. Accepts a county name (stockholm, skane, vastra gotaland...), a large city (goteborg, malmo, uppsala...), a two-digit lan code (01-25), or a full Blocket location id (0.300014). Leave empty for all of Sweden.

## `minPrice` (type: `integer`):

Optional lower price bound in Swedish kronor, applied server-side (price_from). 0 or empty = no minimum.

## `maxPrice` (type: `integer`):

Optional upper price bound in Swedish kronor, applied server-side (price_to). 0 or empty = no maximum.

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

Blocket sort order. PUBLISHED_DESC (newest first) is best for price-watch monitoring; RELEVANCE matches Blocket's default ranking.

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

Maximum number of listings to push to the dataset. The Actor stops as soon as this many items are collected (up to ~2,500 reachable via pagination).

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

Proxy settings for outbound requests. Blocket.se generally does not block datacenter IPs for search pages, but enable Apify proxies if you see HTTP 403 errors (especially from datacenter runs or high-volume schedules).

## Actor input object example

```json
{
  "category": "bilar",
  "searchQuery": "volvo",
  "region": "stockholm",
  "minPrice": 0,
  "maxPrice": 0,
  "sort": "PUBLISHED_DESC",
  "maxItems": 15,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `dataset` (type: `string`):

Dataset containing all scraped Blocket.se listings

# 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 = {
    "searchQuery": "",
    "region": "",
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("evpp/blocket-se").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 = {
    "searchQuery": "",
    "region": "",
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("evpp/blocket-se").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 '{
  "searchQuery": "",
  "region": "",
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call evpp/blocket-se --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,evpp/blocket-se"
        }
    }
}
```

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/PFgELlS1VBQ8SPfcn/builds/JbFjB0sHgzIkdo9cI/openapi.json
