# Hemnet Listing Counts API

Get the total number of Hemnet listings for the for-sale, upcoming and sold families in a single request. Each family takes its own filter object, so market size can be measured before any result set is paged.

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

## 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 |
| --- | --- | --- | --- |
| `for_sale_location_ids` | string | No | Comma-separated location ids applied to the for-sale total |
| `upcoming_location_ids` | string | No | Comma-separated location ids applied to the upcoming total |
| `sold_location_ids` | string | No | Comma-separated location ids applied to the sold total |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/hemnet/counts?for_sale_location_ids=18031"
```

## Example response

```json
{
    "success": true,
    "data": {
        "for_sale": 2713,
        "upcoming": 749,
        "sold": 247787
    }
}
```

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