Marketplaces
Blocket Scraper
blocket.se
Blocket is Sweden's largest classifieds marketplace, covering cars, property and second-hand goods. ScrapeUnblocker renders its listing pages as a buyer would see them and returns the price, condition and location for each ad, holding a clean 100% at around five seconds a page.
What you can extract
- Listing title and category
- Price and currency
- Item condition and description
- Seller type and location (kommun)
- Photos and listing URL
How to scrape it
curl -X POST \
-H "X-ScrapeUnblocker-Key: $SU_API_KEY" \
"https://api.scrapeunblocker.com/getPageSource?url=https%3A%2F%2Fwww.blocket.se%2Fannonser%2Fhela_sverige%2Fbilar&parsed_data=true"import requests
resp = requests.post(
"https://api.scrapeunblocker.com/getPageSource",
headers={"X-ScrapeUnblocker-Key": SU_API_KEY},
params={"url": "https://www.blocket.se/annonser/hela_sverige/bilar", "parsed_data": True},
)
print(resp.text)import { ScrapeUnblockerClient } from 'scrapeunblocker';
const su = new ScrapeUnblockerClient({ apiKey: process.env.SU_API_KEY });
const results = await su.getPageSource({
url: 'https://www.blocket.se/annonser/hela_sverige/bilar',
parsedData: true,
});
console.log(results); Requests are POST and take their parameters in the query string. Browser rendering always happens - there is no flag to enable.
Frequently asked questions
Is it legal to scrape Blocket?
Collecting publicly available Blocket data such as listing prices, item condition and seller locations is lawful in many jurisdictions, but the rules depend on your country, the data you collect and how you use it. Some of it can be personal data, so follow the privacy rules that apply to you. ScrapeUnblocker returns the public page; what you collect and how you use it is your responsibility.
How do I scrape Blocket without getting blocked?
Blocket uses bot detection and rate limiting. ScrapeUnblocker renders the page in a real browser, rotates residential and ISP exits and handles challenges, so you get the page a visitor sees rather than a block page. In ScrapeUnblocker's benchmark it returned real content on 100% of 1,000 calls, about 5.4s per call.
What Blocket data can I get?
Blocket listing pages give you each ad's title and category, price and currency, item condition and description, seller type and location (kommun), photos and the listing URL, across cars, property and second-hand goods. Take the rendered HTML, or pass parsed_data=true for structured JSON.
Do I need a Blocket API or account?
No. ScrapeUnblocker returns the public Blocket page as HTML, or structured JSON with parsed_data=true, so you do not need a Blocket API account. Send a Blocket category or search URL to /getPageSource with your ScrapeUnblocker key. Use steps for clicks, typing or scrolling when a page needs them.
Can I scrape Blocket from Sweden?
Yes. Add proxy_country=se to send the request through a Swedish exit IP, so Blocket serves the page as a visitor in Sweden sees it. proxy_country takes a lowercase two-letter code from the published country list; a country without available exits returns HTTP 400 with the list of available ones.
How much does it cost to scrape Blocket?
Each Blocket request costs 1 credit, from EUR 1.00 per 1,000 on pay as you go to about EUR 0.55 per 1,000 on the Ultimate plan. Delivered pages are billed, including a site's own 404 or 410 page. A 403 block, a timeout, a 523 origin unreachable, a 429 and errors on ScrapeUnblocker's side are not billed. The free trial includes 500 requests, no card.
Related scrapers
Start scraping this site today
Free tier included. No credit card required to test it.