# Hemnet Slutpriser Search API

Search Hemnet's `GET /api/hemnet/sold` endpoint for slutpriser — properties already sold, with the achieved selling price, square-meter selling price, sold date and tenure. Sold ids are 64-bit and are returned as strings; keep them as strings. The upstream sold-search input is narrower than the for-sale and upcoming ones and takes no free-text query, so `q` is rejected here with 422 rather than ignored.

- **Documentation:** [https://scrappa.co/docs/hemnet-api/hemnet_sold](https://scrappa.co/docs/hemnet-api/hemnet_sold)
- **API group:** Hemnet API
- **Endpoint:** `GET https://scrappa.co/api/hemnet/sold`

## Authentication

Send your Scrappa API key in the `X-API-KEY` request header. Paid endpoints also support accountless x402 payments when called without an API key.

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `location_ids` | string | No | Comma-separated Hemnet location ids |
| `limit` | integer | No | Cards per request (default 1000, maximum 2000) |
| `offset` | integer | No | Cards to skip. offset + limit may not exceed 2500 |
| `sort` | string | No | Sold sorting key, one of NEWEST, OLDEST, HIGHEST_PRICE, LOWEST_PRICE, MOST_ROOMS, LEAST_ROOMS, AREA, AREA_DESC, LARGEST_PRICE_CHANGE, SMALLEST_PRICE_CHANGE, HIGHEST_FEE, LOWEST_FEE, LARGEST_LIVING_AREA, SMALLEST_LIVING_AREA, LARGEST_LAND_AREA, SMALLEST_LAND_AREA, HIGHEST_PRICE_PER_M2, LOWEST_PRICE_PER_M2, STREET_ADDRESS or STREET_ADDRESS_DESC |
| `expand_locations` | string | No | Widen the search around each location, one of EXPAND_1000M, EXPAND_2000M, EXPAND_5000M, EXPAND_10000M, EXPAND_15000M, EXPAND_30000M, EXPAND_50000M or EXPAND_100000M |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/hemnet/sold?location_ids=18031&limit=20"
```

## Example response

```json
{
    "success": true,
    "data": {
        "total": 247787,
        "count": 20,
        "cards": []
    }
}
```

## More Scrappa resources

- [API documentation](https://scrappa.co/docs)
- [Full LLM-readable API reference](https://scrappa.co/llms-full.txt)
- [OpenAPI specification](https://scrappa.co/docs/api.json)
- [Pricing](https://scrappa.co/pricing)
