Discover/spareroom.co.uk API
live

spareroom.co.uk 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.

Endpoints
2
Updated
3mo ago
Try it
City or area to search in (e.g. London, Manchester, Brighton).
Page number for pagination.
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.
Use it in your codegrab 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'
All endpoints · 2 totalclick to expand

Search for flat listings in a specific city or area on SpareRoom. Returns paginated results with up to 100 listings per page.

Input
ParamTypeDescription
cityrequiredstringCity or area to search in (e.g. London, Manchester, Brighton).
pagestringPage number for pagination.
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=17456540",
          "price": "1350 pcm",
          "title": "Spacious Double Room with En Suite, in Ealing",
          "location": "Ealing (W5)",
          "image_url": "https://photos2.spareroom.co.uk/images/flatshare/listings/large/93/38/93382267.jpg"
        }
      ],
      "total_count": "15301"
    },
    "status": "success"
  }
}

About the spareroom.co.uk 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.

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.

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,000250 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 →
idealista.pt API
Search and filter property listings across Portugal by location, price, and size, then access detailed information about each property including its characteristics and pricing history. Monitor how property prices change over time to help you make informed decisions about buying or selling real estate.
cookcountyil.gov API
Search Cook County property tax records, look up court cases, find code violations, and get department contact information all in one place. Quickly access public records and government contacts without navigating multiple websites.
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.
immobiliare.it API
Search Italian property listings for sale or rent, browse real estate agencies, and explore price trends across Italian cities — all via immobiliare.it.
homes.com API
Search for real estate agents and properties available for sale or rent, while accessing detailed agent profiles with their 1-year transaction history, active listings, and performance statistics. Get comprehensive property details and agent information all in one place to help you find the right agent or property that matches your needs.
beijing.anjuke.com API
Search Beijing real estate listings for second-hand homes and rentals, view detailed property information and price trends, and discover agents and community-specific listings. Get access to the Beijing house price index to track market movements and make informed decisions about property purchases or rentals.
58.com Housing API
Access real-time housing market data from 58.com (58同城), China's largest classifieds platform. Search house price trends across 31+ major Chinese cities at city, district, and neighborhood levels, and browse hot new property developments with prices, floor plans, and location details.
zapimoveis.com.br API
Search and filter real estate listings across Brazil on ZAP Imóveis — the country's largest property portal. Retrieve listings for sale or rent with detailed attributes including price, location, size, bedrooms, bathrooms, parking, and amenities. Supports location autocomplete, property type discovery, and full listing detail retrieval.