# Njuskalo Locations API

<p>Find the location slugs that the property search accepts. The list is curated: Croatian counties, the largest cities and the districts of Zagreb, each checked to work as a search location. Njuskalo has no public location search, so places that are not in the list cannot be used as a location filter. Each entry has its slug, label, level (county, city or district) and the slug of its parent county where one exists. The match ignores accents and capital letters. A query without a match answers 200 with an empty list and costs no credit. Cost: 1 credit per successful lookup with results.</p>

- **Documentation:** [https://scrappa.co/docs/njuskalo-api/njuskalo_locations](https://scrappa.co/docs/njuskalo-api/njuskalo_locations)
- **API group:** Njuskalo API
- **Endpoint:** `GET https://scrappa.co/api/njuskalo/locations`

## 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 | Yes | Place name, at least 2 characters, e.g. zag. |

## Example response

```json
{
    "data": {
        "count": 2,
        "query": "zag",
        "locations": [
            {
                "slug": "zagreb",
                "label": "Grad Zagreb",
                "level": "county",
                "parent": null
            },
            {
                "slug": "zagrebacka",
                "label": "Zagreba\u010dka",
                "level": "county",
                "parent": null
            }
        ]
    },
    "meta": {
        "credits": 1,
        "billable": true,
        "endpoint_family": "locations"
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
|  | The listing, agency or result page does not exist. This response is not billable. |  |
|  | A parameter or filter is missing or invalid. This response is not billable. |  |
|  | Njuskalo is temporarily unavailable or answered a page that no longer matches the documented contract. Retry the request. 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)
