# Blocket Scraper: Sweden Marketplace Listings (`plainrows/blocket-scraper`) Actor

Type a keyword or paste blocket.se "for sale" search URLs, get every listing: title, price, city, coordinates, private or business seller, brand, shipping, photos, date. No login. Pay per listing plus a small start fee per run.

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

## Pricing

from $0.40 / 1,000 listings

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

Get **blocket.se listings** (Sweden's largest marketplace, marketplace (for sale) section) from any search: **title, price in SEK, city, approximate coordinates, private or business seller, shop name for businesses, brand and other item facts shown on the card, labels, shipping and buy-now flags, photos, publication date**. Type a keyword ("iphone", "cykel") or paste search URLs copied from blocket.se with your filters and sort order.

Plain HTTP requests, no browser: **no login, no account, no cookies**. The Actor reads only the public search pages, one page at a time per search with a pause between pages, and respects Blocket's robots.txt.

### Typical uses

- **Resellers and second-hand shops**: find underpriced items in Sweden every morning (schedule a run, sort by newest).
- **Price monitoring**: Swedish second-hand prices of a product or brand.
- **Market research across the Nordics**: compare with FINN (Norway) and DBA (Denmark) using our twin scrapers, same output format.
- **Spreadsheets, BI and AI agents**: clean rows for Google Sheets, n8n, Make, Zapier or an MCP client.

### What you get

One row per listing:

| Field | Description |
|---|---|
| `search`, `searchUrl` | Your search and the page read |
| `listingId`, `url` | Blocket listing ID and link |
| `title` | Title as listed |
| `price`, `currency` | Price shown (usually `SEK`) |
| `city`, `latitude`, `longitude` | Where the item is, as published by the site (approximate) |
| `sellerType` | `private` or `business` |
| `businessName` | Business sellers only, the shop name they publish; always `null` for private sellers |
| `brand`, `details` | Brand and other facts shown on the card (e.g. `memory_size`) |
| `labels` | Labels shown on the card, in the site's language |
| `shippingAvailable`, `buyNow` | Shipping offered; can be bought online directly |
| `tradeType` | For sale, wanted or give away, as shown |
| `imageUrl`, `imageUrls` | Main photo and the photos shown in the search result |
| `publishedAt` | When the listing was published or renewed (UTC) |
| `page`, `position`, `totalResults` | Where the listing was, and how many results Blocket reports |
| `observedAt` | When the page was read (UTC) |

Missing values are always `null`, never guessed. Nothing is collected about private sellers (no name, phone or user ID). No description: the Actor does not open listing pages. A search without listings (or blocked, or unreadable) gets one free row with `found: false`, a `status` and a `message`.

### Input

```json
{
  "searches": ["iphone", "https://www.blocket.se/recommerce/forsale/search?q=iphone&price_to=5000"],
  "maxResultsPerSearch": 100
}
```

- **searches**: one per line, up to 100 per run: a keyword, or a search URL from the marketplace (for sale) section of blocket.se (`https://www.blocket.se/recommerce/forsale/search?...`). To use filters (category, price, location, private or business, shipping) or a sort order, search on the site, set them, and copy the address bar. Other sections (cars, real estate, jobs) are not supported: such URLs are refused for free.
- **maxResultsPerSearch**: 1 to 1,000 (default 100). Blocket shows about 50 listings per page; the Actor reads up to 20 pages per search. For more, split a search with filters (price bands, categories, regions).

Listings found by two of your searches are returned and billed once.

### Pricing

Pay per event: **one event per listing returned**, plus a small start fee per run.

| Plan | Per listing | Per 1,000 listings |
|---|---|---|
| Free | $0.0005 | $0.50 |
| Bronze | $0.00045 | $0.45 |
| Silver | $0.0004 | $0.40 |
| Gold | $0.0004 | $0.40 |

Free: searches without listings, pages that are blocked or cannot be read, other sections of the site, duplicates and input mistakes. On the free Apify plan, a run reads up to 3 searches and 50 listings per search.

### FAQ

**Is it legal?** The Actor reads only pages anyone can see without an account, at a slow pace, and respects robots.txt. It keeps no data about private persons (no private seller name, phone or ID). Blocket's terms of use restrict automated access: you are responsible for how you use the data. This is not legal advice.

**Why are some searches empty or BLOCKED?** If Blocket refuses a request (rate limit or bot check), the Actor stops that search and charges nothing beyond the results already delivered. If this happens after the first page, the run summary warns that the search stopped early and its results are partial. It never solves or bypasses a check. Try again later or with fewer searches per run.

**Can I get the full description, seller ratings or phone numbers?** No: the Actor reads the search pages only, and never collects contact details of private persons. Need another field? Open an issue.

### More PlainRows tools

Same pay-per-result pricing, same clean JSON, built to chain together in n8n, Make, Zapier or AI agents.

- **SEO and keywords:** [Keyword Search Volume, CPC & Difficulty](https://apify.com/plainrows/keyword-search-volume) · [Keyword Planner Alternative (Bulk Search Volume & CPC)](https://apify.com/plainrows/keyword-planner-alternative) · [Keyword Ideas Generator](https://apify.com/plainrows/keyword-ideas-generator) · [Google Autocomplete & People Also Ask](https://apify.com/plainrows/google-autocomplete-questions) · [Google Trends Explorer](https://apify.com/plainrows/google-trends-explorer) · [Website Organic Traffic & Top Keywords](https://apify.com/plainrows/domain-seo-overview) · [Bulk Domain Authority Checker](https://apify.com/plainrows/domain-authority-checker) · [Backlink Checker](https://apify.com/plainrows/backlink-checker) · [Broken Link Checker](https://apify.com/plainrows/broken-link-checker) · [AI Search Visibility Tracker (ChatGPT, Gemini, AI Mode)](https://apify.com/plainrows/ai-search-brand-visibility) · [Google Maps Rank Tracker (Geo-Grid Local SEO)](https://apify.com/plainrows/google-maps-rank-tracker)
- **Leads and companies:** [Google Maps Scraper](https://apify.com/plainrows/google-maps-businesses) · [Google Maps Email Extractor](https://apify.com/plainrows/google-maps-email-extractor) · [Google Maps Businesses Without Website](https://apify.com/plainrows/google-maps-no-website-leads) · [Website Technology Checker](https://apify.com/plainrows/website-tech-stack) · [Website Email Extractor](https://apify.com/plainrows/website-email-extractor) · [Contact Details Scraper (Emails, Phones, Socials)](https://apify.com/plainrows/contact-details-scraper) · [ATS Jobs Scraper (Workday, Greenhouse, Lever, Ashby)](https://apify.com/plainrows/ats-job-postings) · [Workday Jobs Scraper](https://apify.com/plainrows/workday-jobs-scraper) · [Greenhouse Jobs Scraper](https://apify.com/plainrows/greenhouse-jobs-scraper) · [Lever Jobs Scraper](https://apify.com/plainrows/lever-jobs-scraper) · [Ashby Jobs Scraper](https://apify.com/plainrows/ashby-jobs-scraper) · [Google Jobs Scraper](https://apify.com/plainrows/google-jobs-scraper) · [Google Ads Scraper (Transparency Center)](https://apify.com/plainrows/google-ads-transparency) · [Company Registry Lookup (SIRENE, LEI, Brreg)](https://apify.com/plainrows/company-registry-lookup) · [Public Tenders Search (EU TED & UK)](https://apify.com/plainrows/public-tenders-search)
- **E-commerce and travel:** [Amazon Product Search Scraper](https://apify.com/plainrows/amazon-product-search) · [Amazon Best Sellers Scraper](https://apify.com/plainrows/amazon-bestsellers-scraper) · [Google Shopping Prices Scraper](https://apify.com/plainrows/google-shopping-prices) · [Google Hotels Prices Scraper](https://apify.com/plainrows/google-hotels-prices) · [Google Hotels Scraper](https://apify.com/plainrows/google-hotels-scraper) · [Tripadvisor Reviews Scraper](https://apify.com/plainrows/tripadvisor-reviews) · [Trustpilot Reviews Scraper](https://apify.com/plainrows/trustpilot-reviews)
- **Marketplaces and classifieds:** [AliExpress Scraper](https://apify.com/plainrows/aliexpress-scraper) · [Kleinanzeigen Scraper (Germany)](https://apify.com/plainrows/kleinanzeigen-scraper) · [AutoScout24 Scraper (Cars, Europe)](https://apify.com/plainrows/autoscout24-scraper) · [Kijiji Scraper (Canada)](https://apify.com/plainrows/kijiji-scraper) · [Marktplaats Scraper (Netherlands)](https://apify.com/plainrows/marktplaats-scraper) · [Property Finder Scraper (UAE)](https://apify.com/plainrows/propertyfinder-scraper) · [Redfin Scraper (US Homes for Sale)](https://apify.com/plainrows/redfin-scraper) · [Otomoto Scraper (Polish Car Listings)](https://apify.com/plainrows/otomoto-scraper) · [Otodom Scraper (Poland Property)](https://apify.com/plainrows/otodom-scraper) · [Imovirtual Scraper (Portugal Property)](https://apify.com/plainrows/imovirtual-scraper) · [Standvirtual Scraper (Portugal Cars)](https://apify.com/plainrows/standvirtual-scraper)
- **Content and media:** [Google News Scraper](https://apify.com/plainrows/google-news-scraper) · [YouTube Search Scraper](https://apify.com/plainrows/youtube-search-scraper) · [YouTube Comments Scraper](https://apify.com/plainrows/youtube-comments-scraper) · [Google Images Scraper](https://apify.com/plainrows/google-images-scraper) · [Website Screenshot API](https://apify.com/plainrows/website-screenshot) · [Google Maps Reviews Scraper](https://apify.com/plainrows/google-maps-reviews) · [Google Reviews Scraper](https://apify.com/plainrows/google-reviews-scraper) · [App Store & Google Play Reviews Scraper](https://apify.com/plainrows/app-reviews-scraper) · [Google Play Reviews Scraper](https://apify.com/plainrows/google-play-reviews-scraper) · [App Store Reviews Scraper](https://apify.com/plainrows/app-store-reviews-scraper)

### Support

Open an issue on the Actor's page: issues are read and answered. Need another field, a higher limit or a custom version for your workflow? Ask in an issue.

# Actor input Schema

## `searches` (type: `array`):

One per line: a keyword ("iphone", "cykel") or a blocket.se search URL from the marketplace (for sale) section, copied from the address bar after setting filters (category, price, location, private or business, shipping…) and sort order. Up to 100 searches per run; duplicates are removed.

## `maxResultsPerSearch` (type: `integer`):

Blocket shows about 50 listings per page; the Actor reads up to 20 pages (1,000 listings) per search, one after the other.

## Actor input object example

```json
{
  "searches": [
    "iphone",
    "https://www.blocket.se/recommerce/forsale/search?q=iphone&price_to=5000"
  ],
  "maxResultsPerSearch": 50
}
```

# Actor output Schema

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

No description

## `summary` (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 = {
    "searches": [
        "iphone",
        "https://www.blocket.se/recommerce/forsale/search?q=iphone&price_to=5000"
    ],
    "maxResultsPerSearch": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("plainrows/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 = {
    "searches": [
        "iphone",
        "https://www.blocket.se/recommerce/forsale/search?q=iphone&price_to=5000",
    ],
    "maxResultsPerSearch": 50,
}

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

```

## MCP server setup

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