APIs / Cars / Blocket Bil

1 credit per call3 endpoints20 datapointsChecked working 6 Dec 2026

Blocket Bil API

Blocket Bil API for car search by price, year and mileage, single listings and recommendations as JSON. Three endpoints, 1 credit per successful call.

Blocket Bil
GET/v1/blocket-bil/search?page=0&lim=50&sort=PRICE_ASC&variant=0.818&location=0.300001&fuel=2
{
  "success": true,
  "data": {
    "search_metadata": {
      "page": 0,
      "lim": 50,
      "sort": "PRICE_ASC",
      "total_returned": 50,
      "total_matches": 1519,
      "has_more": true,
      "paging": {
        "param": "page",
        "current": 1,
        "last": 31
      }
    },
    "listings": [
      {
        "id": "24804513",
        "heading": "Volvo V50",
        "location": "Täby",
        "images": [
          "https://images.blocketcdn.se/dynamic/default/item/24804513/39b8be2b-f071-4a78-b38e-f9060a278140",
          "https://images.blocketcdn.se/dynamic/default/item/24804513/d16e7fc3-2665-4be1-8ba3-d6334486d745",
          "https://images.blocketcdn.se/dynamic/default/item/24804513/254481cf-7469-4694-a9b2-2d3151b62096"
        ],
        "timestamp": 1789807983000,
        "coordinates": {
          "lat": 59.4512,
          "lon": 18.07526,
          "accuracy": 5
        },
        "price": {
          "amount": 10000,
          "currency_code": "SEK",
          "price_unit": "kr"
        },
        "org_id": "869893334",
        "make": "Volvo",
        "model": "V50",
        "model_specification": "1.6 D Manuell",
        "year": 2010,
        "mileage": 25000,
        "mileage_unit": "SCANDINAVIAN_MILE",
        "transmission": "Manuell",
        "fuel": "Diesel",
        "registration_class": "Personbil",
        "dealer_segment": "Privat",
        "sales_form": 1,
        "canonical_url": "https://www.blocket.se/mobility/item/24804513"
      },
      {
        "id": "25636322",
        "heading": "Volvo V50",
        "location": "Tumba",
        "images": [
          "https://images.blocketcdn.se/dynamic/default/item/25636322/654171e0-8ff9-4545-870e-c8a8277308dd",
          "https://images.blocketcdn.se/dynamic/default/item/25636322/06e9ea56-087a-49c6-83c1-b4b302f35141",
          "https://images.blocketcdn.se/dynamic/default/item/25636322/41a95f9d-3b2d-451d-a0bb-aceaa4c6b7c9"
        ],
        "timestamp": 1786519310000,
        "coordinates": {
          "lat": 59.18572,
          "lon": 17.82145,
          "accuracy": 5
        },
        "price": {
          "amount": 12000,
          "currency_code": "SEK",
          "price_unit": "kr"
        },
        "org_id": "5421407",
        "organisation_name": "Rena Cars AB",
        "make": "Volvo",
        "model": "V50",
        "model_specification": "1.6 D Kinetic Drag",
        "year": 2010,
        "mileage": 29400,
        "mileage_unit": "SCANDINAVIAN_MILE",
        "transmission": "Manuell",
        "fuel": "Diesel",
        "registration_class": "Personbil",
        "dealer_segment": "Företag",
        "sales_form": 1,
        "canonical_url": "https://www.blocket.se/mobility/item/25636322"
      },
      {
        "id": "27742276",
        "heading": "Volvo V50",
        "location": "Bandhagen",
        "images": [
          "https://images.blocketcdn.se/dynamic/default/item/27742276/b7cb4fe5-a9cd-4e1f-ad0a-1a1fcec3b5f6",
          "https://images.blocketcdn.se/dynamic/default/item/27742276/233531c2-5017-4ae9-afc1-6d141f3a9442",
          "https://images.blocketcdn.se/dynamic/default/item/27742276/503fa100-d4b5-4ac3-a474-7c718ca24f83"
        ],
        "timestamp": 1793528381000,
        "coordinates": {
          "lat": 59.259,
          "lon": 18.0182,
          "accuracy": 5
        },
        "price": {
          "amount": 13000,
          "currency_code": "SEK",
          "price_unit": "kr"
        },
        "org_id": "379732904",
        "make": "Volvo",
        "model": "V50",
        "model_specification": "1.6 D Manuell",
        "year": 2010,
        "mileage": 35000,
        "mileage_unit": "SCANDINAVIAN_MILE",
        "transmission": "Manuell",
        "fuel": "Diesel",
        "registration_class": "Personbil",
        "dealer_segment": "Privat",
        "sales_form": 1,
        "canonical_url": "https://www.blocket.se/mobility/item/27742276"
      }
    ],
    "filters": {
      "q": {
        "display_name": "Sök i Bil",
        "type": "QUERY_FILTER"
      },
      "location": {
        "display_name": "Plats",
        "type": "STANDARD_FILTER",
        "items": [
          {
            "label": "Blekinge",
            "value": "0.300010",
            "hits": 166,
            "children": [
              "…",
              "…",
              "…"
            ]
          },
          {
            "label": "Dalarna",
            "value": "0.300020",
            "hits": 321,
            "children": [
              "…",
              "…",
              "…"
            ]
          },
          {
            "label": "Gotland",
            "value": "0.300009",
            "hits": 22,
            "children": [
              "…"
            ]
          }
        ]
      },
      "polylocation": {
        "display_name": "Plats på kartan",
        "type": "MAP_AREA_FILTER"
      },
      "radius": {
        "display_name": "Plats på kartan",
        "type": "MAP_RADIUS_FILTER"
      },
      "bbox": {
        "display_name": "Plats på kartan",
        "type": "MAP_BBOX_FILTER"
      },
      "variant": {
        "display_name": "Märke och modell",
        "type": "STANDARD_FILTER",
        "items": [
          {
            "label": "Abarth",
            "value": "0.8093",
            "hits": 1,
            "children": [
              "…",
              "…"
            ]
          },
          {
            "label": "AC",
            "value": "0.200673",
            "hits": 0,
            "children": [
              "…"
            ]
          },
          {
            "label": "Acura",
            "value": "0.200674",
            "hits": 0,
            "children": [
              "…"
            ]
          }
        ]
      },
      "price": {
        "display_name": "Pris",
        "type": "RANGE_FILTER"
      },
      "year": {
        "display_name": "Modellår",
        "type": "RANGE_FILTER"
      },
      "mileage": {
        "display_name": "Miltal",
        "type": "RANGE_FILTER"
      },
      "fuel": {
        "display_name": "Drivmedel",
        "type": "STANDARD_FILTER",
        "items": [
          {
            "label": "Bensin",
            "value": "1",
            "hits": 753
          },
          {
            "label": "Diesel",
            "value": "2",
            "hits": 1519
          },
          {
            "label": "El",
            "value": "4",
            "hits": 280
          }
        ]
      },
      "body_type": {
        "display_name": "Biltyp",
        "type": "STANDARD_FILTER",
        "items": [
          {
            "label": "Cabriolet",
            "value": "7",
            "hits": 1
          },
          {
            "label": "Coupé",
            "value": "6",
            "hits": 2
          },
          {
            "label": "Familjebuss",
            "value": "5",
            "hits": 1
          }
        ]
      },
      "transmission": {
        "display_name": "Växellåda",
        "type": "STANDARD_FILTER",
        "items": [
          {
            "label": "Automatisk",
            "value": "2",
            "hits": 1244
          },
          {
            "label": "Manuell",
            "value": "1",
            "hits": 275
          },
          {
            "label": "Sekventiell",
            "value": "583",
            "hits": 0
          }
        ]
      },
      "dealer_segment": {
        "display_name": "Annonsör",
        "type": "STANDARD_FILTER",
        "items": [
          {
            "label": "Företag",
            "value": "2",
            "hits": 1164
          },
          {
            "label": "Privat",
            "value": "3",
            "hits": 355
          }
        ]
      },
      "sales_form": {
        "display_name": "Försäljningsform",
        "type": "STANDARD_FILTER",
        "items": [
          {
            "label": "Begagnad bil till salu",
            "value": "1",
            "hits": 1519
          },
          {
            "label": "Ny bil till salu",
            "value": "2",
            "hits": 0
          },
          {
            "label": "Leasing",
            "value": "5",
            "hits": 3
          }
        ]
      },
      "smooth_trade": {
        "display_name": "Betalning och ägarbyte",
        "type": "STANDARD_FILTER",
        "items": [
          {
            "label": "Tryggad Bilaffär",
            "value": "true",
            "hits": 19
          }
        ]
      },
      "wheel_drive": {
        "display_name": "Drivhjul",
        "type": "STANDARD_FILTER",
        "items": [
          {
            "label": "Bakhjulsdrift",
            "value": "1",
            "hits": 0
          },
          {
            "label": "Framhjulsdrift",
            "value": "3",
            "hits": 550
          },
          {
            "label": "Fyrhjulsdrift",
            "value": "2",
            "hits": 738
          }
        ]
      },
      "engine_effect": {
        "display_name": "Hästkrafter",
        "type": "RANGE_FILTER"
      },
      "car_equipment": {
        "display_name": "Utrustning",
        "type": "STANDARD_FILTER",
        "items": [
          {
            "label": "AC och klimatanläggning",
            "value": "9",
            "hits": 588
          },
          {
            "label": "Apple CarPlay",
            "value": "1588",
            "hits": 273
          },
          {
            "label": "Backkamera",
            "value": "67",
            "hits": 448
          }
        ]
      },
      "max_trailer_weight": {
        "display_name": "Tillåten trailervikt",
        "type": "RANGE_FILTER"
      },
      "exterior_colour": {
        "display_name": "Färg",
        "type": "STANDARD_FILTER",
        "items": [
          {
            "label": "Beige",
            "value": "1",
            "hits": 1
          },
          {
            "label": "Blå",
            "value": "2",
            "hits": 178
          },
          {
            "label": "Brons",
            "value": "3",
            "hits": 1
          }
        ]
      },
      "vat_deductible": {
        "display_name": "Avdragbar moms",
        "type": "STANDARD_FILTER",
        "items": [
          {
            "label": "Endast avdragbar moms",
            "value": "true",
            "hits": 71
          }
        ]
      },
      "published": {
        "display_name": "Publicerad",
        "type": "STANDARD_FILTER",
        "items": [
          {
            "label": "Nytt från idag",
            "value": "1",
            "hits": 98
          }
        ]
      },
      "wheel_sets": {
        "display_name": "Hjuluppsättning",
        "type": "STANDARD_FILTER",
        "items": [
          {
            "label": "En uppsättning hjul",
            "value": "1",
            "hits": 18
          },
          {
            "label": "Två eller fler uppsättningar hjul",
            "value": "2",
            "hits": 57
          }
        ]
      }
    }
  },
  "meta": {
    "duration_ms": 1262,
    "endpoint_family": "search"
  }
}
200 OKJSONX-Credits-Used: 1
Recorded 12 Nov 2026 and shortened.

Sample data

What one call returns

A recorded run of search: the fields and shapes you will get, shortened to 3 items.

#idstringheadingstringlocationstringimagesstring[]timestampintegercoordinatesobjectpriceobjectorg_idstringmakestringmodelstringmodel_specificationstringyearintegermileageintegermileage_unitstringtransmissionstringfuelstringregistration_classstringdealer_segmentstringsales_formintegercanonical_urlurl
124804513Volvo V50Täby[3 items]1789807983000{3 fields}{3 fields}869893334VolvoV501.6 D Manuell201025000SCANDINAVIAN_MILEManuellDieselPersonbilPrivat1https://www.blocket.se/mobility/item/24804513
225636322Volvo V50Tumba[3 items]1786519310000{3 fields}{3 fields}5421407VolvoV501.6 D Kinetic Drag201029400SCANDINAVIAN_MILEManuellDieselPersonbilFöretag1https://www.blocket.se/mobility/item/25636322
327742276Volvo V50Bandhagen[3 items]1793528381000{3 fields}{3 fields}379732904VolvoV501.6 D Manuell201035000SCANDINAVIAN_MILEManuellDieselPersonbilPrivat1https://www.blocket.se/mobility/item/27742276

Recorded 12 Nov 2026 · 3 items shown · 20 datapoints per itemGET /v1/blocket-bil/search?page=0&lim=50&sort=PRICE_ASC&variant=0.818&location=0.300001&fuel=2

20 datapoints

Identity

  • idstring
  • org_idstring

Contact

  • canonical_urlurl

Location

  • locationstring

Reputation

  • imagesstring[]

Price

  • priceobject
  • dealer_segmentstring

Other

  • headingstring
  • timestampinteger
  • coordinatesobject
  • makestring
  • modelstring
  • model_specificationstring
  • yearinteger
  • mileageinteger
  • mileage_unitstring
  • transmissionstring
  • fuelstring
  • registration_classstring
  • sales_forminteger

Playground

Run this API

cURLshell
curl "https://api.perceptlayer.com/v1/blocket-bil/search?page=0&lim=50&sort=PRICE_ASC&variant=0.818&location=0.300001&fuel=2" \
  -H "X-API-Key: $API_KEY"

Blocket Bil · 3 endpoints

Endpoints

Every endpoint takes the same key. Open one for its parameters, the fields it returns and an example request.

EndpointRequired parametersReturnsCost
GET/v1/blocket-bil/listing
id
listing
1 credit
GET/v1/blocket-bil/recommendations
ad_id
JSON1 credit
GET/v1/blocket-bil/search
none+16 optional
idheadinglocationimagestimestampcoordinates+15 more
1 credit

Overview

About the Blocket Bil API

What you can get

The Blocket Bil API returns Blocket Bil car listings as JSON through 3 endpoints.

  • Search: search takes price_from, price_to, year_from, year_to, mileage_from and mileage_to, with fuel, body_type, transmission, sales_form[], variant, location, org_id, sort (PRICE_ASC or PRICE_DESC), page and lim.
  • Listings: listing takes a listing id.
  • Recommendations: recommendations takes an ad_id.

fuel, body_type and transmission take integer codes, and sales_form[] takes one or more of 1, 2, 3 and 4.

How a call works

Search cars: GET /v1/blocket-bil/search?page=0&lim=50&sort=PRICE_ASC&variant=0.818&location=0.300001&fuel=2 with your key in the X-API-Key header. Page with page and lim. Fetch one ad with GET /v1/blocket-bil/listing?id=26235204, or recommendations for an ad with recommendations and its ad_id. Every successful call costs 1 credit; failed calls cost nothing.

CarsJSONRESTMCP

More cars APIs

Use cases

Track cars within a price, year and mileage range

Use the Blocket Bil API to track cars within a price, year and mileage range

List the cheapest cars for a search with `sort=PRICE_ASC`

Use the Blocket Bil API to list the cheapest cars for a search with `sort=PRICE_ASC`

Compare stock by fuel, body type and transmission codes

Use the Blocket Bil API to compare stock by fuel, body type and transmission codes

Watch a single listing by `id` for changes

Use the Blocket Bil API to watch a single listing by `id` for changes

FAQ

Questions

Do I need a Blocket Bil API key?

No. You call this Blocket Bil API with your Perceptlayer key in the `X-API-Key` header, so there's no separate Blocket account to set up.

How much does the Blocket Bil API cost?

Each successful call costs one credit. New accounts get free credits to start, and credit packs bring the price down as you scale.

What format are responses in?

Every endpoint returns JSON, with no HTML parsing on your side.

Can I filter cars by price, year and mileage?

Yes. `search` takes `price_from` and `price_to`, `year_from` and `year_to`, and `mileage_from` and `mileage_to`, and you can combine them in one call.

Is this the official Blocket Bil API?

No. Perceptlayer is an independent service and is not affiliated with Blocket Bil. It returns Blocket Bil data as JSON with a Perceptlayer key, so there is no Blocket Bil developer account, app review or partner approval to get first. It only reads data: if Blocket Bil has an official API and you need to act on your own Blocket Bil account, such as posting, managing orders or reading private data, use that one.

Should I build a Blocket Bil scraper instead?

You can, but a Blocket Bil scraper is code you maintain: page changes break it, requests get blocked, and Blocket Bil's terms govern how you collect data. The Blocket Bil API gives you 3 endpoints of named JSON fields for 1 credit per successful call, and failed calls cost nothing. A scraper makes sense only for data these endpoints don't return, so check the response in the playground on this page first.

Try the Blocket Bil API with 100 free credits

No credit card. Failed calls are never billed.