# Boligsiden Foreclosures API Documentation

<p><strong>Boligsiden Foreclosures API Documentation</strong> List homes up for foreclosure auction: address, coordinates, address type, auction date, whether viewing is planned, publication date, build year, living area, lot area, rooms, public valuation, image and status. The upstream offers no location or price filter for auctions, so only paging and sorting are available.</p>

- **Documentation:** [https://scrappa.co/docs/boligsiden-api/boligsiden_foreclosures](https://scrappa.co/docs/boligsiden-api/boligsiden_foreclosures)
- **API group:** Boligsiden API
- **Endpoint:** `GET https://scrappa.co/api/boligsiden/foreclosures`

## 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 |
| --- | --- | --- | --- |
| `sort_by` | string | No | published_date or auction_date. |
| `sort_ascending` | boolean | No | true or false. Used with sort_by. Defaults to true. |
| `page` | integer | No | Page number, starting at 1. Page times page size must not exceed 10000. Defaults to 1. |
| `per_page` | integer | No | Rows per page, 1 to 100. Defaults to 20. |

## Example response

```json
{
    "data": {
        "meta": {
            "page": 1,
            "has_more": true,
            "new_hits": 4,
            "per_page": 20,
            "total_hits": 87,
            "total_pages": 5
        },
        "results": [
            {
                "id": "e024d31c-5796-4bb0-bb26-45cf800e873a",
                "url": "https://www.boligsiden.dk/adresse/smedebakken-63-4160-herlufmagle",
                "area": 95,
                "city": "Herlufmagle",
                "road": "Smedebakken",
                "rooms": 3,
                "region": "Region Sj\u00e6lland",
                "status": "Tvangsauktion",
                "address": "Smedebakken 63, 4160 Herlufmagle",
                "latitude": 55.333103,
                "lot_area": 788,
                "province": "Vest- og Sydsj\u00e6lland",
                "zip_code": 4160,
                "cancelled": false,
                "image_url": "https://images.boligsiden.dk/images/foreclosure_case/e024d31c-5796-4bb0-bb26-45cf800e873a/1440x960/4a207eeb-054a-4029-8529-36aaf5791996.webp?h=6d1dbc289558b8b2678c84440d65a05d5ccf53496d148fe21e097b2657405a35",
                "longitude": 11.805673,
                "valuation": 1170000,
                "address_id": "0a3f50b1-76bb-32b8-e044-0003ba298018",
                "auction_at": "2026-11-17T08:30:00Z",
                "year_built": 1949,
                "case_source": "statstidende",
                "address_type": "villa",
                "house_number": "63",
                "municipality": "N\u00e6stved",
                "published_at": "2026-10-24T00:00:00Z",
                "auction_planned": true,
                "viewing_planned": false
            }
        ]
    },
    "meta": {
        "billable": true,
        "endpoint_family": "foreclosure"
    },
    "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 | Boligsiden could not be reached, blocked or rate limited every attempt, or answered with a shape that no longer matches the documented contract. Retry shortly. This response is not billable. |

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