# Immobiliare Count

Returns how many listings match the same filters as the search endpoint, without returning any listing data.

- **Documentation:** [https://scrappa.co/docs/immobiliare-api/immobiliare_count](https://scrappa.co/docs/immobiliare-api/immobiliare_count)
- **API group:** Immobiliare API
- **Endpoint:** `GET https://scrappa.co/api/immobiliare/count`

## 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 |
| --- | --- | --- | --- |
| `city_id` | integer | No | City identifier from the autocomplete endpoint. |
| `province` | string | No | Province code, for example MI or RM. |
| `contract` | string | Yes | v for sale, a for rental. |
| `category` | integer | Yes | 1 homes and apartments, 4 rooms, 6 new builds, 20 buildings, 21 warehouses, 22 garages, 23 offices, 24 land, 25 sheds, 26 shops. |
| `price_min` | integer | No | Lowest price in euro. |
| `price_max` | integer | No | Highest price in euro. |
| `surface_min` | integer | No | Smallest floor area in square metres. |
| `surface_max` | integer | No | Largest floor area in square metres. |
| `auctions` | boolean | No | true restricts the count to auction listings. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/immobiliare/count?city_id=8042&contract=v&category=1"
```

## Example response

```json
{
    "success": true,
    "data": {
        "count": 18748
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 404 | Not Found | The requested listing or agency was not found. This response is not billable. |
| 422 | Validation Error | A public parameter is invalid, for example a category outside the supported values or a search without a location. This response is not billable. |
| 503 | Service Unavailable | The service could not obtain a complete result. 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)
