APIs / Real estate / OnTheMarket

1 credit per call4 endpoints23 datapointsChecked working 6 Dec 2026

OnTheMarket API

OnTheMarket API for property search for sale or to rent, listing details, estate agents and agent listings as JSON. 4 endpoints, 1 credit per successful call.

OnTheMarket
GET/v1/onthemarket/search?search_type=for-sale&location_id=nottingham
{
  "success": true,
  "data": {
    "search_metadata": {
      "page": 1,
      "frame_size": 30,
      "total_results": 3005,
      "total_results_display": "3,005",
      "has_more": true,
      "last_page": 34,
      "sort_field": "recommended",
      "direction": "desc",
      "search_type": "for-sale",
      "location_id": "nottingham",
      "location_type": "town",
      "location_name": "Nottingham"
    },
    "listings": [
      {
        "id": "20727387",
        "property_title": "3 bedroom terraced house for sale",
        "price": "£190,000",
        "price_value": 190000,
        "price_qualifier": "Guide price",
        "bedrooms": 3,
        "bathrooms": 1,
        "address": "Kings Avenue, Gedling",
        "postcode": "NG4",
        "address_locality": "Nottingham",
        "features": [
          "Tenure: Freehold",
          "Terraced home",
          "Three bedrooms"
        ],
        "tenure": "Freehold",
        "location": {
          "lat": 52.978578434327,
          "lon": -1.0851169391872
        },
        "images": [
          {
            "url": "https://media.onthemarket.com/properties/20727387/1657675141/image-0-480x320.jpg",
            "webp_url": "https://media.onthemarket.com/properties/20727387/1657675141/image-0-480x320.webp"
          },
          {
            "url": "https://media.onthemarket.com/properties/20727387/1657675141/image-1-480x320.jpg",
            "webp_url": "https://media.onthemarket.com/properties/20727387/1657675141/image-1-480x320.webp"
          },
          {
            "url": "https://media.onthemarket.com/properties/20727387/1657675141/image-2-480x320.jpg",
            "webp_url": "https://media.onthemarket.com/properties/20727387/1657675141/image-2-480x320.webp"
          }
        ],
        "images_count": 17,
        "floorplans_count": 1,
        "main_label": "Recently added",
        "data_label_id": "recent",
        "days_since_added_reduced": "Added < 7 days",
        "spotlight": true,
        "for_sale": true,
        "property_url": "https://www.onthemarket.com/details/20727387/",
        "agent": {
          "branch_id": 5394,
          "name": "haart Estate Agents - Nottingham",
          "telephone": "0115 774 8989",
          "details_url": "https://www.onthemarket.com/agents/branch/haart-estate-agents-nottingham/",
          "logo_url": "https://media.onthemarket.com/agents/branches/5394/240501111517745/logo-190x100.jpg"
        }
      },
      {
        "id": "20448444",
        "property_title": "3 bedroom detached house for sale",
        "price": "£365,000",
        "price_value": 365000,
        "bedrooms": 3,
        "address": "Plot 602, The Steeton at Park View, Gedling, Arnold Lane NG4",
        "postcode": "NG4",
        "address_locality": "Gedling",
        "features": [
          "Modern three bedroom detached home",
          "1,018 sq. ft. of living space",
          "New build"
        ],
        "location": {
          "lat": 52.985839,
          "lon": -1.095475
        },
        "images": [
          {
            "url": "https://media.onthemarket.com/properties/20448444/1648520164/image-0-480x320.jpg",
            "webp_url": "https://media.onthemarket.com/properties/20448444/1648520164/image-0-480x320.webp"
          },
          {
            "url": "https://media.onthemarket.com/properties/20448444/1648520164/image-1-480x320.jpg",
            "webp_url": "https://media.onthemarket.com/properties/20448444/1648520164/image-1-480x320.webp"
          },
          {
            "url": "https://media.onthemarket.com/properties/20448444/1648520164/image-2-480x320.jpg",
            "webp_url": "https://media.onthemarket.com/properties/20448444/1648520164/image-2-480x320.webp"
          }
        ],
        "images_count": 10,
        "floorplans_count": 2,
        "online_viewing": true,
        "virtual_tour": true,
        "days_since_added_reduced": "Added > 14 days",
        "for_sale": true,
        "property_url": "https://www.onthemarket.com/details/20448444/",
        "agent": {
          "branch_id": 54012,
          "name": "Keepmoat - Park View, Gedling",
          "telephone": "0115 774 9166",
          "details_url": "https://www.onthemarket.com/new-homes/developers/development/park-view-gedling-54012/",
          "logo_url": "https://media.onthemarket.com/agents/companies/10180/260416101924597/logo-190x100.jpeg"
        }
      },
      {
        "id": "20588447",
        "property_title": "1 bedroom flat for sale",
        "price": "£68,000",
        "price_value": 68000,
        "price_qualifier": "Offers over",
        "bedrooms": 1,
        "bathrooms": 1,
        "address": "Huntingdon Street, Nottingham NG1",
        "postcode": "NG1",
        "address_locality": "Nottingham",
        "features": [
          "Tenure: Leasehold",
          "Vacant property"
        ],
        "tenure": "Leasehold",
        "location": {
          "lat": 52.955646,
          "lon": -1.141968
        },
        "images": [
          {
            "url": "https://media.onthemarket.com/properties/20588447/1653326703/image-0-480x320.jpg",
            "webp_url": "https://media.onthemarket.com/properties/20588447/1653326703/image-0-480x320.webp"
          },
          {
            "url": "https://media.onthemarket.com/properties/20588447/1653326703/image-1-480x320.jpg",
            "webp_url": "https://media.onthemarket.com/properties/20588447/1653326703/image-1-480x320.webp"
          },
          {
            "url": "https://media.onthemarket.com/properties/20588447/1653326703/image-2-480x320.jpg",
            "webp_url": "https://media.onthemarket.com/properties/20588447/1653326703/image-2-480x320.webp"
          }
        ],
        "images_count": 18,
        "floorplans_count": 1,
        "online_viewing": true,
        "virtual_tour": true,
        "main_label": "Reduced today",
        "data_label_id": "reduced",
        "days_since_added_reduced": "Reduced today",
        "reduced": true,
        "for_sale": true,
        "property_url": "https://www.onthemarket.com/details/20588447/",
        "agent": {
          "branch_id": 68493,
          "name": "Let Property - Glasgow",
          "telephone": "0141 376 3809",
          "details_url": "https://www.onthemarket.com/agents/branch/let-property-glasgow/",
          "logo_url": "https://media.onthemarket.com/agents/companies/13754/240404135321912/logo-190x100.png"
        }
      }
    ],
    "facets": [
      {
        "name": "property-features[]",
        "text": "Outside space",
        "terms": [
          {
            "id": "driveway",
            "text": "Driveway"
          },
          {
            "id": "garden",
            "text": "Garden"
          },
          {
            "id": "parking",
            "text": "Parking"
          }
        ]
      },
      {
        "name": "online-viewings",
        "text": "Online viewings",
        "single_select": true,
        "terms": [
          {
            "text": "Any",
            "selected": true
          },
          {
            "id": "true",
            "text": "Show only"
          }
        ]
      },
      {
        "name": "new-home-flag",
        "text": "New build homes",
        "single_select": true,
        "terms": [
          {
            "text": "Any",
            "selected": true
          },
          {
            "id": "F",
            "text": "Exclude"
          },
          {
            "id": "T",
            "text": "Show only"
          }
        ]
      }
    ]
  },
  "meta": {
    "endpoint_family": "search",
    "duration_ms": 483
  }
}
200 OKJSONX-Credits-Used: 1
Recorded 12 Nov 2026 and shortened.

Sample data

What one call returns

A recorded run of search: the fields and shapes you will get, shortened to 3 items.

#idstringproperty_titlestringpricestringprice_valueintegerprice_qualifierstringbedroomsintegerbathroomsnumberaddressstringpostcodestringaddress_localitystringfeaturesstring[]tenurestringlocationobjectimagesobject[]images_countintegerfloorplans_countintegermain_labelstringdata_label_idstringdays_since_added_reducedstringspotlightbooleanfor_salebooleanproperty_urlurlagentobject
1207273873 bedroom terraced house for sale£190,000190000Guide price31Kings Avenue, GedlingNG4Nottingham[3 items]Freehold{2 fields}[3 items]171Recently addedrecentAdded < 7 daystruetruehttps://www.onthemarket.com/details/20727387/{5 fields}
2204484443 bedroom detached house for sale£365,000365000—3—Plot 602, The Steeton at Park View, Gedling, Arnold Lane NG4NG4Gedling[3 items]—{2 fields}[3 items]102——Added > 14 days—truehttps://www.onthemarket.com/details/20448444/{5 fields}
3205884471 bedroom flat for sale£68,00068000Offers over11Huntingdon Street, Nottingham NG1NG1Nottingham[2 items]Leasehold{2 fields}[3 items]181Reduced todayreducedReduced today—truehttps://www.onthemarket.com/details/20588447/{5 fields}

Recorded 12 Nov 2026 · 3 items shown · 23 datapoints per itemGET /v1/onthemarket/search?search_type=for-sale&location_id=nottingham

23 datapoints

Identity

  • idstring
  • property_titlestring
  • data_label_idstring

Contact

  • property_urlurl
  • agentobject

Location

  • addressstring
  • address_localitystring
  • locationobject

Reputation

  • imagesobject[]
  • images_countinteger

Price

  • pricestring
  • price_valueinteger
  • price_qualifierstring

Other

  • bedroomsinteger
  • bathroomsnumber
  • postcodestring
  • featuresstring[]
  • tenurestring
  • floorplans_countinteger
  • main_labelstring
  • days_since_added_reducedstring
  • spotlightboolean
  • for_saleboolean

Playground

Run this API

cURLshell
curl "https://api.perceptlayer.com/v1/onthemarket/search?search_type=for-sale&location_id=nottingham" \
  -H "X-API-Key: $API_KEY"

OnTheMarket · 4 endpoints

Endpoints

Every endpoint takes the same key. Open one for its parameters, the fields it returns and an example request.

EndpointRequired parametersReturnsCost
GET/v1/onthemarket/agent
slug
agent
1 credit
GET/v1/onthemarket/agent-listings
slugsearch_type+3 optional
agentsearch_metadatalistings
1 credit
GET/v1/onthemarket/listing
id
listing
1 credit
GET/v1/onthemarket/search
search_typelocation_id+13 optional
idproperty_titlepriceprice_valueprice_qualifierbedrooms+20 more
1 credit

Overview

About the OnTheMarket API

What you can get

The OnTheMarket API returns OnTheMarket property data as JSON through 4 endpoints.

  • Search: search takes a search_type (for-sale or to-rent) and a location_id, with page, sort_field (recommended, price or update_date), direction (asc or desc), prop_types, min_price, max_price, min_bedrooms, max_bedrooms, radius, under_offer, let_agreed, exclusive_first and new_home_flag.
  • Listings: listing takes a listing id.
  • Agents: agent takes an agent slug; agent-listings takes a slug and a search_type, with page, under_offer and let_agreed.

How a call works

Search a location: GET /v1/onthemarket/search?search_type=for-sale&location_id=...&sort_field=price&direction=asc with your key in the X-API-Key header. search and agent-listings page with page. To read one property, pass its id to listing; to see an agent's stock, pass its slug to agent-listings. Every successful call costs 1 credit; failed calls cost nothing.

Real estateJSONRESTMCP

More real estate APIs

Use cases

Track homes for sale or to rent in a location by price and bedrooms

Use the OnTheMarket API to track homes for sale or to rent in a location by price and bedrooms

Sort a location's listings by `update_date` to check recent stock

Use the OnTheMarket API to sort a location's listings by `update_date` to check recent stock

Follow an estate agent's listings for sale and to rent

Use the OnTheMarket API to follow an estate agent's listings for sale and to rent

Pull single listings into a valuation or comparables workflow

Use the OnTheMarket API to pull single listings into a valuation or comparables workflow

FAQ

Questions

Do I need an OnTheMarket API key?

No. You call this OnTheMarket API with your Perceptlayer key in the `X-API-Key` header, with no OnTheMarket login.

How much does the OnTheMarket API cost?

Each successful call costs one credit. New accounts get free credits to start, and credit packs bring the price down as you scale.

What format are responses in?

Every endpoint returns JSON, with no HTML parsing on your side.

Does it cover rentals as well as sales?

Yes. `search` and `agent-listings` take `search_type`, set to for-sale or to-rent. Both also take `under_offer` and `let_agreed`.

Is this the official OnTheMarket API?

No. Perceptlayer is an independent service and is not affiliated with OnTheMarket. It returns OnTheMarket data as JSON with a Perceptlayer key, so there is no OnTheMarket developer account, app review or partner approval to get first. It only reads data: if OnTheMarket has an official API and you need to act on your own OnTheMarket account, such as posting, managing orders or reading private data, use that one.

Should I build an OnTheMarket scraper instead?

You can, but an OnTheMarket scraper is code you maintain: page changes break it, requests get blocked, and OnTheMarket's terms govern how you collect data. The OnTheMarket API gives you 4 endpoints of named JSON fields for 1 credit per successful call, and failed calls cost nothing. A scraper makes sense only for data these endpoints don't return, so check the response in the playground on this page first.

Try the OnTheMarket API with 100 free credits

No credit card. Failed calls are never billed.