# La Centrale Geo API Documentation

Lookup a zip code by coordinates, or reverse-geocode coordinates to a zip code. Powers the location filters.

- **Documentation:** [https://scrappa.co/docs/lacentrale-api/lacentrale_geo](https://scrappa.co/docs/lacentrale-api/lacentrale_geo)
- **API group:** La Centrale API
- **Endpoint:** `GET https://scrappa.co/api/lacentrale/v1/geo`

## 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 |
| --- | --- | --- | --- |
| `zip_code` | string | No | 5-digit French zip code. XOR with latitude+longitude. |
| `latitude` | number | No | Latitude for reverse lookup (-90 to 90). |
| `longitude` | number | No | Longitude for reverse lookup (-180 to 180). |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/lacentrale/v1/geo?zip_code=75001"
```

## Example response

```json
{
    "success": true,
    "data": {
        "location": {
            "zip_code": "75001",
            "latitude": 48.8626304852,
            "longitude": 2.33629344655,
            "towns": [
                "PARIS"
            ]
        }
    },
    "meta": {
        "endpoint_family": "geo"
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
|  | Missing required header or invalid parameters |  |
|  | Upstream service error |  |

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