# 4zida Place Children API Documentation

List the places below one place, as a tree: the municipalities of a city and their neighborhoods. Each node has the id and title. Use the ids as place_ids[] in /search. A place without children returns an empty list as a successful response.

- **Documentation:** [https://scrappa.co/docs/4zida-api/fourzida_place_children](https://scrappa.co/docs/4zida-api/fourzida_place_children)
- **API group:** 4zida API
- **Endpoint:** `GET https://scrappa.co/api/4zida/v1/place-children`

## 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 |
| --- | --- | --- | --- |
| `id` | integer | Yes | Place id from /autocomplete, for example 2 for Beograd. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/4zida/v1/place-children?id=2"
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A public parameter is missing, unknown or invalid, or 4zida cannot resolve a filter value. The response is not billable. |
| 404 | Resource Not Found | The requested 4zida resource does not exist. The response is not billable. |
| 503 | Unexpected Upstream Response | 4zida answered with a body that is not the documented shape. The response is not billable. |
| 503 | Upstream Unavailable | 4zida was temporarily unavailable or blocked the request. The response is not billable and the request never answers 429. |

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