v1

latestOpenAPI 3.1.0MIT2026-07-13111497.3 KB
Places

Retrieve a Random Place

Returns a randomly selected place from the database along with all its associated geographical and administrative data. Useful for testing or displaying sample location data.

get/random/places

Response

Successfully retrieved a random place

status200 required

Example response

{
  "result": {
    "code": "osgb4000000074559833",
    "name_1": "Y Trallwng",
    "name_1_lang": "cym",
    "name_2": "Welshpool",
    "name_2_lang": "eng",
    "local_type": "Hamlet",
    "outcode": "BH24",
    "county_unitary": "Powys - Powys",
    "county_unitary_type": "UnitaryAuthority",
    "district_borough": "null",
    "district_borough_type": "null",
    "region": "Wales",
    "country": "Wales"
  }
}