# Pararius Locations

Returns the full taxonomy level behind a prefix, with the slugs needed to build a search URL. Use the city slug in the search endpoint.

- **Documentation:** [https://scrappa.co/docs/pararius-api/pararius_locations](https://scrappa.co/docs/pararius-api/pararius_locations)
- **API group:** Pararius API
- **Endpoint:** `GET https://scrappa.co/api/pararius/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 |
| --- | --- | --- | --- |
| `q` | string | Yes | Prefix to look up, for example ams. |
| `locale` | string | No | Language code: nl (default), en, es, it, de, fr. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/pararius/locations?q=amsterdam&locale=nl"
```

## Example response

```json
{
    "success": true,
    "data": {
        "query": "amsterdam",
        "count": 2,
        "locations": [
            {
                "value": "Amsterdam",
                "type": "city",
                "filters": {
                    "province": "Noord-Holland",
                    "city": "amsterdam"
                },
                "point": [
                    4.8936,
                    52.3676
                ]
            }
        ]
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 404 | Not Found | The requested listing, gallery or agency was not found. On /listing and /agency a 404 is not billable. On /gallery it is an answer rather than an error: the listing has no gallery, so it comes back as a successful empty gallery and bills the one lookup it made. |
| 422 | Validation Error | A public parameter is invalid. This response is not billable. |
| 503 | Service Unavailable | The service could not obtain a complete result. This response is not billable and no credits are charged. |

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