# 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
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

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

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use 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

## 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"
  }
}
```

# 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("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).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": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=studio-amba/blocket-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Blocket Scraper - Swedish Car Listings & Classifieds",
        "description": "Scrape car listings from Blocket.se, Sweden's largest classifieds site. Extract prices, specs, mileage, fuel type, location. No login required.",
        "version": "0.1",
        "x-build-id": "s6yFiRcepZaYeHYPX"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/studio-amba~blocket-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-studio-amba-blocket-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/studio-amba~blocket-scraper/runs": {
            "post": {
                "operationId": "runs-sync-studio-amba-blocket-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/studio-amba~blocket-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-studio-amba-blocket-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "searchQuery": {
                        "title": "Search Query",
                        "type": "string",
                        "description": "Search term for car listings (e.g. 'volkswagen', 'volvo xc60', 'Tesla Model 3'). Leave empty to use default search."
                    },
                    "make": {
                        "title": "Make (Brand)",
                        "type": "string",
                        "description": "Car manufacturer to filter by (e.g. 'Volvo', 'BMW', 'Audi', 'Toyota'). Works independently of search query."
                    },
                    "model": {
                        "title": "Model",
                        "type": "string",
                        "description": "Specific car model (e.g. 'XC60', '3 Series', 'Golf'). Best used together with Make."
                    },
                    "yearFrom": {
                        "title": "Year From",
                        "minimum": 1950,
                        "maximum": 2030,
                        "type": "integer",
                        "description": "Minimum model year filter."
                    },
                    "yearTo": {
                        "title": "Year To",
                        "minimum": 1950,
                        "maximum": 2030,
                        "type": "integer",
                        "description": "Maximum model year filter."
                    },
                    "priceFrom": {
                        "title": "Minimum Price (SEK)",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Minimum price in Swedish kronor."
                    },
                    "priceTo": {
                        "title": "Maximum Price (SEK)",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Maximum price in Swedish kronor."
                    },
                    "fuelType": {
                        "title": "Fuel Type",
                        "enum": [
                            "Bensin",
                            "Diesel",
                            "El",
                            "Hybrid",
                            "Laddhybrid",
                            "Gas"
                        ],
                        "type": "string",
                        "description": "Filter by fuel type."
                    },
                    "sort": {
                        "title": "Sort By",
                        "enum": [
                            "RELEVANCE",
                            "PRICE_ASC",
                            "PRICE_DESC",
                            "YEAR_DESC",
                            "YEAR_ASC",
                            "MILEAGE_ASC",
                            "MILEAGE_DESC",
                            "PUBLISHED_DESC"
                        ],
                        "type": "string",
                        "description": "How to sort the results.",
                        "default": "RELEVANCE"
                    },
                    "maxResults": {
                        "title": "Max Results",
                        "minimum": 1,
                        "maximum": 10000,
                        "type": "integer",
                        "description": "Maximum number of car listings to scrape.",
                        "default": 100
                    },
                    "proxyConfiguration": {
                        "title": "Proxy Configuration",
                        "type": "object",
                        "description": "Proxy settings. Swedish residential proxies recommended for best results."
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
