# Blocket.se Scraper - Swedish Classifieds & Marketplace (`fervent_bus/blocket-se-scraper`) Actor

Extract listings from Blocket.se, Sweden's largest classifieds marketplace. Scrape products, vehicles, real estate, and services with prices, locations, and images. Works with Claude, ChatGPT, AI agents via Apify MCP.

- **URL**: https://apify.com/fervent\_bus/blocket-se-scraper.md
- **Developed by:** [Archit Khurana](https://apify.com/fervent_bus) (community)
- **Categories:** Lead generation, E-commerce, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.00 / 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/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.se Scraper - Swedish Classifieds & Marketplace

Extract listings from **Blocket.se**, Sweden's largest classifieds marketplace. Scrape products, vehicles, real estate, services, and more with prices, locations, and images across all Swedish regions.

### Features

- ✅ Search by keyword, category, location, and price range
- ✅ Extract titles, prices, locations, images, and listing URLs
- ✅ Support for all Swedish regions (hela\_sverige, Stockholm, Göteborg, Malmö, etc.)
- ✅ Filter by minimum/maximum price
- ✅ Residential proxy support for reliable access
- ✅ Compatible with **Claude**, **ChatGPT** & **AI agents via Apify MCP**

### Use Cases

1. **Price Monitoring** - Track prices for bikes, electronics, cars across Sweden
2. **Market Research** - Analyze supply/demand for specific products or regions
3. **Lead Generation** - Find sellers of equipment, vehicles, real estate
4. **Competitive Analysis** - Monitor competitor pricing and inventory
5. **AI Agent Integration** - Feed structured Swedish marketplace data to Claude/ChatGPT workflows

### Input Parameters

| Field | Type | Description | Example |
|-------|------|-------------|---------|
| `searchQuery` | string | Search term (Swedish keywords) | `"cykel"`, `"bil"`, `"laptop"` |
| `location` | string | Region in Sweden | `"hela_sverige"`, `"stockholm"`, `"goteborg"` |
| `category` | string | Blocket category ID (optional) | `"0.69"` (Sport), `"0.78"` (Furniture) |
| `minPrice` | integer | Minimum price in SEK | `1000` |
| `maxPrice` | integer | Maximum price in SEK | `50000` |
| `maxResults` | integer | Max listings to scrape (1-500) | `50` |

### Output Fields

Each result contains:

- `url` - Full listing URL
- `itemId` - Blocket item ID
- `title` - Listing title
- `price` - Price in Swedish Kronor (SEK)
- `priceText` - Original price text
- `location` - City/region
- `imageUrl` - Main image URL
- `scrapedAt` - ISO 8601 timestamp

### Example

**Input:**

```json
{
  "searchQuery": "cykel",
  "location": "stockholm",
  "maxPrice": 5000,
  "maxResults": 20
}
```

**Output:**

```json
{
  "url": "https://www.blocket.se/recommerce/forsale/item/26800531",
  "itemId": "26800531",
  "title": "Helt ny oanvänd cykel 28\" Medium",
  "price": 2500,
  "priceText": "2 500 kr",
  "location": "Västerås",
  "imageUrl": "https://images.blocketcdn.se/...",
  "scrapedAt": "2026-09-24T11:30:00.000Z"
}
```

### Pricing

- **$0.005 per result** scraped
- **$0.05 per actor start** (one-time fee per run)

Example: 100 results = $0.50 (results) + $0.05 (start) = **$0.55 total**

### AI Agent Integration (MCP)

This actor is **Claude Code** and **ChatGPT** compatible via the Apify MCP server:

```bash
## Install Apify MCP
npm install -g @apify/mcp-server

## Use in Claude Desktop / ChatGPT
"Tell me the average price for bikes in Stockholm on Blocket.se"
```

The AI agent will automatically run this scraper and analyze the results.

### FAQ

**Q: Does this work for all of Sweden?**\
A: Yes - use `location: "hela_sverige"` or specify regions like `stockholm`, `goteborg`, `malmo`, `uppsala`, etc.

**Q: Can I filter by category?**\
A: Yes - categories like `0.69` (Sport), `0.78` (Furniture), `0.93` (Electronics). Leave empty to search all categories.

**Q: How often is data updated?**\
A: Real-time - the scraper fetches live listings from Blocket.se at the time of each run.

**Q: What if a listing has no price?**\
A: The `price` field will be `null`, but `priceText` may contain contact-based pricing info.

### Notes

- Blocket.se uses Swedish number formatting (spaces as thousand separators: `1 000 kr`)
- Some listings require registration to view full details
- Residential proxies recommended for high-volume scraping

### Support

For issues or feature requests, visit:\
https://github.com/roshtarg-cpu/blocket-se-scraper

***

**Compatible with Claude, ChatGPT & AI agents via Apify MCP.**

# Actor input Schema

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

Search term (e.g. 'cykel', 'bil', 'möbler'). Leave empty to browse all listings.

## `location` (type: `string`):

Geographic area in Sweden. Examples: 'hela\_sverige' (all Sweden), 'stockholm', 'goteborg', 'malmo', 'uppsala'

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

Blocket category ID (e.g. '0.69' for Sport, '0.78' for Furniture). Leave empty for all categories.

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

Filter results by minimum price in Swedish Kronor

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

Filter results by maximum price in Swedish Kronor

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

Maximum number of listings to scrape

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

Residential proxy recommended for reliable access

## Actor input object example

```json
{
  "searchQuery": "cykel",
  "location": "hela_sverige",
  "maxPrice": 10000,
  "maxResults": 3,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# 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": "cykel",
    "location": "hela_sverige",
    "category": "",
    "minPrice": 0,
    "maxPrice": 10000,
    "maxResults": 3,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("fervent_bus/blocket-se-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": "cykel",
    "location": "hela_sverige",
    "category": "",
    "minPrice": 0,
    "maxPrice": 10000,
    "maxResults": 3,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("fervent_bus/blocket-se-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": "cykel",
  "location": "hela_sverige",
  "category": "",
  "minPrice": 0,
  "maxPrice": 10000,
  "maxResults": 3,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call fervent_bus/blocket-se-scraper --silent --output-dataset

```

## MCP server setup

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