# Blocket Marketplace Search API

> Search Blocket's second-hand marketplace in Sweden by keyword and get each listing's title, price, location, image and link.

- Page: https://cleanedweb.com/catalog/blocket-marketplace-search-api/
- Contract (JSON): https://cleanedweb.com/catalog/blocket-marketplace-search-api/contract.json
- Source: blocket.se (https://www.blocket.se/)
- Category: Commerce
- Updated: 2026-11-24

A run reads until the source ends or your `max_items`, `timeout_seconds` or budget stops it.

## Key fields

| Field | Type | Sample value |
| --- | --- | --- |
| `title` | string | `2-sits soffa (Kivik / IKEA )` |
| `description` | string | `Grå 2-sits soffa med normalt slitage.` |
| `brand` | string | `IKEA` |
| `location` | string | `Sommen` |
| `date` | string | `2026-11-20` |
| `price` | number \| string | not in the saved sample |
| `currency` | string | not in the saved sample |
| `url` | string | `https://www.blocket.se/recommerce/forsale/item/28403010` |

Sample values come from one saved record, not a live run. Every field with its type, and the schemas, are in https://cleanedweb.com/catalog/blocket-marketplace-search-api/contract.json. Some fields the source returns are not published, so a record can carry fields the schema does not list.

## Inputs

- `search` (string \| array of string): Optional. Text for the site's search box. Leave it out to use the default: soffa.
- `category` (string \| number): Optional. Filters by category. Options: Möbler och inredning (0.78), Bygg och trädgård (0.67), Konst och antikt (0.76), Föräldrar och barn (0.68), Elektronik och vitvaror (0.93), Underhållning och hobby (0.86), Fordonstillbehör (0.90), Affärsverksamhet (0.91), and 126 more in https://cleanedweb.com/catalog/blocket-marketplace-search-api/contract.json.
- `brand` (string \| number): Optional. Filters by brand. Options: & Other Stories (9289), &Tradition (9489), 2NDDAY (497), 2XU (9002), 4moms (1960), 7 DAYS Active (3271), A BATHING APE (2139), A Day's March (2028), and 1622 more in https://cleanedweb.com/catalog/blocket-marketplace-search-api/contract.json.
- `shipping_types` (string \| number): Optional. Filters by shipping types. Options: Kan skickas (0), Gratis frakt (1).
- `location` (string \| number): Optional. Filters by location. Options: Stockholm (0.300001), Uppsala (0.300003), Södermanland (0.300004), Östergötland (0.300005), Jönköping (0.300006), Kronoberg (0.300007), Kalmar (0.300008), Gotland (0.300009), and 303 more in https://cleanedweb.com/catalog/blocket-marketplace-search-api/contract.json.
- `condition` (string \| number): Optional. Filters by condition. Options: Nytt skick - helt ny (1), Mycket bra skick - som ny (2), Bra skick - varsamt använd (3), Okej skick - synligt använd (4), Funkar inte - kan fixas (5).
- `dealer_segment` (string \| number): Optional. Filters by dealer segment. Options: Företag (3), Privat (1).
- `trade_type` (string \| number): Optional. Filters by trade type. Options: Säljes (1), Bortskänkes (2), Köpes (3).
- `published` (boolean): Filters by published.
- `price_from` (string \| integer): Optional. Omit it to leave this side open.
- `price_to` (string \| integer): Optional. Omit it to leave this side open.
- `sort` (string): Order of the collection, as the site's own sort control offers it; omitted keeps the site's default order. Options: Mest relevanta (RELEVANCE), Pris högt–lågt (PRICE_DESC), Pris lågt–högt (PRICE_ASC), Senaste först (PUBLISHED_DESC), Äldsta först (PUBLISHED_ASC).
- `filters` (object): Optional. This site's own filters for the category you ask for; they differ per category and are read live on every call. Keys are the site's own. A list filter takes a value code or its label (several in an array); a range takes {"min": n, "max": n} (either bound optional); a single toggle takes true. A key the category does not offer, an unknown value, or a filter the site did not apply is refused, never served unfiltered.
- `from_url` (string): Optional. A filtered results link copied from the site (its own address bar). It is decoded into typed inputs (the category, search, price range and filters it holds) and the run echoes them as \`decoded\`.

`enrich_records` is on by default and adds the fields that only appear on each record's detail page. Send `false` to read list fields only. See https://cleanedweb.com/docs/run-api/

## Request

`POST https://api.cleanedweb.com/v1/catalog/public/apis/generated_14bb1c4fe0522abca4438280/endpoints/generated_14bb1c4fe0522abca4438280_search/run`

```bash
curl -X POST https://api.cleanedweb.com/v1/catalog/public/apis/generated_14bb1c4fe0522abca4438280/endpoints/generated_14bb1c4fe0522abca4438280_search/run \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Idempotency-Key: UNIQUE_REQUEST_ID" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "category": "0.78"
  },
  "version": 1,
  "max_items": 25
}'
```

Send an `Idempotency-Key` header with every run and save it before you send. Reuse it only to retry the same request. If the run does not end within `wait_seconds`, read the result with the same API key and key:

`GET https://api.cleanedweb.com/v1/catalog/public/apis/generated_14bb1c4fe0522abca4438280/endpoints/generated_14bb1c4fe0522abca4438280_search/result`

## Versions

Current: `1.0`. Pin a major with "version": N in the run body (an integer). Leave it out and the call runs on the latest major. A sunset major runs on the latest major and the response says rerouted. An unknown major answers 404 catalog_version_not_found and lists the available majors.

- v1: current, newest minor `1.0`

### Changelog

- `1.0` (major) 2026-11-22

The same changelog, as data, is in https://cleanedweb.com/catalog/blocket-marketplace-search-api/contract.json

## Use it from an AI agent

MCP server: https://api.cleanedweb.com/mcp?profile=catalog (Streamable HTTP). Sign in with a CleanedWeb account when the client asks (OAuth), or send an API key with the `read` and `run` scopes as `Authorization: Bearer`. Call `get_api` with `api_id` `generated_14bb1c4fe0522abca4438280`, then `run_api` with the `run_with` arguments it returns. See https://cleanedweb.com/docs/mcp/

## Run it

Reading the catalog needs no credential. Running needs a CleanedWeb account and an API key with the `run` scope; the first 5,000 records are free, then $1 per 1,000 records. See https://cleanedweb.com/docs/run-catalog-api/

CleanedWeb is not affiliated with Blocket Vehicle Listings.
