# Boligsiden Agencies API Documentation

<p><strong>Boligsiden Agencies API Documentation</strong> List the real estate agencies that sell in a city or municipality, sorted by rating, number sold, sale time, price change or price per square metre. Rows are slim (id, name, contact, rating, active listings); open the agency endpoint for the full profile. The result list is cached for six hours and paged by Scrappa.</p>

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

## 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_name` | string | Yes | City or municipality name as shown by the locations endpoint. Example: Aarhus C. |
| `location_type` | string | No | city (default) or municipality. |
| `address_type` | string | No | Only count agencies active in this address type, for example villa. |
| `sort_by` | string | No | rating, amount_sold, sale_time, price_change or price_per_area. |
| `sort_ascending` | boolean | No | true or false. Defaults to false. |
| `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,
            "per_page": 20,
            "total_hits": 45,
            "total_pages": 3
        },
        "results": [
            {
                "id": "fe133761-8660-40fa-840a-016badf5d123",
                "cvr": "33017839",
                "name": "Nybolig Aarhus C - Bruuns Bro Lejligheder",
                "slug": "nybolig-aarhus-c---bruuns-bro-lejligheder-m.p.-bruuns-gade-3-8000-aarhus-c-fe133761866040fa840a016badf5d123",
                "email": "8001@nybolig.dk",
                "phone": "86174011",
                "rating": {
                    "buyer": {
                        "score": 9.25,
                        "responses": 63
                    },
                    "seller": {
                        "score": 9.66,
                        "responses": 102
                    }
                },
                "address": {
                    "city": "Aarhus C",
                    "road": "M.P. Bruuns Gade",
                    "floor": "st",
                    "zip_code": 8000,
                    "house_number": "3"
                },
                "image_url": "https://images.boligsiden.dk/images/realtor_image/fe133761-8660-40fa-840a-016badf5d123/1440x960/d9e90ed3-44ae-45f9-8d26-e260230ffe01.webp?h=6e7842a56c1cdd1d3832c1de069da88629c0182b25f7ac41d714acbd8193b9b5",
                "branch_name": "Nybolig",
                "active_listings": {
                    "for_rent": 9,
                    "for_sale": 54,
                    "cooperative": 1
                }
            }
        ]
    },
    "meta": {
        "billable": true,
        "endpoint_family": "realtor_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 | 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)
