# Bien'ici Place Details

Returns a department with its cities and delegated communes. Each child carries the zone id you can hand straight back to search in its `id`, alongside its INSEE code and postal codes. Only the department is honored as a selector upstream, so pick the place you want out of the returned hierarchy yourself.

- **Documentation:** [https://scrappa.co/docs/bienici-api/bienici_place_details](https://scrappa.co/docs/bienici-api/bienici_place_details)
- **API group:** Bien'ici API
- **Endpoint:** `GET https://scrappa.co/api/bienici/place-details`

## 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 |
| --- | --- | --- | --- |
| `department` | string | Yes | Department INSEE code, 2 or 3 digits, for example 13 for Bouches-du-Rhône. The overseas departments are 971, 972, 973, 974, 976 and 977, and each is accepted. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/bienici/place-details?department=13"
```

## Example response

```json
{
    "success": true,
    "data": {
        "results": [
            {
                "id": "AaA4_iqYmLxk3VI7OqRq",
                "name": "Bouches-du-Rh\u00f4ne",
                "type": "department",
                "insee_code": "13",
                "zoneIds": [
                    "-7393"
                ],
                "children": [
                    {
                        "id": "-76469",
                        "name": "Marseille",
                        "insee_code": "13055",
                        "postal_codes": [
                            "13000"
                        ]
                    }
                ]
            }
        ],
        "resultCount": 1
    },
    "meta": {
        "endpoint_family": "place_details"
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 404 | Not Found | The requested house was not found. This response is not billable. |
| 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. |

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