# Leboncoin Immobilier Nearby

Find property listings around a latitude and longitude within a chosen radius. Listings carry the same field set as the search endpoint.

- **Documentation:** [https://scrappa.co/docs/leboncoin-immo-api/leboncoin_immo_nearby](https://scrappa.co/docs/leboncoin-immo-api/leboncoin_immo_nearby)
- **API group:** Leboncoin Immobilier API
- **Endpoint:** `GET https://scrappa.co/api/leboncoin-immo/nearby`

## 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 |
| --- | --- | --- | --- |
| `lat` | number | Yes | Centre latitude. |
| `lng` | number | Yes | Centre longitude. |
| `radius_km` | number | Yes | Search radius in kilometres, 0.1-100. |
| `vertical` | string | No | Restrict to a vertical, or all. |
| `page` | integer | No | 1-based page number. |
| `sort` | string | No | relevance, time, price or proximity. |
| `order` | string | No | asc or desc. |
| `limit` | integer | No | Listings per page, 1-100. Default 20. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/leboncoin-immo/nearby?lat=47.285&lng=-2.36543&radius_km=5"
```

## Example response

```json
{
    "success": true,
    "data": {
        "results": [],
        "total": 8857,
        "total_pro": 6000,
        "total_private": 2857,
        "max_pages": 443
    },
    "meta": {
        "endpoint_family": "nearby",
        "billable": true
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 404 | Not Found | The requested property listing 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)
