# Blocket Scraper — Sweden Marketplace & Used Cars (`hipersoft/blocket-scraper`) Actor

Scrape Blocket.se, Sweden's biggest marketplace: items for sale and used cars with price, location, coordinates, photos, seller type and date; cars add make, model, version, year, mileage, fuel, gearbox, reg. number and dealer. Export CSV/JSON.

- **URL**: https://apify.com/hipersoft/blocket-scraper.md
- **Developed by:** [hiper soft](https://apify.com/hipersoft) (community)
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.00075 / listing

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/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: Sweden Marketplace Ads & Used Cars

**Blocket Scraper** extracts listings from **Blocket.se**, Sweden's largest marketplace for second-hand items and used cars. Search the **marketplace (Torget)** for anything (phones, furniture, bikes, clothes, electronics…) or **used cars (Bilar)**. Every ad includes the **title, price in SEK, location, GPS coordinates, photos, private or business seller and publication time**. Car ads also include **make, model, version, model year, mileage in km, fuel, gearbox, registration number and dealer name**. Filter by **price**, **model year**, **mileage** and **private sellers**, and export to **CSV, Excel or JSON**.

### What does Blocket Scraper do?

- 🇸🇪 **Marketplace (Torget)**: anything for sale in Sweden — iPhones, sofas, bikes, prams, tools, games…
- 🚗 **Used cars**: Volvo, Volkswagen, Tesla, Toyota… with full vehicle details.
- 💰 **Prices** in SEK with price-range filters.
- 📍 **Location** and **coordinates** for every ad.
- 🧑 **Seller type**: private or business, plus the dealer name for car dealers.
- 📸 **Photos** and photo count, and the **publication time**.
- 📈 **Large searches split automatically by price**, so you get more than Blocket's 50-page limit.

### What data can you scrape from Blocket?

| Field | Description |
|---|---|
| ID, title, link | Blocket ad |
| Price, currency | Price in SEK |
| Location, coordinates | Place, latitude, longitude |
| Seller type | Private or business |
| Trade type | Säljes, Köpes… |
| Photos | Image links and count |
| Published | Publication time |
| Car details | Make, model, version, year, km, fuel, gearbox, reg. number, dealer |

### Use cases for Blocket data

- **Resellers and flippers**: find underpriced items and compare second-hand prices.
- **Car dealers**: monitor competitor stock and private-seller prices for any model.
- **Market research**: track second-hand prices for electronics, furniture and cars across Sweden.
- **Price alerts**: schedule searches and get new ads as soon as they appear.
- **Valuation**: build price guides for used cars and products.

### How to scrape Blocket

1. Click **Try for free** to open Blocket Scraper in Apify Console.
2. Choose **Marketplace** or **Used cars** and enter **search terms**.
3. Optionally set **price**, **year**, **mileage** or **private sellers only**.
4. Set **Max listings** and click **Start**.
5. Download the ads as **CSV, Excel or JSON**.

### Input

#### Example input

```json
{
  "category": "cars",
  "searchTerms": ["volvo xc60"],
  "yearFrom": 2018,
  "maxMileage": 150000,
  "maxItems": 500
}
```

| Field | Description |
|---|---|
| **Category** | Marketplace or used cars. |
| **Search terms** | Keywords, one search each. Empty = everything. |
| **Price from / to** | Price range in SEK. |
| **Model year from / to** | Cars only. |
| **Max mileage in km** | Cars only. |
| **Private sellers only** | Only private ads. |
| **Max listings** | Stop after this many (0 = no limit). |

### Output

#### Car example

```json
{
  "id": "27197852",
  "title": "Volvo XC60",
  "url": "https://www.blocket.se/mobility/item/27197852",
  "price": 459000,
  "currency": "SEK",
  "location": "Växjö",
  "latitude": 56.89216,
  "longitude": 14.77136,
  "sellerType": "business",
  "imageCount": 4,
  "publishedAt": "2026-10-06T17:58:22.000Z",
  "make": "Volvo",
  "model": "XC60",
  "version": "T6 Core Nordic Edition",
  "year": 2025,
  "mileageKm": 65200,
  "fuel": "Plug-in Bensin",
  "transmission": "Automatisk",
  "registrationNumber": "LET74T",
  "dealerName": "Liljas Personbilar AB",
  "search": "volvo xc60"
}
```

#### Marketplace example

```json
{
  "id": "27200172",
  "title": "Apple iPhone 15 128 GB svart",
  "url": "https://www.blocket.se/recommerce/forsale/item/27200172",
  "price": 4000,
  "currency": "SEK",
  "location": "Göteborg",
  "latitude": 57.67986,
  "longitude": 11.99337,
  "sellerType": "private",
  "tradeType": "Säljes",
  "imageCount": 1,
  "publishedAt": "2026-10-06T19:27:06.879Z",
  "search": "iphone 15"
}
```

### How much does it cost to scrape Blocket?

Blocket Scraper uses **pay-per-listing** pricing: a small fixed price per ad, with automatic discounts on higher Apify plans. See the **Pricing** tab for the exact price.

### More Nordic and marketplace data

- [Allabolag Scraper](https://apify.com/hipersoft/allabolag-scraper): Swedish companies with revenue and contacts.
- [AutoScout24 Scraper](https://apify.com/hipersoft/autoscout24-scraper): used cars across Europe.

### FAQ

**How many ads can I get?**
Blocket shows up to 50 pages per search. For bigger searches without a price filter, the scraper splits by price automatically.

**Is mileage in km?**
Yes. Swedish "mil" are converted to kilometres in `mileageKm`.

**Can I monitor new ads?**
Yes. Schedule the scraper; `publishedAt` shows when each ad was posted.

**What formats can I export?**
CSV, Excel, JSON, XML, HTML and RSS, or read the results through the Apify API.

**Can I integrate Blocket Scraper with other apps?**
Blocket Scraper can be connected with almost any cloud service or web app thanks to [integrations on the Apify platform](https://apify.com/integrations). It works with [Make](https://apify.com/integrations/make), [Zapier](https://apify.com/integrations/zapier), [Slack](https://docs.apify.com/platform/integrations/slack), [Airbyte](https://docs.apify.com/platform/integrations/airbyte), [GitHub](https://docs.apify.com/platform/integrations/github), [Google Drive](https://docs.apify.com/platform/integrations/drive) and [many more](https://apify.com/integrations), plus the [Apify API](https://docs.apify.com/api/v2), JS/Python clients and MCP. Or use [webhooks](https://docs.apify.com/platform/integrations/webhooks) to trigger an action whenever a run finishes.

**Is it legal to scrape Blocket?**
The scraper only collects publicly listed ads and does not collect private sellers' names or contact details. You are responsible for using the data in line with Blocket's terms and the GDPR.

### Related Actors

- [Allabolag Scraper](https://apify.com/hipersoft/allabolag-scraper)
- [AutoScout24 Scraper](https://apify.com/hipersoft/autoscout24-scraper)

### Notes

Original clean-room implementation. Returns only public data. Not affiliated with Blocket or Schibsted.

# Actor input Schema

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

Marketplace items (Torget) or used cars.

## `searchTerms` (type: `array`):

What to search, e.g. iphone 15, soffa, cykel, volvo xc60, tesla model 3. Each term is a separate search. Leave empty for everything.

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

Minimum price.

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

Maximum price.

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

Cars only.

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

Cars only.

## `maxMileage` (type: `integer`):

Cars only.

## `privateOnly` (type: `boolean`):

Only ads from private sellers.

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

Stop after this many listings. 0 means no limit.

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

Not required for normal use.

## Actor input object example

```json
{
  "category": "marketplace",
  "searchTerms": [
    "iphone 15"
  ],
  "privateOnly": false,
  "maxItems": 50,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `results` (type: `string`):

The results as dataset items.

# 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 = {
    "searchTerms": [
        "iphone 15"
    ],
    "maxItems": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("hipersoft/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 = {
    "searchTerms": ["iphone 15"],
    "maxItems": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("hipersoft/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 '{
  "searchTerms": [
    "iphone 15"
  ],
  "maxItems": 50
}' |
apify call hipersoft/blocket-scraper --silent --output-dataset

```

## MCP server setup

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