# Blocket.se Scraper (`aurenic/blocket-scraper`) Actor

Extract listings from Sweden's #1 marketplace. Electronics, cars, furniture, and more.

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

## Pricing

from $1.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.

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

Extract listings from Sweden's largest marketplace — titles, prices, brands, images, and direct URLs.

### What does Blocket.se Scraper do?

Scrape listing data from blocket.se across all major categories: electronics, vehicles, furniture, clothing, and more. Paste any search or category URL and get structured data ready for price monitoring, market research, or arbitrage pipelines.

### Output fields

| Field | Description |
|---|---|
| id | Blocket internal listing ID |
| title | Listing headline |
| price | Displayed price (SEK) |
| priceNumeric | Numeric price for sorting/filtering |
| currency | Currency code (SEK) |
| brand | Product brand (when available) |
| description | Short listing description |
| condition | Item condition |
| availability | Stock availability |
| url | Direct link to the listing |
| imageUrl | Thumbnail image URL |
| scrapedAt | ISO timestamp |

### Who is it for?

- **Resale teams** tracking Swedish second-hand prices
- **Car dealers** monitoring competitor inventory
- **Market researchers** analyzing Nordic classifieds trends
- **Arbitrage hunters** spotting underpriced items early
- **AI pipelines** building product datasets

### Pricing

**$0.0010 per result** ($1.00 per 1,000 results). No subscription.

| Results | Cost |
|---|---|
| 100 | $0.10 |
| 1,000 | $1.00 |
| 10,000 | $10.00 |

### How to use it

1. Open blocket.se and navigate to any search or category.
2. Apply any filters you want (price range, location, category).
3. Copy the URL from your browser.
4. Paste it into **Blocket URLs** in Apify Console.
5. Set **Max Pages** (each page yields ~40 listings).
6. Click **Start**.

### Supported categories

| Category | URL example |
|---|---|
| Marketplace | `https://www.blocket.se/recommerce/forsale/search?q=iphone` |
| Vehicles | `https://www.blocket.se/recommerce/forsale/search?q=volvo` |
| Furniture | `https://www.blocket.se/recommerce/forsale/search?q=soffa` |
| Clothing | `https://www.blocket.se/recommerce/forsale/search?q=jacka` |

### Output example

```json
{
  "id": "26658879",
  "title": "iPhone 17 pro Max 512gb",
  "price": "15000 kr",
  "priceNumeric": 15000,
  "currency": "SEK",
  "brand": "Apple",
  "description": "iPhone 17 pro Max 512gb",
  "condition": "UsedCondition",
  "availability": "InStock",
  "url": "https://www.blocket.se/recommerce/forsale/item/26658879",
  "imageUrl": "https://images.blocketcdn.se/dynamic/default/item/26658879/...",
  "scrapedAt": "2026-09-17T10:00:00.000Z"
}

```

### Technical details

- Built with **Crawlee + Cheerio** (no browser overhead)
- Extracts from server-rendered JSON-LD structured data
- Uses **Swedish residential proxies** (pre-configured)
- Automatic pagination
- Fast: ~40 listings per page in under 2 seconds

### FAQ

**Do I need to configure proxies?** No. Swedish residential proxies are pre-configured.

**Can I scrape any category?** Yes — electronics, vehicles, furniture, clothing, and more.

**Does this include seller contact details?** No. Only public listing data.

**How do I export data?** After a run, go to Storage → Export as JSON, CSV, Excel, or XML.

### Support

Open an issue on the Actor's page for bugs or feature requests.

# Actor input Schema

## `startUrls` (type: `array`):

Search or category URLs from blocket.se

## `maxRequestsPerCrawl` (type: `integer`):

Maximum pages to crawl. Each page yields ~40 listings.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.blocket.se/recommerce/forsale/search?q=iphone"
    }
  ],
  "maxRequestsPerCrawl": 2
}
```

# 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 = {
    "startUrls": [
        {
            "url": "https://www.blocket.se/recommerce/forsale/search?q=iphone"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("aurenic/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 = { "startUrls": [{ "url": "https://www.blocket.se/recommerce/forsale/search?q=iphone" }] }

# Run the Actor and wait for it to finish
run = client.actor("aurenic/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 '{
  "startUrls": [
    {
      "url": "https://www.blocket.se/recommerce/forsale/search?q=iphone"
    }
  ]
}' |
apify call aurenic/blocket-scraper --silent --output-dataset

```

## MCP server setup

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