# Blocket.se 🔥 $0.7/1K Marketplace & Classifieds (`azzouzana/blocket-scraper`) Actor

From $0.7/1K 💰 Paste a Blocket search and pull Swedish marketplace and car listings in seconds: price in SEK, city, photos, seller type, and vehicle specs. Optional full descriptions. Ready for spreadsheets and AI agents. JSON, CSV, Excel, or API. Start now! 🚀

- **URL**: https://apify.com/azzouzana/blocket-scraper.md
- **Developed by:** [Azzouzana](https://apify.com/azzouzana) (community)
- **Categories:** E-commerce, Lead generation
- **Stats:** 3 total users, 3 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.70 / 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 Scraper — Swedish Marketplace & Cars

Copying Blocket listings by hand is a time-sink. Paste a search URL and get the ads back **in seconds**.

### Engineering Excellence & Reliability 🚀

- **Search URL in, listings out**: Paste the Blocket results page you already filtered. Marketplace ads and vehicle searches both work.
- **We bypass the website limitation and go beyond it.** Duplicate listings are skipped.
- **Pagination is handled for you.** Large searches keep going up to your **maxItems**.
- **Fuller ads when you want them.** Turn on **fetchFullDetails** for the description and category on the listing page.
- **Clean exports.** JSON, CSV, Excel, or API. Price in SEK, city, photos, and seller type are on every row.

### 🛠️ How to Play

Open [Blocket](https://www.blocket.se/), run a search, then copy the address bar into **`startUrl`**.

#### Input Parameters

| Field | Type | Description |
|-------|------|-------------|
| `startUrl` | String | **(Required)** Blocket search URL from your browser. Marketplace or vehicles. |
| `maxItems` | Number | How many listings to save. Default 100. Free accounts are limited to 5 per run. |
| `fetchFullDetails` | Boolean | `false` = the search record. `true` = that record plus the description and category from the listing page. |

#### Example 1: iPhone ads on Torget

```json
{
    "startUrl": "https://www.blocket.se/recommerce/forsale/search?q=iphone",
    "maxItems": 100,
    "fetchFullDetails": false
}
```

#### Example 2: Volvo cars, with the listing description

```json
{
    "startUrl": "https://www.blocket.se/mobility/search/car?q=volvo",
    "maxItems": 50,
    "fetchFullDetails": true
}
```

### 🆓 Free tier limitations

We want you to see how this actor works before you commit. To keep things fair for everyone, the **free tier** includes these trial limits:

- **Sample data:** up to **5 listings** per run.
- **Daily cap:** **5 runs** per calendar day (UTC).
- **Between runs:** at least **60 seconds** before you can start another run.

#### Upgrade when you're ready!

Use the free tier to decide if this actor fits your project. Paid Apify plans remove these wait times and caps so you can run at full volume—[**upgrade to a paid plan**](https://apify.com/pricing?fpr=cbgdsf).

### 📦 What’s in the Box?

Each row is the listing Blocket returns for that search. With **fetchFullDetails** on, the row also includes the description and category from the listing page.

```json
{
  "type": "bap",
  "id": "26936779",
  "main_search_key": "SEARCH_ID_BAP_ALL",
  "heading": "Apple iPhone 11 mobil 64 GB lila",
  "location": "Malmö",
  "image": {
    "url": "https://images.blocketcdn.se/dynamic/default/item/26936779/442a698c-34a3-4889-8c76-6f3b031de24e",
    "path": "item/26936779/442a698c-34a3-4889-8c76-6f3b031de24e",
    "height": 3000,
    "width": 4000,
    "aspect_ratio": 1.3333333333333333
  },
  "flags": [
    "private"
  ],
  "timestamp": 1790517373000,
  "coordinates": {
    "lat": 55.56045,
    "lon": 12.98725,
    "accuracy": 5
  },
  "ad_type": 67,
  "labels": [
    {
      "id": "private",
      "text": "Privat",
      "type": "SECONDARY"
    }
  ],
  "canonical_url": "https://www.blocket.se/recommerce/forsale/item/26936779",
  "extras": [
    {
      "id": "memory_size",
      "label": "",
      "values": [
        "64 GB"
      ]
    },
    {
      "id": "brand",
      "label": "",
      "values": [
        "Apple"
      ]
    }
  ],
  "price": {
    "amount": 1050,
    "currency_code": "SEK",
    "price_unit": "kr"
  },
  "distance": 0,
  "trade_type": "Säljes",
  "image_urls": [
    "https://images.blocketcdn.se/dynamic/default/item/26936779/442a698c-34a3-4889-8c76-6f3b031de24e",
    "https://images.blocketcdn.se/dynamic/default/item/26936779/a820cc33-4209-4fd5-947c-b826e25b48ae"
  ],
  "brand": "Apple",
  "memory_size": "64 GB",
  "ad_id": 26936779,
  "metadata": {
    "source": "keyword"
  }
}
```

### Contact 📬

**Need a custom solution? Have a feature request or just want to chat?**
We'd love to hear from you!

- 💬 **Discord**: `@azzouzana`
- 📧 **Email**: <labs@azzouzana.com>

### ⚠️ Disclaimer

This actor is not affiliated with Blocket or Schibsted. It collects publicly visible listing information. You are responsible for Blocket’s terms and the laws that apply to you. See [Apify’s legality article](https://blog.apify.com/is-web-scraping-legal?fpr=cbgdsf).

### Keywords

Blocket scraper, Blocket.se, Swedish marketplace, classifieds, Torget, used cars, iPhone ads, price in SEK, seller type, photos, vehicle listings, Sweden, JSON, CSV, Excel

# Actor input Schema

## `startUrl` (type: `string`):

Paste a Blocket search URL from your browser (Torget / recommerce search or vehicle search on blocket.se).

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

Maximum listings to scrape. Effective limit also respects run budget and free-tier cap (5 for free users).

## `fetchFullDetails` (type: `boolean`):

Add the full description and category path from the listing page.

## Actor input object example

```json
{
  "startUrl": "https://www.blocket.se/recommerce/forsale/search?q=iphone",
  "maxItems": 100,
  "fetchFullDetails": false
}
```

# 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 = {
    "startUrl": "https://www.blocket.se/recommerce/forsale/search?q=iphone",
    "maxItems": 100,
    "fetchFullDetails": false
};

// Run the Actor and wait for it to finish
const run = await client.actor("azzouzana/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 = {
    "startUrl": "https://www.blocket.se/recommerce/forsale/search?q=iphone",
    "maxItems": 100,
    "fetchFullDetails": False,
}

# Run the Actor and wait for it to finish
run = client.actor("azzouzana/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 '{
  "startUrl": "https://www.blocket.se/recommerce/forsale/search?q=iphone",
  "maxItems": 100,
  "fetchFullDetails": false
}' |
apify call azzouzana/blocket-scraper --silent --output-dataset

```

## MCP server setup

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