Skip to content
Scrappa Get API key
OnTheMarket API 1 credit / request

OnTheMarket Listing API Documentation

GET https://scrappa.co/api/onthemarket/listing

OnTheMarket Listing API returns one UK property listing from OnTheMarket as JSON. The response carries the id, property type, display price with a numeric GBP value, channel, bedrooms, bathrooms, tenure, key facts, features, the description as HTML and plain text, address, postcode, coordinates, images, floorplans, EPC rating and date, broadband speeds, nearest stations and schools, room sizes, area price statistics and crime level, the estate-agent branch and similar properties.

OnTheMarket Listing API Documentation 1 credit / request

Endpoint

Request preview
GET
https://scrappa.co/api/onthemarket/listing
Auth header
x-api-key
Cost
1 credit / request
id = 1234567890
Response preview
200 OK
{
    "data": {
        "listing": {
            "id": "20318324",
            "epc": {
                "date": "2023-12-05",
                "rating": "C"
            },
            "agent": {
                "name": "Frank Innes - Mapperley",
                "logo_url": "https://media.onthemarket.com/agents/companies/14665/260126142222870/logo-190x100.jpg",
                "branch_id": 73818,
                "telephone": "0115 691 4648",
                "details_url": "https://www.onthemarket.com/agents/branch/frank-innes-mapperley/"
...

Parameters

Start with the required fields, then add optional filters only when your use case needs them.

Runnable path

1 required parameter needed before sending a request.

id string Required

Property id returned by the search endpoint, e.g. 20318324.

Example value 1234567890

Response Schema

Example response fields are illustrative; inspect the JSON before integrating.

Response fields

66 fields
Field Type
data.listing.id string
data.listing.epc.date string
data.listing.epc.rating string
data.listing.agent.name string
data.listing.agent.logo_url string
data.listing.agent.branch_id integer
data.listing.agent.telephone string
data.listing.agent.details_url string
data.listing.price string
data.listing.rooms array
data.listing.rooms[].name string
data.listing.rooms[].size_text string
data.listing.images array
data.listing.images[].url string
data.listing.images[].webp_url string
data.listing.images[].large_url string
data.listing.images[].position_caption string
data.listing.tenure string
data.listing.address string
data.listing.channel string
data.listing.schools array
data.listing.schools[].name string
data.listing.schools[].distance string
data.listing.bedrooms integer
data.listing.features array
data.listing.features[] string
data.listing.key_info array
data.listing.key_info[].label string
data.listing.key_info[].value string
data.listing.location.lat number
data.listing.location.lon number
data.listing.postcode string
data.listing.stations array
data.listing.stations[].name string
data.listing.stations[].distance string
data.listing.bathrooms integer
data.listing.branch_id integer
data.listing.broadband.date string
data.listing.broadband.broadband_type string
data.listing.broadband.max_upload_mbps integer
data.listing.broadband.max_download_mbps integer
data.listing.area_stats.crimes.label string
data.listing.area_stats.crimes.level string
data.listing.area_stats.avg_home_prices.price string
data.listing.area_stats.avg_home_prices.title string
data.listing.area_stats.avg_home_prices.price_value integer
data.listing.floorplans array
data.listing.floorplans[].url string
data.listing.floorplans[].large_url string
data.listing.floorplans[].position_caption string
data.listing.description string
data.listing.price_value integer
data.listing.description_text string
data.listing.similar_properties array
data.listing.similar_properties[].id string
data.listing.similar_properties[].price string
data.listing.similar_properties[].address string
data.listing.similar_properties[].bedrooms integer
data.listing.similar_properties[].price_value integer
data.listing.similar_properties[].property_url string
data.listing.similar_properties[].property_title string
data.listing.similar_properties[].humanised_property_type string
data.listing.humanised_property_type string
meta.billable boolean
meta.endpoint_family string
success boolean
JSON Response
200 OK
{
    "data": {
        "listing": {
            "id": "20318324",
            "epc": {
                "date": "2023-12-05",
                "rating": "C"
            },
            "agent": {
                "name": "Frank Innes - Mapperley",
                "logo_url": "https://media.onthemarket.com/agents/companies/14665/260126142222870/logo-190x100.jpg",
                "branch_id": 73818,
                "telephone": "0115 691 4648",
                "details_url": "https://www.onthemarket.com/agents/branch/frank-innes-mapperley/"
            },
            "price": "\u00a3525,000",
            "rooms": [
                {
                    "name": "Kitchen / Living Room",
                    "size_text": "6.02m x 3.35m"
                }
            ],
            "images": [
                {
                    "url": "https://media.onthemarket.com/properties/20318324/1643568306/image-0-480x320.jpg",
                    "webp_url": "https://media.onthemarket.com/properties/20318324/1643568306/image-0-480x320.webp",
                    "large_url": "https://media.onthemarket.com/properties/20318324/1643568306/image-0-1024x1024.jpg",
                    "position_caption": "Image 1 of 13"
                }
            ],
            "tenure": "Freehold",
            "address": "Faringford Road, London, E15",
            "channel": "sale",
            "schools": [
                {
                    "name": "Porchester Junior School",
                    "distance": "0.3mi."
                }
            ],
            "bedrooms": 3,
            "features": [
                "Freehold",
                "Extended Three-bedroom family home",
                "Modern shower and ground floor w/c"
            ],
            "key_info": [
                {
                    "label": "Tenure",
                    "value": "Freehold"
                },
                {
                    "label": "Council tax",
                    "value": "Ask agent"
                }
            ],
            "location": {
                "lat": 51.539824,
                "lon": 0.006288
            },
            "postcode": "E15 4DP",
            "stations": [
                {
                    "name": "Carlton Station",
                    "distance": "1.7mi."
                }
            ],
            "bathrooms": 3,
            "branch_id": 73402,
            "broadband": {
                "date": "2021-12-16",
                "broadband_type": "ultra-fast",
                "max_upload_mbps": 1000,
                "max_download_mbps": 1000
            },
            "area_stats": {
                "crimes": {
                    "label": "Low",
                    "level": "low"
                },
                "avg_home_prices": {
                    "price": "\u00a3549,971",
                    "title": "3 bedroom terraced houses",
                    "price_value": 549971
                }
            },
            "floorplans": [
                {
                    "url": "https://media.onthemarket.com/properties/20318324/1643568306/floor-plan-0-480x320.jpg",
                    "large_url": "https://media.onthemarket.com/properties/20318324/1643568306/floor-plan-0-1024x1024.jpg",
                    "position_caption": "Floorplan"
                }
            ],
            "description": "<br/>A great opportunity to purchase this beautiful three double bedroom period property on Faringford Road.",
            "price_value": 525000,
            "description_text": "A great opportunity to purchase this beautiful three double bedroom period property on Faringford Road.",
            "similar_properties": [
                {
                    "id": "18698609",
                    "price": "\u00a3265,000",
                    "address": "Turneys Court, Nottingham, Nottinghamshire, NG2",
                    "bedrooms": 2,
                    "price_value": 265000,
                    "property_url": "https://www.onthemarket.com/details/18698609/",
                    "property_title": "2 bedroom flat for sale",
                    "humanised_property_type": "Flat"
                }
            ],
            "humanised_property_type": "Terraced house"
        }
    },
    "meta": {
        "billable": true,
        "endpoint_family": "listing"
    },
    "success": true
}

Errors

Handle these documented responses before retrying or showing customer-facing failures.

422

Validation Error

A public parameter is missing or invalid. This response is not billable.

{
    "errors": {
        "id": [
            "The id field is required."
        ]
    },
    "message": "The request validation failed"
}
404

Not Found

The property id is unknown or the listing has been removed. This response is not billable.

{
    "meta": {
        "billable": false,
        "retryable": false,
        "endpoint_family": "listing"
    },
    "error": {
        "code": "NOT_FOUND",
        "message": "The requested OnTheMarket resource was not found."
    },
    "success": false
}
502

Invalid Source Response

OnTheMarket returned a response that could not be parsed. This response is not billable.

{
    "meta": {
        "billable": false,
        "retryable": false,
        "endpoint_family": "listing"
    },
    "error": {
        "code": "UPSTREAM_UNAVAILABLE",
        "message": "OnTheMarket returned an unexpected response."
    },
    "success": false
}
503

Service Unavailable

The upstream source is temporarily unavailable or returned an unexpected shape. This response is not billable and can be retried.

{
    "meta": {
        "billable": false,
        "retryable": true,
        "endpoint_family": "listing"
    },
    "error": {
        "code": "UPSTREAM_UNAVAILABLE",
        "message": "The OnTheMarket API is temporarily unavailable. Please retry."
    },
    "success": false
}

Generate Code with AI

Copy a ready-made prompt with all the endpoint details, parameters, and example responses. Paste it into ChatGPT, Claude, or any AI assistant to instantly generate working code.

Try It Live

Test this endpoint in our interactive playground with real data.