# Zonaprop Count

Runs the same search but returns no listings: the total plus the live facet catalogue, in roughly five kilobytes. Use it to power filter chips and result counts.

- **Documentation:** [https://scrappa.co/docs/zonaprop-api/zonaprop_search_count](https://scrappa.co/docs/zonaprop-api/zonaprop_search_count)
- **API group:** Zonaprop API
- **Endpoint:** `GET https://scrappa.co/api/zonaprop/search/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 |
| --- | --- | --- | --- |
| `operation_type` | integer | No | 1 venta, 2 alquiler, 4 alquiler temporal. |
| `real_estate_type` | integer | No | Verified Zonaprop type id. Use 33 or 34 for developments. |
| `location` | array | No | Up to 20 Zonaprop location ids. |
| `publisher_type` | string | No | COMPANY or PARTICULAR. |
| `currency` | string | No | USD or ARS. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/zonaprop/search/count?operation_type=2&real_estate_type=2&location%5B0%5D=V1-C-1003694"
```

## Example response

```json
{
    "success": true,
    "data": {
        "total": 4210,
        "returned": 0,
        "result": [],
        "facets": []
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 404 | Not Found | No Zonaprop posting or location matches that id. This response is not billable. |
| 422 | Validation Error | A parameter is invalid, including an unknown operation, property type, currency or sort value. Invalid enum values are rejected here rather than upstream, because upstream answers them with an empty result. This response is not billable. |
| 502 | Upstream Unavailable | Zonaprop did not return a usable result for this read. This response is not billable. |
| 503 | Service Unavailable | The upstream service is temporarily unavailable. Please retry shortly. |

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