GET/courts/map
List courts in a map area
Return tennis courts near a place or inside a bounding box (same pins as /app/friendly). Prefer `q` (e.g. London) for place search — fast sample with claimed kings. Explicit bbox uses the full kings RPC. Each court includes `king` (or null) and `map_url`.
Scope court:read
Parameters
| Parameter | Type | Description |
|---|
qquery | string | City or place name (preferred). Geocoded to a bbox. |
southquery | number | South latitude (if not using q) |
northquery | number | North latitude (if not using q) |
westquery | number | West longitude (if not using q) |
eastquery | number | East longitude (if not using q) |
zoomquery | number | Map zoom (controls result limit) |
curlRESPONSE
curl https://www.allcourt.pro/api/v1/courts/map \
-H "Authorization: Bearer acp_live_…"
{
"data": {
"place": {
"query": "London",
"display_name": "London, Greater London, England, United Kingdom",
"map_url": "https://www.allcourt.pro/app/friendly?share_lat=51.507&share_lng=-0.128&share_z=12"
},
"courts": [
{
"id": "…",
"name": "Queens Club Court 1",
"lat": 51.487,
"lng": -0.212,
"king": {
"user_id": "…",
"full_name": "Alex",
"wins": 3,
"claimed": false
},
"map_url": "https://www.allcourt.pro/app/friendly?share_lat=51.487&share_lng=-0.212&share_z=16"
}
]
}
}