---
title: "SpareRoom API: UK Room and Flatshare Listings as JSON"
description: "SpareRoom has no public API. GET /v1/spareroom/search returns 100 room listings a page with rent, deposit and availability, at 1 credit per call."
url: https://perceptlayer.com/blog/spareroom-api-room-listings
---

[Blog](https://perceptlayer.com/blog) / [API guides](https://perceptlayer.com/blog/category/api-guides)

# SpareRoom API: UK Room and Flatshare Listings as JSON

18 Sept 2026 Perceptlayer 8 min read

SpareRoom doesn't publish a developer API for reading its listings. The Perceptlayer SpareRoom API fills that gap with four GET endpoints: search, a single listing, location lookup and city areas. `GET /v1/spareroom/search?where=London` returns 100 room and flatshare listings a page, with rent, deposit, availability, postcode and coordinates, at 1 credit per successful call.

## Key takeaways

-   SpareRoom has no public developer API; its terms describe a Managed Service for high-volume advertisers, which is about posting rooms, not reading them.
-   `GET /v1/spareroom/search` needs only `where` and takes 36 optional parameters, including `min_rent`, `max_rent`, `rent_period`, `room_types` and `bills_included`.
-   The recorded London search returns 100 results a page, reaches 1,000 rows over 10 pages, and reports a pool of 12,891 listings with `truncated: true`.
-   Each `rent` object carries a `period` of `pcm` or `pw`, so convert weekly rents before you compare them.
-   One full 10-page sweep costs 10 credits; slicing London into 13 sweeps costs 130 credits a week, about 563 a month. The 100 free credits on signup cover 10 sweeps, and a year of weekly sweeps fits in the Starter pack.

## Does SpareRoom have a public API?

No. Searches for a SpareRoom developer portal turn up scraper projects and job ads for its own app platform, not documentation for outside developers. SpareRoom's UK terms describe a Managed Service in which SpareRoom uploads and updates listings for high-volume advertisers such as agents and co-living operators, and they prohibit unauthorised integrations and software that harvests information from the platform ( [SpareRoom terms](https://m.spareroom.co.uk/content/default/terms-uk), 2026). That's the advertiser side.

If you're a landlord or agent publishing rooms, talk to SpareRoom about the Managed Service. If you need to read UK room listings as JSON for research, pricing or a search tool, the [SpareRoom API](https://perceptlayer.com/apis/spareroom) covers it with the same key as the rest of the [real estate APIs](https://perceptlayer.com/verticals/real-estate). Read SpareRoom's terms and decide for yourself that your use of the data fits them. Data is collected from publicly available sources and returned as found at the time of the call.

## Which SpareRoom endpoints are there?

There are four endpoints, all GET requests, all 1 credit on success and all returning JSON. Search is the one you'll use most. The listing endpoint fetches one advert by `id`, locations resolves a typed place name, and areas lists the areas inside a city. The table gives each one's required parameter.

| Endpoint | Returns | Required | Optional | Credits |
| --- | --- | --- | --- | --- |
| [`/v1/spareroom/search`](https://perceptlayer.com/apis/spareroom/search) | Room and flatshare listings | `where` | 36 parameters | 1 |
| [`/v1/spareroom/listing`](https://perceptlayer.com/apis/spareroom/listing) | One listing | `id` | `ad_type` ( `offered`, `wanted`) | 1 |
| [`/v1/spareroom/locations`](https://perceptlayer.com/apis/spareroom/locations) | Location matches | `q` (up to 60 characters) | none | 1 |
| [`/v1/spareroom/areas`](https://perceptlayer.com/apis/spareroom/areas) | Areas in a city | `city` | none | 1 |

Only the search endpoint has a recorded response in this article. For the other three, the endpoint pages and the playground show the real output.

## How do you search SpareRoom listings?

Call `GET /v1/spareroom/search` with `where`, a free-text place of up to 100 characters. That's the only required parameter. The request below is the exact one behind the recorded response in the next section. Send your key in the `X-API-Key` header; [the authentication docs](https://docs.perceptlayer.com/authentication) cover keys, which start with `sk_live_`.

```bash
curl "https://api.perceptlayer.com/v1/spareroom/search?where=London" \
  -H "X-API-Key: $API_KEY"
```

### Which parameters does the search endpoint take?

Search takes `where` plus 36 optional parameters. Eleven are flags that take only `Y`. The types and allowed values below come from the endpoint definition. Nothing else, such as defaults, is documented, so don't rely on any.

| Parameter | Type | Allowed values or notes |
| --- | --- | --- |
| `where` | string, required | Up to 100 characters |
| `page` | integer |  |
| `sort` | string | `relevance`, `newest`, `last_updated`, `price_low_to_high`, `price_high_to_low` |
| `min_rent`, `max_rent` | integer | Rent bounds |
| `rent_period` | string | `pcm`, `pw` |
| `bills_included` | string | `true`, `false`, `1`, `0` |
| `available_from` | string |  |
| `room_types` | string | `double`, `single` |
| `ensuite`, `parking`, `pets_req`, `no_deposit`, `verified_users`, `photoadsonly` | string | `Y` |
| `furnished`, `smoking` | string | `Y`, `N` |
| `rooms_for` | string | `males`, `females`, `couples` |
| `genderfilter` | string | `males`, `females`, `mixed` |
| `posted_by` | string | `private_landlords`, `flatmates`, `agents`, `co_live` |
| `landlord` | string | `live_in`, `live_out` |
| `days_of_wk_available` | string | `Mon to Fri only`, `7 days a week` |
| `min_term`, `max_term` | integer | Tenancy length bounds |
| `min_beds`, `max_beds`, `no_of_rooms` | integer | Property size |

The rest ( `types`, `share_type`, `gayshare`, `vegetarians`, `disabled_access`, `living_room`, `short_lets_considered`, `free_to_contact`, `min_age_req`, `max_age_req`) are on the [Search endpoint page](https://perceptlayer.com/apis/spareroom/search). For example, `where=Manchester&room_types=double&max_rent=700&rent_period=pcm&bills_included=true` asks for double rooms in Manchester at up to 700 a month with bills included. We haven't run that filtered request for this article.

### What does a search response look like?

The recorded London response has a `data` object with paging fields, a `location` block, `filter_options` counts and a `results` array, plus a `meta` object. Here is an excerpt of the first listing, trimmed with `…` and with the advertiser's name and photo links removed:

```json
{
  "success": true,
  "data": {
    "where": "London",
    "page": 1,
    "page_size": 100,
    "page_count": 10,
    "has_next_page": true,
    "result_count": 100,
    "total_pool": 12891,
    "rows_reachable": 1000,
    "truncated": true,
    "total_rooms_available": 16127,
    "results": [
      {
        "id": 18472716,
        "url": "https://www.spareroom.co.uk/18472716",
        "title": "1-Bed penthouse flat near Canary Wharf",
        "ad_type": "offered",
        "accommodation_type": "1 bed flat or studio",
        "property_type": "Flat",
        "status": "Available",
        "rooms_in_property": 1,
        "rooms_for_rent": 1,
        "rent": {
          "min": 2500,
          "period": "pcm",
          "rent_options": "whole",
          "currency": "GBP"
        },
        "rooms": [
          {
            "type": "double",
            "price": 2500,
            "period": "pcm",
            "status": "available",
            "furnishings": "unfurnished"
          }
        ],
        "security_deposit": 2500,
        "availability": {
          "from": "2026-11-23",
          "days_per_week": "7 days a week"
        },
        "couples_allowed": true,
        "location": {
          "postcode": "E14",
          "neighbourhood": "Westferry",
          "latitude": 51.513191,
          "longitude": -0.0292769
        },
        "advertiser": {
          "type_code": "live_out_landlord",
          "verified": true,
          …
        },
        "expires_at": "2026-11-20T20:45:36Z"
      },
      …
    ]
  },
  "meta": {
    "endpoint_family": "spareroom.search",
    "billable": true,
    "duration_ms": 642
  }
}
```

The fields most analyses need are `rent.min` with `rent.period`, `rooms[].price`, `security_deposit`, `availability.from`, `location.postcode` and the coordinates. The second listing in the same response is a double room in a three-room flat at 950 a month with `bills_included: "yes"`, so the room-level fields matter: `rent_options` is `whole` for a whole flat and `room` for a single room.

## Why does a London search stop at 1,000 rows?

One search reaches 1,000 rows at most. The recorded London response says so in its own fields: `page_size` 100, `page_count` 10, `rows_reachable` 1000 and `truncated: true`, against a `total_pool` of 12,891 listings. Paging past page 10 won't get you the rest; narrower searches will.

The response also tells you how to slice. Its `filter_options` array counts listings per filter, and the London price group shows 4,906 listings up to £900 a month and 5,965 from £901 to £1,300. Both are still above 1,000, so a price band alone isn't enough. Combine bands from `min_rent` and `max_rent` with a narrower `where`, such as a neighbourhood, or with `room_types`, until each slice's pool fits in 1,000 rows. The response's `location.areas` list and the [Areas endpoint](https://perceptlayer.com/apis/spareroom/areas) give you area names to work from.

Here is a page loop in Python that reads the recorded response's paging fields and warns when a slice is truncated. It follows the recorded response shape; we haven't run it against the live API for this article.

```python
import os
import requests

URL = "https://api.perceptlayer.com/v1/spareroom/search"
HEADERS = {"X-API-Key": os.environ["API_KEY"]}

def sweep(params):
    rows, page = [], 1
    while True:
        r = requests.get(URL, headers=HEADERS, params={**params, "page": page}, timeout=60)
        r.raise_for_status()
        data = r.json()["data"]
        rows.extend(data["results"])
        if not data["has_next_page"]:
            break
        page += 1
    if data.get("truncated"):
        print(f"{params}: pool {data['total_pool']}, reached {data['rows_reachable']}; slice further")
    return rows

rooms = sweep({"where": "London", "min_rent": 0, "max_rent": 700, "rent_period": "pcm"})
```

Slices overlap at the edges, so deduplicate on `id` before you count anything. For retries and rate limits around a loop like this, see [paginating a web data API in Python](https://perceptlayer.com/blog/paginate-web-data-api-python).

## How do you compare weekly and monthly rents?

Convert everything to one period before comparing. Each listing's `rent` object and each entry in `rooms` carries a `period` of `pcm` or `pw`, and UK flatshare ads use both. A weekly rent is converted to monthly by multiplying by 52 and dividing by 12, so £200 a week is about £867 a month.

```python
def monthly(price, period):
    return round(price * 52 / 12) if period == "pw" else price

for room in rooms:
    for r in room.get("rooms", []):
        r["price_pcm"] = monthly(r["price"], r["period"])
```

Keep the original value and period next to the converted one, so you can audit the figure later. Use room-level prices for room rents; the listing-level `rent.min` is labelled a minimum, so treat it as the lowest price in the advert, not an average. For which rental fields to keep and why, read [rental listing data for market analysis](https://perceptlayer.com/blog/rental-listing-data-market-analysis).

How do your figures compare with SpareRoom's own? Its quarterly rental index put the UK average room rent at a record £769 a month in Q3 2026 ( [SpareRoom UK quarterly rental index Q3 2026](https://www.spareroom.co.uk/statistics/uk-quarterly-rental-index-q3-2026), 2026). That's a published benchmark to sanity-check a sample against, not a substitute for it: an index is an average over all ads in a period, while a sweep is a snapshot of what's live today.

## What does a weekly sweep of one city cost?

Every SpareRoom endpoint costs 1 credit per successful call, and a full search sweep is at most 10 pages, so 10 credits. Failed calls cost nothing and return `X-Credits-Used: 0`. Every successful response carries `X-Credits-Used` and `X-Credits-Remaining`, so a script can track spend as it goes. The [credits docs](https://docs.perceptlayer.com/credits) explain billing.

Worked example for London: the recorded pool is 12,891 listings and each sweep reaches 1,000, so you need at least 13 slices. 13 slices × 10 pages × 1 credit = 130 credits a week. Over a month, 130 × 52 ÷ 12 ≈ 563 credits. The 100 free credits you get on signup after verifying an email address cover the first 10 sweeps, short of one week's 13, so the rest needs a pack. Slices rarely split perfectly, so budget a few extra sweeps. Fetching full detail with the listing endpoint adds 1 credit per advert.

| Job | Calls | Credits |
| --- | --- | --- |
| One full search sweep | 10 | 10 |
| London, 13 slices, once | 130 | 130 |
| London, 13 slices, weekly for a year | 6,760 | 6,760 |
| 500 listings in full detail | 500 | 500 |

A year of weekly London sweeps, 6,760 credits, fits in a Starter pack of 10,000 credits. Purchased credits last 12 months. See [pricing](https://perceptlayer.com/pricing) for what credits cost. Free accounts run at 1 request a second, so a 130-call sweep takes a little over two minutes; the [rate limits docs](https://docs.perceptlayer.com/rate-limits) cover the paid rates.

## Can an AI agent call the SpareRoom API?

Yes. The Perceptlayer MCP server at `https://perceptlayer.com/mcp` exposes three tools: `search_endpoints` and `get_endpoint` look up the catalogue for free, and `call_endpoint` runs an endpoint with its parameters and spends credits only on success. An agent can find the SpareRoom search endpoint, read its filters and call it with a user's area and budget.

That suits a flat-hunting assistant that turns "a double room near Stoke Newington under £1,000 with bills" into `where`, `room_types`, `max_rent` and `bills_included`. Setup is in the [AI agents docs](https://docs.perceptlayer.com/ai-agents). Errors come back with an HTTP status and a JSON `code`, listed in the [errors docs](https://docs.perceptlayer.com/errors).

To try it now, [get a free API key](https://perceptlayer.com/signup) and run a search for your city in the playground on the [SpareRoom API page](https://perceptlayer.com/apis/spareroom).

## APIs in this post

-   [SpareRoom **1 credit per call** · 4 endpoints](https://perceptlayer.com/apis/spareroom)

## Frequently asked questions

### Is there an official SpareRoom API?

No public one for reading listings. SpareRoom's terms describe a Managed Service that posts and updates rooms for large advertisers, and they prohibit unauthorised integrations and harvesting software. The Perceptlayer [SpareRoom API](https://perceptlayer.com/apis/spareroom) returns search results, single listings, locations and areas as JSON, collected from publicly available sources. Check SpareRoom's terms against your own use.

### How much does the SpareRoom API cost?

Each of the four SpareRoom endpoints costs 1 credit per successful call, and failed calls cost nothing. A full 10-page search sweep is 10 credits. Every account gets 100 free credits after verifying an email address, and prepaid packs start at 10,000 credits. The [pricing page](https://perceptlayer.com/pricing) has what credits cost.

### How many listings does one SpareRoom search return?

Up to 1,000. The recorded London search returns 100 results a page over 10 pages, with `rows_reachable` 1000 and `truncated: true` against a pool of 12,891. To cover a whole city, split it into narrower searches by area, rent band or room type, then deduplicate on the listing `id`.

### Are SpareRoom rents monthly or weekly?

Both appear. Each `rent` object and each room carries a `period` of `pcm` (per calendar month) or `pw` (per week), and the search accepts `rent_period` with the same two values. Convert weekly rents to monthly by multiplying by 52 and dividing by 12 before you compare or average them.

### What happens when a SpareRoom call fails?

You get an HTTP status and a JSON error with a `code`, `message` and `request_id`, and no credits are debited. A missing `where` returns `invalid_parameters` (422). Rate-limited (429) and temporarily unavailable (503) responses include a `Retry-After` header. The [errors docs](https://docs.perceptlayer.com/errors) list every code.

spareroom uk rentals flatshare room listings real estate

## More from the blog

1.  [API guides](https://perceptlayer.com/blog/category/api-guides) 17 Nov 2026 Perceptlayer 7 min read
    
    ## [Homes.com API: Listings and Neighborhoods as JSON](https://perceptlayer.com/blog/homes-com-api-listings-json)
    
    Search Homes.com listings by location, beds and price at 1 credit a call: a recorded Austin search with price, sqft and list\_date, plus neighborhood lookups.
    
2.  [API guides](https://perceptlayer.com/blog/category/api-guides) 15 Nov 2026 Perceptlayer 7 min read
    
    ## [Realtor.com API: Property Listings as JSON](https://perceptlayer.com/blog/realtor-com-api-listings-json)
    
    Watch new Realtor.com listings with the search endpoint: list\_price, beds, sqft, list\_date and coordinates as JSON, at 1 credit per call.
    
3.  [API guides](https://perceptlayer.com/blog/category/api-guides) 8 Nov 2026 Perceptlayer 9 min read
    
    ## [Redfin Scraper or API: What You Get](https://perceptlayer.com/blog/redfin-scraper-vs-api)
    
    A Redfin scraper vs 14 Redfin endpoints at 1 credit each: recorded Seattle locations, search, property and valuation calls, and the cost per home tracked.
