# Hemnet Broker Search API

Search Hemnet brokers, or autocomplete them by name. Location ids drive the structured search; free text goes through the autocomplete because Hemnet rejects a query string on the structured search input.

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

## 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 |
| --- | --- | --- | --- |
| `query` | string | No | Broker name for autocomplete |
| `location_ids` | string | No | Comma-separated location ids for the structured search |
| `sort` | string | No | Broker sorting key, one of FULL_NAME_ASC, FULL_NAME_DESC, SALES_IN_AREA, AGENCY_SALES_IN_AREA, BROKER_TOTAL_SALES, BROKER_AGENCY_TOTAL_SALES, CURRENT_LISTINGS_COUNT, LAST_SALE or SHUFFLE |
| `limit` | integer | No | Results to return (default 10, maximum 50) |
| `offset` | integer | No | Results to skip |

## Example request

```bash
#!/bin/bash

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

## Example response

```json
{
    "success": true,
    "data": {
        "total": 812,
        "count": 10,
        "brokers": []
    }
}
```

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