# Changelog of Hemnet Scraper – Swedish Real Estate Listings & Sold Prices (`haketa/hemnet-scraper`) Actor

- **URL**: https://apify.com/haketa/hemnet-scraper/changelog.md
- **Full Actor documentation**: https://apify.com/haketa/hemnet-scraper.md

## Changelog

### 0.2.0 — 2026-11-02

- **Fixed: adapted the parser to Hemnet's new site.** Hemnet migrated its search pages from the Next.js Pages Router (`__NEXT_DATA__`) to the App Router, which streams data through `self.__next_f` RSC chunks. The old parser found no `__NEXT_DATA__` blob and returned **0 results**. Added a `self.__next_f` flight-stream parser that recovers the Apollo-normalized `ListingCard` (for sale) and `SaleCard` (sold) objects with a string-aware balanced-brace scan and feeds them through the existing field pipeline — every output field name is unchanged.
- **Fixed: de-indexed sold homes no longer collapse.** Some sold listings ship an empty `listingId` (`""`); `pick()` now treats blank strings as absent and falls back to the stable internal id, so these records keep a unique id instead of all deduping to a single null key (recovered ~10 extra sold records per page in testing).
- **Transport:** kept the Impit (Firefox-impersonation) HTTP client with datacenter-first → Swedish-residential fallback; the fetch now accepts either `__NEXT_DATA__` (legacy) or `self.__next_f` (current) as a valid payload so a real page is never mistaken for a block.
- **Verified:** fresh run of **400 for-sale listings** in Stockholm län with **100% coverage** on url, address, property type, area, municipality, broker agency, and GPS coordinates; asking price ~92%, rooms ~96%, living area ~96%; **0 duplicates**, no value bugs. Sold-price (slutpriser) parsing re-verified end-to-end with final price, price change %, and sold date populated.
- **Docs:** refreshed the README output example and field reference to match the current live output exactly; added this changelog.

### 0.1.0 — 2026-06-02

- Initial release. Scrapes active listings (till salu) and sold prices (slutpriser) from Hemnet.se.
- Targeting via Region dropdown, free-text location, or ready-made Hemnet search URLs; automatic for-sale vs. sold detection.
- Filters for property type, price, rooms, living area, and sold-within window; automatic pagination and de-duplication.
- Optional per-property detail enrichment (description, images). Exports to JSON, CSV, Excel, XML, and API.
