# Logic-Immo Places API Documentation

<p><strong>Logic-Immo Places API</strong> resolves place ids to names. Each result has the display name, level, main postal code, administrative and department codes and the parent chain up to France. It works from id to name only. Text is rejected with 422: use the autocomplete route to turn text into an id. An unknown id is listed in <code>not_found</code> and never resolves to another place.</p>

- **Documentation:** [https://scrappa.co/docs/logic-immo-api/logic_immo_places](https://scrappa.co/docs/logic-immo-api/logic_immo_places)
- **API group:** Logic-Immo API
- **Endpoint:** `GET https://scrappa.co/api/logic-immo/places`

## 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 |
| --- | --- | --- | --- |
| `ids` | string | Yes | Place ids from autocomplete or search results, comma separated, up to 20. Example: AD08FR31096. |

## Example response

```json
{
    "data": {
        "results": [
            {
                "id": "AD08FR31096",
                "name": "Paris",
                "parents": [
                    {
                        "id": "AD02FR1",
                        "name": "France",
                        "type_key": "AD02"
                    },
                    {
                        "id": "AD06FR76",
                        "name": "Paris",
                        "type_key": "AD06"
                    }
                ],
                "type_key": "AD08",
                "country_id": "AD02FR1",
                "postal_code": "75000",
                "department_code": "75",
                "administrative_code": "75056"
            }
        ],
        "not_found": []
    },
    "meta": {
        "billable": true,
        "endpoint_family": "places"
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | An id is missing, malformed, or more than 20 ids were sent. This response is not billable. |
| 503 | Upstream Unavailable | Logic-Immo could not be reached, or returned data that does not match the expected shape. Retry shortly. 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)
