# Commercial Listing Count

Returns the number of commercial listings for a location, type and rent/buy filter. The location is a geocode from the commercial locations route.

- **Documentation:** [https://scrappa.co/docs/german-commercial-real-estate-api/commercial_is24_count](https://scrappa.co/docs/german-commercial-real-estate-api/commercial_is24_count)
- **API group:** German Commercial Real Estate API
- **Endpoint:** `GET https://scrappa.co/api/commercial/is24/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 |
| --- | --- | --- | --- |
| `location` | string | Yes | Geocode path or id from the commercial locations route. |
| `type` | string | No | office, store, gastronomy, tradesite or specialpurpose. |
| `listing_type` | string | No | rent (default), buy or all. Rent price is EUR per m2 per month. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/commercial/is24/count?location=%2Fde%2Fberlin%2Fberlin&type=office&listing_type=rent"
```

## Example response

```json
{
    "success": true,
    "data": {
        "total": 12216,
        "coming_soon_total": 0
    },
    "meta": {
        "endpoint_family": "is24_commercial",
        "attempts": 1
    }
}
```

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