Spotahome APIspotahome.com ↗
Search Spotahome rental listings by city, budget, and dates. Get full property details, availability windows, and landlord profiles via 4 structured endpoints.
What is the Spotahome API?
The Spotahome API exposes 4 endpoints for querying mid- to long-term rental listings across Spotahome's global inventory. Use search_listings to filter properties by city, budget range, and move-in/move-out dates, then pull full property details, availability windows, and landlord scoring with the remaining endpoints. Each search result returns fields including displayPrice, billsIncluded, firstAvailable, and a direct listing URL.
curl -X GET 'https://api.parse.bot/scraper/ec24583a-0d83-444d-aa39-af95b486f69e/search_listings?city=madrid&page=1&move_in=2026-08-07&move_out=2026-10-06&max_budget=2000&min_budget=500&pets_friendly=false' \ -H 'X-API-Key: $PARSE_API_KEY'
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 spotahome-com-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.spotahome_api import Spotahome, City
client = Spotahome()
# Search for affordable listings in Madrid
for listing in client.listings.search(city=City.MADRID, min_budget=500, max_budget=1500):
print(listing.title, listing.display_price, listing.currency_iso_code)
print(listing.location.street, listing.location.city)
# Get availability details
avail = listing.availability.get()
print(avail.available_from, avail.min_stay, avail.cancellation_policy)
# Get landlord profile
landlord = listing.landlord.get()
print(landlord.name, landlord.listings_published, landlord.average_response_time)
break
Search for rental listings by city with optional budget, date, and pet-friendliness filters. Returns paginated results with listing summaries including price, location, and landlord scoring. Pagination via the page parameter; each page returns up to 60 listings from the city's total.
| Param | Type | Description |
|---|---|---|
| city | string | City slug (e.g. 'madrid', 'barcelona', 'berlin') |
| page | integer | Page number for pagination (1-based) |
| move_in | string | Move-in date in YYYY-MM-DD format |
| move_out | string | Move-out date in YYYY-MM-DD format |
| max_budget | integer | Maximum monthly rent budget in EUR |
| min_budget | integer | Minimum monthly rent budget in EUR |
| pets_friendly | boolean | Filter for pet-friendly listings (client-side text filter on title/description) |
{
"type": "object",
"fields": {
"page": "integer current page number",
"total": "integer total number of matching listings",
"listings": "array of listing summary objects with id, title, description, type, url, displayPrice, billsIncluded, mainPhotoUrl, firstAvailableDate, currencyIsoCode, location, reviews, landlordScoring"
},
"sample": {
"data": {
"page": 1,
"total": 11607,
"listings": [
{
"id": "1071621",
"url": "/madrid/for-rent:apartments/1071621",
"type": "apartment",
"title": "Apartment for rent in Almendrales, Madrid",
"reviews": {
"ratingAverage": null
},
"location": {
"city": "Madrid",
"coord": [
-3.69285,
40.38697
],
"street": "123 Main St",
"postalCode": "28045"
},
"description": "Looking for your next home in Madrid?...",
"displayPrice": "1380",
"mainPhotoUrl": "https://photos.spotahome.com/smww_768_verified_ur_6_50/acd5ff0cda3c7299e5f2de4167d0c8e5e41cd1713a536f3a8034f198.jpg",
"billsIncluded": "none",
"currencyIsoCode": "EUR",
"landlordScoring": {
"score": 500,
"totalBookingsClosed": 41
},
"firstAvailableDate": "2026-06-10T00:00:00+0000"
}
]
},
"status": "success"
}
}About the Spotahome API
Search and Filter Listings
The search_listings endpoint accepts a city slug (e.g. madrid, berlin, barcelona), optional date range via move_in and move_out (YYYY-MM-DD), and budget bounds via min_budget and max_budget in EUR. Results are paginated; the response includes page, total, and a listings array. Each summary object carries id, title, type, displayPrice, billsIncluded, mainPhotoUrl, and firstAvailable — enough to render a listing card without a second call.
Property Details and Availability
get_listing_details takes a numeric listing_id from search results and returns a full property object covering pricing, features, photos, rules, and statistics, alongside a landlord sub-object and city_info metadata. To check booking terms specifically, get_listing_availability returns min_stay, max_stay, available_from, an instant_booking object (with isEnabled and rules), and a cancellation_policy string — all scoped to that listing.
Landlord Profiles
get_landlord_details surfaces the landlord's name, type (e.g. private), scoring (including score and totalBookingsClosed), years_with_us, first_listing_date, listings_published, and average_response_time. These fields are useful for comparing host reliability across multiple listings before deeper integration. The landlord_id field can serve as a stable cross-reference if you're tracking a host's portfolio over time.
The Spotahome API is a managed, monitored endpoint for spotahome.com — not a raw scraper you maintain. Every endpoint is automatically health-checked on a schedule, and when spotahome.com 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 spotahome.com 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.
Will this API break when the source site changes?+
Is this an official API from the source site?+
Can I fix or extend this API myself if I need a new endpoint or field?+
What happens if I call an endpoint that has an issue?+
- Build a rental search tool that filters Spotahome listings by city, move-in date, and monthly budget.
- Compare bills-included vs. bills-excluded pricing across cities using the
billsIncludedanddisplayPricefields. - Flag listings with instant booking enabled using the
instant_booking.isEnabledfield fromget_listing_availability. - Score and rank landlords by
totalBookingsClosedandaverage_response_timewhen aggregating listings. - Monitor pet-friendly listing availability in a target city using the
pets_friendlyfilter insearch_listings. - Track minimum and maximum stay requirements across listings to match tenant constraints against
min_stayandmax_stay. - Aggregate landlord portfolio size by combining
listings_publishedandyears_with_usfromget_landlord_details.
| Tier | Price | Credits/month | Rate limit |
|---|---|---|---|
| Free | $0/mo | 100 | 5 req/min |
| Hobby | $30/mo | 1,000 | 20 req/min |
| Developer | $100/mo | 5,000 | 100 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.
Does Spotahome have an official public developer API?+
What does `search_listings` return beyond price and title?+
id, title, description, type, url, displayPrice, billsIncluded, mainPhotoUrl, and firstAvailable. The total field tells you the full count of matching listings regardless of the current page, which is useful for estimating pagination depth.Does the API expose neighborhood-level or map coordinate data for listings?+
city_info but do not expose latitude/longitude coordinates or sub-neighborhood labels. You can fork the API on Parse and revise it to add a geographic fields endpoint if precise location data is needed.Are tenant reviews or per-listing ratings accessible through these endpoints?+
get_landlord_details (including score and totalBookingsClosed) but does not surface individual tenant reviews or per-listing review text. You can fork the API on Parse and revise it to add a reviews endpoint.How does pagination work in `search_listings`?+
page parameter to step through results. The response always includes a total count of matching listings, so you can calculate the number of pages needed. There is no cursor-based pagination; pages are sequential integers starting from 1.