Discover/blocket.se API
live

blocket.se APIblocket.se

Search and retrieve second-hand items, car listings, and rental housing data from Blocket.se and Qasa.se via 6 structured endpoints.

Endpoints
6
Updated
26d ago
Try it
Page number for pagination
Sort order. Accepted values: RELEVANCE, PRICE_ASC, PRICE_DESC
Search keyword
api.parse.bot/scraper/7e413c69-4d2e-404b-9a0e-2b3b4ab4d511/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Use it in your codegrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/7e413c69-4d2e-404b-9a0e-2b3b4ab4d511/search_listings?query=iphone' \
  -H 'X-API-Key: $PARSE_API_KEY'
All endpoints · 6 totalclick to expand

Search for second-hand items on Blocket Torget. Returns a paginated list of listings with title, price, location, and images.

Input
ParamTypeDescription
pageintegerPage number for pagination
sortstringSort order. Accepted values: RELEVANCE, PRICE_ASC, PRICE_DESC
queryrequiredstringSearch keyword
Response
{
  "type": "object",
  "fields": {
    "url": "string search URL used",
    "total": "integer total number of results",
    "listings": "array of listing objects with heading, price, location, canonical_url, ad_id, image_urls, and extras"
  },
  "sample": {
    "data": {
      "url": "https://www.blocket.se/recommerce/forsale/search?q=iphone&sort=RELEVANCE",
      "total": 53,
      "listings": [
        {
          "id": "22897240",
          "type": "bap",
          "ad_id": 22897240,
          "brand": "Apple",
          "price": {
            "amount": 8000,
            "price_unit": "kr",
            "currency_code": "SEK"
          },
          "heading": "iPhone 16 pro 256gb svart",
          "location": "Piteå",
          "image_urls": [
            "https://images.blocketcdn.se/dynamic/default/item/22897240/983575ed-35a5-42e6-8e4c-cbee4c0670d2"
          ],
          "memory_size": "256 GB",
          "canonical_url": "https://www.blocket.se/recommerce/forsale/item/22897240"
        }
      ]
    },
    "status": "success"
  }
}

About the blocket.se API

The Blocket.se API covers 6 endpoints that expose listings, vehicle details, and rental housing counts from Sweden's largest second-hand marketplace and its associated platforms. The search_listings endpoint returns paginated results with price, location, images, and ad IDs; search_cars adds vehicle-specific fields like make, model, year, mileage, and fuel type; and detail endpoints surface full descriptions, schema.org data, and structured category hierarchies.

Search and Listing Data

The search_listings endpoint accepts a required query string and optional page and sort parameters (RELEVANCE, PRICE_ASC, PRICE_DESC). It returns the total result count, the resolved search URL, and an array of listing objects each containing heading, price, location, canonical_url, ad_id, image_urls, and an extras attribute array. The get_listing_detail endpoint takes that ad_id and returns the full seller description, an image array with uri, width, and height, postal coordinates, and a nested category object with parent category chains. Note that only fresh, active listings resolve — expired IDs return a not-found error.

Car and Vehicle Listings

search_cars targets Blocket Mobility and returns structured vehicle data per result: make, model, year, mileage, fuel, and price. When sorting by PRICE_ASC, leasing listings with low monthly amounts can appear before outright-purchase listings, so treat price values carefully in that sort order. get_car_listing_detail returns schema.org BreadcrumbList data and an advertising_facts object with key-value targeting pairs including fuel, year, price, mileage, make_text, model_text, body_type, and transmission.

Housing and Category Metadata

search_housing queries Qasa for rental listing counts in a given area using a location_identifier string with a country prefix, such as se/stockholms_kommun. It returns a homeSearch.documents.totalCount figure. Currently confirmed working for Swedish (se/) locations only. The get_categories endpoint returns the Blocket marketplace constraint rules as allowedCombinations and excludedCombinations arrays alongside a parameters list — useful for building valid category-and-trade-type filter combinations without trial-and-error.

Common use cases
  • Monitor second-hand price trends for specific product queries using search_listings sorted by PRICE_ASC or PRICE_DESC.
  • Build a used-car comparison tool pulling make, model, year, mileage, and transmission from get_car_listing_detail.
  • Track rental housing availability in Swedish municipalities by polling search_housing with different location_identifier values.
  • Aggregate category hierarchies from get_categories to populate valid filter options in a Swedish marketplace search UI.
  • Enrich a product database with seller descriptions, condition notes, and geo-coordinates from get_listing_detail.
  • Alert on newly listed items matching a keyword by comparing total counts from repeated search_listings calls.
  • Extract schema.org structured data for car listings via get_car_listing_detail to feed a structured data pipeline.
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000250 req/min

One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does Blocket have an official public developer API?+
Blocket does not publish a public developer API. There is no documented REST or GraphQL API available to third-party developers on their website.
What does `get_car_listing_detail` return beyond what `search_cars` already provides?+
search_cars returns summary fields per result: make, model, year, mileage, fuel, and price. get_car_listing_detail adds an advertising_facts object with granular targeting data — including body_type and transmission — plus schema.org BreadcrumbList structured data, which search_cars does not include.
Can I filter `search_listings` or `search_cars` by price range, category, or location?+
The current endpoints accept query, page, and sort as inputs. Price-range, category, and location filters are not exposed as parameters. The get_categories endpoint does return allowed category and trade-type combinations, but passing them as search filters is not currently supported. You can fork the API on Parse and revise it to add those filter parameters.
Does `search_housing` work for locations outside Sweden?+
It is currently confirmed working only for Swedish locations using the se/ prefix in the location_identifier field, for example se/göteborgs_kommun. Non-Swedish Qasa markets have not been validated. You can fork the API on Parse and revise it to test and add support for other country prefixes.
What happens if I request details for a listing that has expired?+
Both get_listing_detail and get_car_listing_detail return a not-found error for expired or removed listings. Always source ad_id values from fresh search_listings or search_cars results to avoid stale IDs.
Page content last updated . Spec covers 6 endpoints from blocket.se.
Related APIs in MarketplaceSee all →
dba.dk API
Search and retrieve detailed listings from Denmark's largest marketplace DBA.dk, including product information, pricing, and seller details across general goods and car categories. Browse marketplace categories, find specific items, and access comprehensive data on both regular listings and automotive inventory.
booli.se API
Access Swedish property data from Booli.se. Search active and historical listings, retrieve full listing details and photos, and explore area market statistics and price trends.
hemnet.se API
Search and browse real estate listings from Sweden's leading property portal, retrieving comprehensive property details including prices, specifications, and availability. Access detailed information about thousands of homes and properties to find your next Swedish property or compare market listings.
tradera.com API
Search Tradera.com listings and retrieve detailed item information including seller ratings for both auctions and fixed-price sales. Get real-time access to product details and market data across Sweden's leading online marketplace.
finn.no API
Search and retrieve listings across Norwegian marketplaces on FINN.no, including vehicles, real estate, jobs, and second-hand items. Access structured listing data such as price, location, images, and category-specific attributes across all major FINN.no verticals.
shpock.com API
Search and browse products listed on Shpock.com, view detailed listing information and seller profiles, and explore all available marketplace categories. Find what you're looking for by searching inventory, checking seller histories, and discovering related items from individual merchants.
ss.lv API
Browse real estate and spare parts listings from ss.lv, search by keywords, and view detailed information about specific listings. Get instant access to property and automotive parts data to find what you're looking for on one of Latvia's largest marketplaces.
olx.ba API
Search and browse listings on OLX.ba across all categories. Retrieve listing names, prices, categories, and URLs, or drill into individual listings for detailed attributes such as location, address, area, floor, condition, and seller information. Includes dedicated support for apartment listings.