Discover/SpareRoom API
live

SpareRoom APIspareroom.co.uk

Access SpareRoom UK flatshare listings by city with prices, locations, images, and links. Also retrieve the top flatsharing cities in the UK.

Endpoint health
verified 1d ago
search_listings
get_top_cities
2/2 passing latest checkself-healing
Endpoints
2
Updated
26d ago

What is the SpareRoom API?

The SpareRoom API covers 2 endpoints for accessing UK flatshare data: search_listings returns paginated room and flat listings for any city, including title, price, location, image URL, and a direct listing link, while get_top_cities returns the curated list of top flatsharing cities from the SpareRoom homepage. Each search result page delivers up to 100 listings along with a total_count so you can page through the full result set.

Try it
City or area to search in (e.g. London, Manchester, Brighton).
Page number for pagination (1-based).
api.parse.bot/scraper/cbca23db-ebaa-4a82-a40d-a790ec09434e/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Call it over HTTPgrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/cbca23db-ebaa-4a82-a40d-a790ec09434e/search_listings?city=London&page=1' \
  -H 'X-API-Key: $PARSE_API_KEY'
Python SDK · recommended

Typed, relational, agent-ready

A generated client with real types, enums, and the links between objects — the structure a flat JSON response can't carry. Autocompletes in your editor and reads cleanly to coding agents.

  • Fully typed · autocompletes
  • Objects link to objects
  • Typed errors & pagination

Typed Python client. Set up the SDK in your uv project, then pull this API’s typed client:

uv add parse-sdk
uv run parse init
uv run parse add --marketplace spareroom-co-uk-api

uv run parse add --marketplace pulls a pinned snapshot of this canonical API — it won’t change underneath you. To customize it, subscribe and swap to your own copy.

from parse_apis.spareroom_scraper_api import SpareRoom, Listing, City

client = SpareRoom()

# Discover top flatsharing cities
for city in client.cities.list():
    print(city.name, city.url)

# Search listings in a specific city
manchester = client.city("Manchester")
for listing in manchester.search_listings(limit=5):
    print(listing.title, listing.price, listing.location)
All endpoints · 2 totalmissing one? ·

Search for flat listings in a specific city or area on SpareRoom. Returns paginated results with up to 100 listings per page. Each listing includes title, price (with period), location, image URL, and a detail link. Pagination is integer-based via the page param; total_count indicates total matching listings across all pages.

Input
ParamTypeDescription
cityrequiredstringCity or area to search in (e.g. London, Manchester, Brighton).
pageintegerPage number for pagination (1-based).
Response
{
  "type": "object",
  "fields": {
    "city": "string - the city searched",
    "page": "integer - current page number",
    "listings": "array of listing objects with title, price, location, image_url, and link",
    "total_count": "string - total number of matching listings"
  },
  "sample": {
    "data": {
      "city": "London",
      "page": 1,
      "listings": [
        {
          "link": "https://www.spareroom.co.uk/flatshare/flatshare_detail.pl?advert_id=17039205",
          "price": "1300 pcm",
          "title": "Spacious 2 bed 2 bathroom split-level maisonette",
          "location": "Shepherds Bush (W12)",
          "image_url": "https://photos2.spareroom.co.uk/images/flatshare/listings/large/89/95/89953731.jpg"
        }
      ],
      "total_count": "14971"
    },
    "status": "success"
  }
}

About the SpareRoom API

Searching Flatshare Listings

The search_listings endpoint accepts a required city parameter (e.g. London, Manchester, Brighton) and an optional page parameter for pagination. Each response includes the searched city, the current page number, a total_count string indicating how many listings matched, and a listings array. Every listing object carries a title, price, location, image_url, and link back to the full SpareRoom listing page. With up to 100 listings per page, you can iterate through large result sets using the total_count to calculate how many pages exist.

Discovering Top Flatsharing Cities

The get_top_cities endpoint requires no inputs and returns a top_cities array. Each entry contains a name (the city name as it appears on SpareRoom) and a url pointing to that city's SpareRoom listings page. This endpoint is useful for building location pickers, seeding city-level searches, or staying current with which UK cities SpareRoom actively curates.

Coverage and Scope

Coverage is UK-wide, scoped to whatever cities and areas SpareRoom indexes. The search_listings endpoint reflects live listing inventory — the total_count field gives you the current volume at query time. Data returned is limited to the listing card level: title, price, location, image, and link. Full listing details such as room descriptions, availability dates, or landlord/tenant preferences are not included in the search response.

Reliability & maintenanceVerified

The SpareRoom API is a managed, monitored endpoint for spareroom.co.uk — not a raw scraper you maintain. Every endpoint is automatically health-checked on a schedule, and when spareroom.co.uk changes and a check fails, the API is automatically queued for repair and re-verified. It is built to keep working as the site underneath it changes.

This isn't an official spareroom.co.uk API — it's an independent, maintained REST wrapper over public data. Where the source has no official API (or only a limited one), Parse gives you a stable contract over a source that never promised one, and keeps it current. Need a new endpoint or field? You can revise it yourself in plain English and the agent rebuilds it against the live site in minutes — contributing the change back to the shared API is free.

Last verified
1d ago
Latest check
2/2 endpoints passing
Maintenance
Monitored & self-healing
Will this API break when the source site changes?+
It's built not to. Every endpoint is health-checked on a schedule with automated test probes. When the source site changes and a check fails, the API is automatically queued for repair and re-verified — that's the self-healing layer. Each API page shows when its endpoints were last verified. And because marketplace APIs are shared, any fix reaches everyone using it.
Is this an official API from the source site?+
No — Parse APIs are independent, managed REST wrappers over publicly available data. That is the point: where a site has no official API (or only a limited one), Parse gives you a maintained, monitored endpoint for that data and keeps it working as the site changes — so you get a stable contract over a source that never promised one.
Can I fix or extend this API myself if I need a new endpoint or field?+
Yes — and you don't have to wait on us. This API was generated by the Parse agent, which stays attached. Describe the change in plain English ("add an endpoint that returns reviews", "fix the price field") in the revise box on the API page or via the revise_api MCP tool, and the agent rebuilds it against the live site in minutes. Contributing the change back to the public API is free.
What happens if I call an endpoint that has an issue?+
Errors are machine-readable: a bad call returns a clean status with the list of available endpoints and a repair hint, so an agent (or you) can recover or trigger a fix instead of failing silently. Confirmed failures feed the automatic repair queue.
Common use cases
  • Build a UK flatshare search tool that lets users filter by city and page through live SpareRoom listings.
  • Track average room prices across multiple UK cities by aggregating the price field from search_listings responses.
  • Populate a city selector dropdown for a rental app using the name and url fields from get_top_cities.
  • Monitor listing volume in a specific area over time by recording the total_count from repeated search_listings calls.
  • Generate city-by-city flatshare inventory reports by querying search_listings for each city returned by get_top_cities.
  • Feed listing images and links into a property aggregator using the image_url and link fields from the listings array.
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000100 req/min

One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does SpareRoom have an official developer API?+
SpareRoom does not publish a public developer API or documented REST interface for third-party use.
What does the `search_listings` endpoint return beyond basic listing info?+
Each listing object in the response includes title, price, location, image_url, and link. The response also includes city, page, and total_count so you can paginate. Detailed room descriptions, availability dates, house rules, and advertiser contact details are not included in the search results.
Does the API cover individual listing detail pages — descriptions, availability, or landlord preferences?+
Not currently. The API covers listing card data (title, price, location, image, link) and top-city discovery. You can fork this API on Parse and revise it to add an endpoint that fetches full listing detail by URL.
How does pagination work with `search_listings`?+
Pass an integer as the page parameter to retrieve subsequent pages. Each page returns up to 100 listings. The total_count field in the response tells you the total number of matching listings, which you can use to calculate how many pages are available for a given city.
Does the API cover flatshares outside the UK, such as Ireland or the US?+
SpareRoom is a UK-focused platform and the API reflects that — city searches are scoped to UK locations. The get_top_cities endpoint also returns UK cities only. You can fork this API on Parse and revise it to target other regional flatshare platforms if you need non-UK coverage.
Page content last updated . Spec covers 2 endpoints from spareroom.co.uk.
Related APIs in Real EstateSee all →
spotahome.com API
Search rental properties on Spotahome and retrieve detailed listing information including pricing, availability, amenities, pet policy, and landlord profiles. Filter by city, budget, dates, and more to explore mid- to long-term rental options across Spotahome's global inventory.
airbnb.co.uk API
Search Airbnb UK listings and access detailed information including pricing, availability calendars, and guest reviews. Plan your trips by comparing properties and experiences across locations with real-time data on rates and booking availability.
amberstudent.com API
Search student accommodation listings across popular cities and access comprehensive property information including room types, pricing trends, and tenant reviews. Get detailed insights into student housing options to compare amenities, prices, and community feedback all in one place.
rentals.ca API
Search and browse rental listings across Canada by city or neighbourhood, and view detailed property information including prices, amenities, and availability. Find your next home by filtering thousands of rental properties on Rentals.ca in real-time.
padmapper.com API
Search and browse rental listings across cities with detailed property information including prices, contact details, and market trends. Discover apartments and homes through city-wide searches or map-based exploration, and access comprehensive listing details to help you find your next rental.
pararius.com API
Search and browse rental property listings on Pararius.com. Filter by city, price, size, and furnishing; retrieve full property details; look up listings by estate agent; and autocomplete location queries.
shpock.com API
Search and browse products listed on Shpock.com, view detailed listing information and seller profiles, and explore all available marketplace categories. Find what you're looking for by searching inventory, checking seller histories, and discovering related items from individual merchants.
rightmove.co.uk API
Search for properties across the UK's largest property portal and retrieve detailed listings for homes for sale or to rent, including prices, descriptions, and key property information. Find your next home or investment opportunity by browsing available properties and getting comprehensive details on individual listings.