# Kununu Closest Cities

Get kununu city UUIDs ordered by distance from geographic coordinates. Useful to chain into location-filtered job searches.

- **Documentation:** [https://scrappa.co/docs/kununu-api/kununu_closest_cities](https://scrappa.co/docs/kununu-api/kununu_closest_cities)
- **API group:** Kununu API
- **Endpoint:** `GET https://scrappa.co/api/kununu/closest-cities`

## 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 |
| --- | --- | --- | --- |
| `country` | string | No | Country code: de (Germany), at (Austria), ch (Switzerland). Default: de |
| `latitude` | number | Yes | Latitude of the search center (e.g., 52.52) |
| `longitude` | number | Yes | Longitude of the search center (e.g., 13.405) |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/kununu/closest-cities?country=de&latitude=52.52&longitude=13.405"
```

## Example response

```json
{
    "success": true,
    "data": [
        "city-uuid-1",
        "city-uuid-2"
    ],
    "meta": {
        "total": 2,
        "cached": false,
        "cached_at": null
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 401 | Unauthorized | API key is missing or invalid |
| 422 | Validation Error | A required parameter is missing or invalid |
| 503 | Blocked By Kununu | Kununu returned anti-bot protection. This response is retryable and is not billed. |
| 500 | Internal Server Error | Service temporarily unavailable or unexpected error occurred. This response is not billed. |

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