# Blocket Scraper - Swedish Car Listings & Classifieds (`studio-amba/blocket-scraper`) Actor

Scrape car listings from Blocket.se, Sweden's largest classifieds site. Extract prices, specs, mileage, fuel type, location. No login required.

- **URL**: https://apify.com/studio-amba/blocket-scraper.md
- **Developed by:** [Studio Amba](https://apify.com/studio-amba) (community)
- **Categories:** E-commerce
- **Features:** Limited permissions
- **Stats:** 4 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 result scrapeds

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 Scraper

Scrape car listings from [Blocket.se](https://www.blocket.se), Sweden's largest and most popular classifieds marketplace, and export structured vehicle data to JSON, CSV, Excel, or any format you need.

### Why use Blocket Scraper?

- **Sweden's #1 classifieds site** -- Blocket dominates the Swedish used car market with millions of monthly visitors. Part of the Schibsted media group.
- **Structured vehicle data** -- Get make, model, year, price, mileage, fuel type, transmission, location, and seller info in a clean, consistent format.
- **No login or cookies required** -- Works without any Blocket account. No credentials needed.
- **Swedish mileage conversion** -- Automatically converts Swedish "mil" (1 mil = 10 km) to kilometers for easy international comparison.
- **Filter by specs** -- Narrow results by make, model, year range, price range, fuel type, and sorting preferences.
- **Handles anti-bot measures** -- Uses Playwright with fingerprint spoofing and Swedish residential proxies for reliable access.
- **Scales to thousands** -- Scrape 50 or 10,000 listings. Built-in pagination handles multi-page result sets.
- **Export anywhere** -- Download results as JSON, CSV, Excel, XML, or push to Google Sheets, webhooks, or any integration.

### How to scrape Blocket data

1. **Go to the Blocket Scraper page** on Apify Store and click "Try for free."
2. **Enter your search query** -- type a car make, model, or general keyword like "volvo xc60" or "tesla."
3. **Set optional filters** -- narrow results by year range, price range, fuel type (Bensin, Diesel, El, Hybrid), or sort order.
4. **Set the maximum results** -- the default is 50 listings. Increase to get more data or decrease for a quick sample.
5. **Click Start** -- the scraper opens Blocket.se, searches for your criteria, and extracts listing data page by page.
6. **Download your data** -- when the run finishes, go to the Dataset tab and export to JSON, CSV, Excel, or connect via API.

### Input parameters

| Parameter | Type | Default | Description |
|-----------|------|---------|-------------|
| `searchQuery` | string | `volkswagen` | Search term for car listings |
| `make` | string | | Car manufacturer filter (Volvo, BMW, Audi, etc.) |
| `model` | string | | Specific model filter (XC60, Golf, Model 3, etc.) |
| `yearFrom` | integer | | Minimum model year |
| `yearTo` | integer | | Maximum model year |
| `priceFrom` | integer | | Minimum price in SEK |
| `priceTo` | integer | | Maximum price in SEK |
| `fuelType` | string | | Bensin, Diesel, El, Hybrid, Laddhybrid, or Gas |
| `sort` | string | `RELEVANCE` | Sort order (price, year, mileage, date) |
| `maxResults` | integer | `100` | Maximum number of listings to scrape |
| `proxyConfiguration` | object | SE residential | Proxy settings (Swedish residential recommended) |

### Output example

Each listing is returned as a JSON object:

```json
{
    "listingTitle": "Volkswagen Golf 2.0 TDI DSG Highline",
    "make": "Volkswagen",
    "model": "Golf",
    "year": 2021,
    "price": 229900,
    "currency": "SEK",
    "mileage": 45000,
    "fuelType": "Diesel",
    "transmission": "Automat",
    "engineSize": "",
    "location": "Stockholm",
    "sellerType": "dealer",
    "imageUrl": "https://images.blocket.se/...",
    "url": "https://www.blocket.se/mobility/item/12345678",
    "scrapedAt": "2026-06-09T12:00:00.000Z"
}
```

### Data fields

| Field | Type | Description |
|-------|------|-------------|
| `listingTitle` | string | Full listing title from Blocket |
| `make` | string | Car manufacturer (Volvo, BMW, Toyota, etc.) |
| `model` | string | Car model name (XC60, 3 Series, Corolla, etc.) |
| `year` | integer | Model year (null if not available) |
| `price` | number | Price in Swedish kronor (null if not listed) |
| `currency` | string | Always "SEK" |
| `mileage` | number | Odometer in km, converted from Swedish mil (null if missing) |
| `fuelType` | string | Bensin (petrol), Diesel, El (electric), Hybrid, Laddhybrid |
| `transmission` | string | Automat (automatic) or Manuell (manual) |
| `engineSize` | string | Engine displacement or power if available |
| `location` | string | City or region in Sweden |
| `sellerType` | string | "private" or "dealer" |
| `imageUrl` | string | Main listing photo URL (null if no image) |
| `url` | string | Direct link to the listing on Blocket.se |
| `scrapedAt` | string | ISO 8601 timestamp of when the data was collected |

### Cost estimate

Running this scraper on the Apify platform costs approximately:

- **50 listings**: ~$0.10-0.20 (1 page of results)
- **500 listings**: ~$0.50-1.00 (multiple pages, ~2-3 min)
- **5,000 listings**: ~$3-5 (many pages, ~15-20 min)

Costs depend on proxy usage (residential proxies are more expensive but more reliable for Blocket). The scraper uses Playwright with a real browser, which consumes more compute than HTTP-only scrapers but handles Blocket's anti-bot protections.

### Tips for best results

- **Use Swedish terms** -- Blocket is a Swedish site. Search queries like "bensin" (petrol), "automat" (automatic), and make names work best.
- **Start small** -- test with 20-50 results first to verify the output matches your needs before running large scrapes.
- **Use make/model filters** -- the `make` and `model` input fields use Blocket's native filtering, which is more precise than free-text search.
- **Residential proxies recommended** -- Blocket belongs to Schibsted (same group as Finn.no) and may block datacenter IPs. Swedish residential proxies give the best success rate.
- **Mileage is in km** -- the scraper automatically converts Swedish "mil" (10 km units) to standard kilometers.

### FAQ

**What categories does this scraper cover?**
Currently focused on cars (bilar) in the vehicles (fordon) section. Blocket also has general classifieds, real estate, and more, but this actor is optimized for car listings.

**Does it work without a Blocket account?**
Yes. No login, cookies, or account needed. The scraper accesses publicly available listing data.

**Why are some fields empty?**
Not all sellers fill in every detail. Fields like `engineSize`, `transmission`, or `mileage` may be null if the seller omitted them from the listing.

**Can I scrape specific Swedish regions?**
The current version searches "hela Sverige" (all of Sweden). Region filtering may be added in a future update. You can filter results by the `location` field after scraping.

**How often does Blocket data change?**
Blocket is very active. New listings appear constantly and prices change frequently. For market monitoring, consider scheduling daily or weekly runs.

**What is a Swedish "mil"?**
One Swedish mil equals 10 kilometers. This is the standard unit for car odometers in Sweden. The scraper converts mil to km automatically.

### About Blocket

[Blocket.se](https://www.blocket.se) is Sweden's largest online classifieds platform, founded in 1996. It is part of the Schibsted group, which also operates Finn.no (Norway), Tori.fi (Finland), and other Nordic marketplaces. Blocket dominates the Swedish used car market and is one of the most visited websites in Sweden, with millions of active listings across vehicles, real estate, electronics, and more. The vehicle section alone has tens of thousands of active car listings at any given time.

# Actor input Schema

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

Search term for car listings (e.g. 'volkswagen', 'volvo xc60', 'Tesla Model 3'). Leave empty to use default search.

## `make` (type: `string`):

Car manufacturer to filter by (e.g. 'Volvo', 'BMW', 'Audi', 'Toyota'). Works independently of search query.

## `model` (type: `string`):

Specific car model (e.g. 'XC60', '3 Series', 'Golf'). Best used together with Make.

## `yearFrom` (type: `integer`):

Minimum model year filter.

## `yearTo` (type: `integer`):

Maximum model year filter.

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

Minimum price in Swedish kronor.

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

Maximum price in Swedish kronor.

## `fuelType` (type: `string`):

Filter by fuel type.

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

How to sort the results.

## `maxResults` (type: `integer`):

Maximum number of car listings to scrape.

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

Proxy settings. Swedish residential proxies recommended for best results.

## Actor input object example

```json
{
  "searchQuery": "volkswagen",
  "sort": "RELEVANCE",
  "maxResults": 50,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "SE"
  }
}
```

# 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 = {
    "searchQuery": "volkswagen",
    "maxResults": 50,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ],
        "apifyProxyCountry": "SE"
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("studio-amba/blocket-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 = {
    "searchQuery": "volkswagen",
    "maxResults": 50,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
        "apifyProxyCountry": "SE",
    },
}

# Run the Actor and wait for it to finish
run = client.actor("studio-amba/blocket-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 '{
  "searchQuery": "volkswagen",
  "maxResults": 50,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "SE"
  }
}' |
apify call studio-amba/blocket-scraper --silent --output-dataset

```

## MCP server setup

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