# Boliga For Sale Search API Documentation

<p><strong>Boliga For Sale Search API Documentation</strong> Search homes for sale in Denmark on Boliga: for each listing the id, public Boliga url, address, zip code, city, municipality, coordinates, property type code, asking price in DKK, price per square metre, rooms, living size, lot size, build year, energy class, days on the market, creation date (ISO 8601, UTC), views and a photo. Filter by property type, municipality, zip codes, price, size, rooms and build year, sort by price, and page with page and page_size. Fields Boliga does not know are omitted. A valid search with no matches is a successful response with an empty results list.</p>

- **Documentation:** [https://scrappa.co/docs/boliga-api/boliga_search](https://scrappa.co/docs/boliga-api/boliga_search)
- **API group:** Boliga API
- **Endpoint:** `GET https://scrappa.co/api/boliga/search`

## 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 |
| --- | --- | --- | --- |
| `page` | integer | No | Page number, starting at 1. Defaults to 1. |
| `page_size` | integer | No | Listings per page, 1 to 100. Defaults to 50. |
| `property_type` | string | No | Boliga property type code: 1 villa, 2 townhouse, 3 apartment, 4 holiday home, 5 co-operative home. A comma separated list such as 1,3 is allowed. Example: 1. |
| `municipality` | integer | No | Danish municipality code, e.g. 101 for Copenhagen. Example: 101. |
| `zip_codes` | string | No | One or more 4-digit Danish zip codes separated by commas. Example: 8600. |
| `price_min` | integer | No | Minimum asking price in DKK. |
| `price_max` | integer | No | Maximum asking price in DKK. |
| `size_min` | integer | No | Minimum living size in square metres. |
| `size_max` | integer | No | Maximum living size in square metres. |
| `rooms_min` | integer | No | Minimum number of rooms. |
| `rooms_max` | integer | No | Maximum number of rooms. |
| `build_year_min` | integer | No | Earliest build year, e.g. 2000. |
| `build_year_max` | integer | No | Latest build year, e.g. 1900. |
| `sort` | string | No | Sort order: price-a (price ascending) or price-d (price descending). Boliga default order when omitted. |

## Example response

```json
{
    "data": {
        "meta": {
            "page": 1,
            "has_more": true,
            "page_size": 3,
            "total_count": 25558,
            "total_pages": 8520
        },
        "results": [
            {
                "id": 2374672,
                "url": "https://www.boliga.dk/bolig/2374672/hyskenstraede-7-1207-koebenhavn-k",
                "city": "K\u00f8benhavn K",
                "size": 291,
                "price": 20950000,
                "rooms": 12,
                "views": 427,
                "images": [
                    "https://i.boliga.org/dk/550x/2374/2374672.jpg"
                ],
                "street": "Hyskenstr\u00e6de 7",
                "latitude": 55.67804,
                "lot_size": 90,
                "zip_code": 1207,
                "longitude": 12.57678,
                "build_year": 1800,
                "created_at": "2026-10-07T23:30:03Z",
                "down_payment": 1050000,
                "municipality": 101,
                "basement_size": 77,
                "days_for_sale": 7,
                "price_per_sqm": 71993,
                "property_type": 1
            }
        ]
    },
    "meta": {
        "billable": true,
        "endpoint_family": "search"
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A query parameter is missing or invalid. No upstream request is made. This response is not billable. |
| 503 | Service Unavailable | The upstream service is temporarily unavailable. Please retry shortly. |

## 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)
