# Leboncoin Autos Nearby

Find car 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-autos-api/leboncoin_autos_nearby](https://scrappa.co/docs/leboncoin-autos-api/leboncoin_autos_nearby)
- **API group:** Leboncoin Autos API
- **Endpoint:** `GET https://scrappa.co/api/leboncoin-autos/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` | integer | Yes | Search radius in metres, max 500000. |
| `owner_type` | string | No | all, pro for professionals, or private. |
| `sort_by` | string | No | relevance, time, price or proximity. |
| `sort_order` | string | No | asc or desc. |
| `page` | integer | No | 1-based page number. |
| `limit` | integer | No | Listings per page, 1-100. Default 35. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/leboncoin-autos/nearby?lat=48.8566&lng=2.3522&radius=5000&limit=1"
```

## Example response

```json
{
    "success": true,
    "data": {
        "ads": [],
        "total": 7629,
        "max_pages": 100,
        "page": 1,
        "limit": 1,
        "has_more": true
    },
    "meta": {
        "endpoint_family": "nearby",
        "billable": true
    }
}
```

## Errors

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