OnTheMarket property search

GET https://api.api.sh/onthemarket/v1/search
1 credit / call real estate try it in the playground →

Homes for sale and to rent in the UK on OnTheMarket with the site's filters: place (town, region or postcode district), property type, price, bedrooms, radius, keywords, date added, under offer or let agreed, new homes, auction, retirement, shared ownership, student, pets, furnishing, let length, greener choice, accessible and character properties, plus sort. Each result has id, link, title, property type, price and qualifier, bedrooms, bathrooms, address, coordinates, key features, labels (reduced, new), photos and the estate agent (id, name, phone, logo, page). Pass next_page back as page; null on the last page.

Every response includes credits_used: the credits this call cost.

Parameters

nametypedescription
locationrequired string Place: a town, county, region or postcode district (london, manchester, n11, south-east-london), or an onthemarket.com search link. Example: london
type for-sale | to-rent Buy or rent. Example: for-sale
property_type property | houses | detached | semi-detached | terraced | flats-apartments | bungalows | land | farms-land Property type. Example: property
price_min number Minimum price (GBP; per month when renting).
price_max number Maximum price (GBP; per month when renting).
bedrooms_min integer Minimum bedrooms.
bedrooms_max integer Maximum bedrooms.
radius number Search radius around the place, in miles (0.25 to 40).
keywords string Words in the listing, comma list (garden, garage...).
added 24h | 3d | 7d | 14d Added in the last 24h, 3d, 7d or 14d.
include_under_offer boolean Include properties under offer or sold STC.
include_let_agreed boolean Include let-agreed rentals.
new_homes include | only | exclude New homes: include (default), only or exclude.
auction boolean Auction properties only.
retirement boolean true: retirement homes only; false: leave them out.
shared_ownership boolean true: shared ownership only; false: leave it out.
student boolean Student lets only.
pet_friendly boolean Pet-friendly rentals only.
shared boolean House shares only.
furnished furnished | part-furnished | unfurnished Furnishing (rentals).
let_length long-term | short-term Let length (rentals).
greener_choice boolean Greener homes only (EPC A-C, heat pumps, solar...).
accessible boolean Homes with accessible features only.
character_property boolean Character properties only.
sort recommended | newest | price_asc | price_desc Sort order. Example: recommended
page integer Result page (1 = first). Example: 1

Every endpoint also takes fresh, raw, fields (see lean responses and caching).

Example

curl "https://api.api.sh/onthemarket/v1/search?location=london" \
  -H "x-api-key: $APISH_KEY"

Response

A JSON object with the fields described above, plus raw (the source's own data), cached, fetched_at and credits_used. Errors return {"success": false, "error": "…"} with the HTTP status (see errors). A lookup that ran but found nothing (404) costs the price above; refused calls and errors on our side are free (what's charged).

The fastest way to see the full response is the playground: it runs this endpoint with your account and shows the exact JSON.