/onthemarket/locations/search

POST /api/onthemarket/locations/search

Price: 1 credit

Resolve a location name (town, district, postcode or station) into OnTheMarket location identifiers. Returns matches with location_id, name, location_type and the parent area. Feed location_id into the onthemarket/properties/search endpoint.

How to use it

Type-ahead resolver for OnTheMarket locations. Pass a keyword (town, district, postcode or station) and get matches, each with location_id (e.g. bath, central-bath, bath-and-north-east-somerset), name, location_type (town, locality, neighbourhood, local-authority, postcode) and parent. Use the location_id with onthemarket/properties/search and onthemarket/agents/search.

Parameters

Request body

Response

Errors

Response headers