# Blocket Scraper (`anyxsolutions/blocket-scraper`) Actor

Blocket scraper: scrape Blocket.se ads from Sweden's biggest marketplace. Paste search or ad URLs, or type keywords, and get title, description, price, category, location with postcode and coordinates, private or company seller, condition, shipping, photos, item details and dates.

- **URL**: https://apify.com/anyxsolutions/blocket-scraper.md
- **Developed by:** [Anyx Solutions](https://apify.com/anyxsolutions) (community)
- **Categories:** E-commerce, Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.20 / 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

![banner](https://anyx.solutions/banners/blocket-scraper.png)

## Blocket Scraper

**Ads from Sweden's biggest marketplace — prices, categories, locations, sellers and photos as clean JSON.**

Scrape ads from Blocket.se, Sweden's biggest marketplace for second-hand and new goods: title,
full description, price, ad type (for sale, wanted or free), category path, place name with
postcode and coordinates, private or company seller with the shop's name and page, condition,
brand and every other detail the seller filled in, shipping and buy-now options, all photos, and
publish and edit dates. Paste any Blocket search with your keyword, category, location, price and
seller filters already set, single ad pages, or just type keywords. Results are paged through
automatically. No login, no API key, no proxy to configure. Built for price research and resale
pricing, market and demand analysis, dealer lead generation and watching new ads for the things
you are looking for.

### ⚡ Quick start

```json
{
  "startUrls": [
    {
      "url": "https://www.blocket.se/recommerce/forsale/search?q=cykel"
    }
  ],
  "maxItems": 5
}
```

### 🧩 Input

| Field                | Type    | Required | Default                      | Description                                                                                                                                                             |
| -------------------- | ------- | -------- | ---------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `startUrls`          | array   | no       | —                            | Blocket URLs: searches with any filters (`/recommerce/forsale/search?…`) and single ads (`/recommerce/forsale/item/…`). Old `/annons/…` ad links work too.              |
| `searchTerms`        | array   | no       | —                            | Keywords to search all of Blocket for, one search per keyword, for example `soffa` or `iphone 15`.                                                                      |
| `maxItems`           | integer | no       | —                            | Maximum ads per start URL or search term. The input form starts at 5; leave it empty to page through the whole search (at most 50 pages, about 2,600 ads).              |
| `includeDetails`     | boolean | no       | `true`                       | Open each ad's own page to add the description, category, postcode, condition, the parameter list, every photo, the shop and shipping options. Adds one request per ad. |
| `proxyConfiguration` | object  | no       | `{ "useApifyProxy": false }` | Proxy settings. Blocket loads without a proxy; use Apify Proxy (datacenter) only for very large runs.                                                                   |

Add at least one start URL or search term.

**Which search URLs work?** Any search on blocket.se: type a keyword, pick a category, a county or
municipality, a price range, private or company sellers, and copy the address bar, for example
`https://www.blocket.se/recommerce/forsale/search?category=0.69&location=0.300001&price_from=500&price_to=3000`.
Add `&page=3` to start further in. Sorted searches (`&sort=…`) are run in Blocket's default order,
because Blocket asks crawlers not to load sorted result pages. Blocket's cars, boats and
motorcycles (`/mobility/…`) and housing sections are separate and not covered.

### 📤 Output

Each ad is one dataset row. Prices and coordinates are numbers; dates are ISO 8601. With
**Include ad details** turned off, the fields marked "with details" are empty and the run is several
times faster. An ad that appears on two result pages is returned once. To respect sellers' privacy,
private sellers' names and anyone's phone numbers are never returned.

#### Fields

| Field               | Type    | Description                                                                                                          |
| ------------------- | ------- | -------------------------------------------------------------------------------------------------------------------- |
| `id`                | string  | Blocket ad ID.                                                                                                       |
| `url`               | string  | The ad's page on Blocket.                                                                                            |
| `title`             | string  | Ad title.                                                                                                            |
| `description`       | string  | The seller's description, with details.                                                                              |
| `price`             | number  | Price. `null` when the ad has none.                                                                                  |
| `currency`          | string  | Currency code, `SEK`.                                                                                                |
| `adType`            | string  | `sell`, `buy` or `give_away` (free to a good home).                                                                  |
| `category`          | string  | The ad's category, for example `Cyklar`, with details.                                                               |
| `categoryPath`      | array   | The full category path, top level first, for example `["Sport och friluftsliv", "Cykling", "Cyklar"]`, with details. |
| `location`          | string  | Place name shown on the ad: a town, district or postal area.                                                         |
| `postalCode`        | string  | Postcode of the ad's location, with details.                                                                         |
| `latitude`          | number  | Approximate latitude of the ad's location.                                                                           |
| `longitude`         | number  | Approximate longitude of the ad's location.                                                                          |
| `sellerType`        | string  | `private` or `company`.                                                                                              |
| `sellerName`        | string  | Shop or company name for company sellers. Private sellers' names are not returned.                                   |
| `sellerUrl`         | string  | The shop's page on Blocket, for company sellers, with details.                                                       |
| `brand`             | string  | Brand, when the ad states one.                                                                                       |
| `condition`         | string  | Condition as the seller states it, for example `Bra skick - varsamt använd`, with details.                           |
| `shippingAvailable` | boolean | Whether the item can be shipped with Blocket's shipping.                                                             |
| `buyNow`            | boolean | Whether the item can be bought directly on Blocket.                                                                  |
| `isSold`            | boolean | Whether the ad is marked as sold, with details.                                                                      |
| `images`            | array   | Photo URLs: every photo with details, the first ones from search results.                                            |
| `parameters`        | array   | Every row of the ad's details table as `id`, `label` and `value`: condition, brand, size, type, …, with details.     |
| `publishedAt`       | string  | When the ad was published or last renewed, from search results.                                                      |
| `editedAt`          | string  | When the ad was last edited, with details.                                                                           |
| `scrapedAt`         | string  | When this row was scraped.                                                                                           |

<details><summary>Example output</summary>

```json
{
  "id": "27764707",
  "url": "https://www.blocket.se/recommerce/forsale/item/27764707",
  "title": "Pinewood cykel 24\"-bra för stadskörning",
  "description": "Gammalt men bra – alltihop.",
  "price": 749,
  "currency": "SEK",
  "adType": "sell",
  "category": "Cyklar",
  "categoryPath": ["Sport och friluftsliv", "Cykling", "Cyklar"],
  "location": "Sköndal",
  "postalCode": "12864",
  "latitude": 59.25156,
  "longitude": 18.12434,
  "sellerType": "private",
  "sellerName": null,
  "sellerUrl": null,
  "brand": null,
  "condition": "Bra skick - varsamt använd",
  "shippingAvailable": true,
  "buyNow": false,
  "isSold": false,
  "images": [
    "https://images.blocketcdn.se/dynamic/default/item/27764707/04fc1cf2-7b55-4a13-969d-7ec6c6c927ad",
    "https://images.blocketcdn.se/dynamic/default/item/27764707/c7679603-af06-46c2-8127-512990672321"
  ],
  "parameters": [
    {
      "id": "condition",
      "label": "Skick",
      "value": "Bra skick - varsamt använd"
    },
    {
      "id": "bike_wheel_size",
      "label": "Hjulstorlek",
      "value": "24\""
    },
    {
      "id": "bikes_type",
      "label": "Typ av cykel",
      "value": "Övriga cyklar"
    },
    {
      "id": "gender",
      "label": "Kön",
      "value": "Unisex"
    }
  ],
  "publishedAt": "2026-10-27T18:18:38.000Z",
  "editedAt": "2026-10-27T18:24:53.171Z",
  "scrapedAt": "2026-10-27T20:26:01.808Z"
}
```

</details>

### 💡 Use cases

- **Resale pricing**: see what used bikes, phones, furniture or tools actually sell for, by condition and region.
- **Market research**: measure supply and prices by category and location over time.
- **Dealer lead generation**: list the shops and companies selling in a category, with their Blocket pages.
- **Deal watching**: run a search on a schedule and catch new ads for what you are looking for.
- **Second-hand demand analysis**: compare wanted ads with ads for sale in a category.

### ❓ FAQ

- **Do I need a Blocket account or API key?** No. The Actor reads the same public pages any visitor sees.
- **Why are region and municipality not separate fields?** Blocket shows each ad with a place name, a postcode and an approximate map position; use `postalCode` or the coordinates to group ads by county or municipality, or filter the search by location on blocket.se.
- **Can I sort the results?** Results come in Blocket's default order. Sort or filter the dataset by `price` or `publishedAt` instead.
- **Does it cover cars and housing?** No. It covers Blocket's marketplace (Torget): everything outside the vehicle and housing sections.
- **Why are some fields empty?** Sellers fill in different details, and the fields marked "with details" need **Include ad details**.
- **Is it okay to use this data?** You're in the driver's seat. The Actor reads public Blocket pages, the same ads any visitor can open, and what you do with the results is up to you. Blocket's own notice asks that automated crawling of blocket.se has the site's written permission, so if you plan commercial or large-scale use, a quick note to Blocket is a good move. You are responsible for how you use the data and for following Blocket's terms and the laws that apply to you, including GDPR for any personal details in ads.

### 🔗 More scrapers by Anyx

- [Walmart Scraper](https://apify.com/anyxsolutions/walmart-scraper)
- [Target Scraper](https://apify.com/anyxsolutions/target-scraper)
- [Shopify Scraper](https://apify.com/anyxsolutions/shopify-scraper)
- [AutoScout24 Scraper](https://apify.com/anyxsolutions/autoscout24-scraper)

### 🤝 Anyx Solutions

We build custom scrapers and data-extraction pipelines.

- Email: tantosthor@gmail.com

# Actor input Schema

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

Blocket pages to scrape: searches with any keyword, category, location, price and seller filters (https://www.blocket.se/recommerce/forsale/search?q=cykel\&location=0.300001\&price_from=500) and single ads (https://www.blocket.se/recommerce/forsale/item/27764707).

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

Keywords to search all of Blocket for, one search per keyword, for example soffa or iphone 15. Use start URLs instead to add filters such as category, location or price.

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

Maximum number of ads to return per start URL or search term. Leave empty to page through the whole search; Blocket shows at most 50 pages (about 2,600 ads) per search, so split big searches by category or location.

## `includeDetails` (type: `boolean`):

Open each ad's own page to add the description, category, postcode, condition, the full parameter list, every photo, the shop's name and page, and shipping options. Adds one request per ad; turn it off for fast price lists.

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

Proxy settings. Blocket loads without a proxy; use Apify Proxy (datacenter) only for very large runs, to spread requests over more IPs.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.blocket.se/recommerce/forsale/search?q=cykel"
    }
  ],
  "maxItems": 5,
  "includeDetails": true,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `overview` (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=cykel"
        }
    ],
    "maxItems": 5
};

// Run the Actor and wait for it to finish
const run = await client.actor("anyxsolutions/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=cykel" }],
    "maxItems": 5,
}

# Run the Actor and wait for it to finish
run = client.actor("anyxsolutions/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=cykel"
    }
  ],
  "maxItems": 5
}' |
apify call anyxsolutions/blocket-scraper --silent --output-dataset

```

## MCP server setup

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