APIs / Leboncoin Immo / District
Leboncoin Immo: District
District from Leboncoin Immo as JSON. 1 credit per successful call.
GET /v1/leboncoin-immo/district
Parameters
Send parameters in the query string.
| Parameter | Type | Required | Allowed values |
|---|---|---|---|
district_id | integer | Required | Any |
Example request
Leboncoin Immo
GET/v1/leboncoin-immo/district?district_id=1
{
"success": true,
"data": {
"id": "4651a824-e84f-4d25-9cf9-2971564de436",
"id_polygon": 1,
"libelle": "Ain",
"geojson": "{\"type\":\"FeatureCollection\",\"features\":[{\"type\":\"Feature\",\"geometry\":{\"type\":\"Polygon\",\"coordinates\":[[[4.727864,45.946936],[4.727911,45.947509],[4.727945,45.947604],[4.728167,45.948006],[4.728698,45.948857],[4.729545,45.950078],[4.729667,4…",
"type_id": 4,
"polygon": "45.78459,5.255595|45.78176,5.248134|45.777578,5.239871|45.775244,5.235652|45.770728,5.22918|45.769134,5.223915|45.768787,5.21843|45.769503,5.214158|45.771287,5.210603|45.772022,5.206635|45.771457,5.199509|45.771023,5.19476|45.771583,5.19164…",
"centroide_x": 5.44245,
"centroide_y": 46.0639
},
"meta": {
"duration_ms": 6249,
"endpoint_family": "district"
}
}200 OKJSONX-Credits-Used: 1
Recorded 12 Nov 2026 and shortened.
Run this endpoint in the playground with your own parameters. 1 credit per successful call; failed calls are free.
Response fields
data has these 8 fields, read from a recorded call. The recording leaves out fields that were empty, so a live call can return more.
| Field | Type |
|---|---|
id | string |
id_polygon | integer |
libelle | string |
geojson | string |
type_id | integer |
polygon | string |
centroide_x | number |
centroide_y | number |