APIs / Real estate / Spotahome
1 credit per call2 endpoints23 datapointsChecked working 6 Dec 2026
Spotahome API
Spotahome API for property search by city and single listings of rooms, apartments, studios and residences as JSON. Two endpoints, 1 credit per call.
{
"success": true,
"data": {
"city": {
"id": "madrid",
"name": "Madrid",
"country_code": "ES",
"currency": "EUR"
},
"total_results": 9742,
"total_pages": 203,
"page": 1,
"has_more": true,
"listings": [
{
"position": 1,
"id": "139466",
"title": "Room in shared flat for rent in Embajadores, Madrid.",
"url": "https://www.spotahome.com/madrid/for-rent:rooms/139466",
"type": "room_shared",
"property_type": "rooms",
"price": 850,
"currency": "EUR",
"available_from": "2027-01-30",
"bills_included": "all",
"bedrooms": 7,
"bathrooms": 2,
"area_m2": 140,
"is_instant_booking": false,
"is_checked": true,
"no_security_deposit": false,
"has_deposit_protection": false,
"address": {
"street": "Calle del Mesón de Paredes",
"postal_code": "28012",
"city": "Madrid"
},
"latitude": 40.41158,
"longitude": -3.70616,
"main_photo_url": "https://photos.spotahome.com/smww_768_verified_ur_6_50/11c39fb71e2c3f82b7c9b1c169127a4686fb7b549116fd4e920f901a.jpg",
"photo_urls": [
"https://photos.spotahome.com/smww_768_verified_ur_6_50/11c39fb71e2c3f82b7c9b1c169127a4686fb7b549116fd4e920f901a.jpg",
"https://photos.spotahome.com/smww_768_verified_ur_6_50/c994c7a6f755e75943c0ce50bf47a2dc581b636d1834d2584f966d8a.jpg",
"https://photos.spotahome.com/smww_768_verified_ur_6_50/849c748f371a23bfd296f8a0262ec757d38a7f5622bcee5fe8ca5c98.jpg"
],
"description": "Discover this charming room available in a shared 7-bedroom apartment located in the vibrant Embajadores neighborhood in Madrid. Fully furnished and equipped, the apartment offers amenities such as a private washing machine, dishwasher, ove…"
},
{
"position": 2,
"id": "157560",
"title": "Cozy room for rent near Chamberí, Madrid",
"url": "https://www.spotahome.com/madrid/for-rent:rooms/157560",
"type": "room_shared",
"property_type": "rooms",
"price": 850,
"currency": "EUR",
"available_from": "2026-11-12",
"bills_included": "all",
"bedrooms": 3,
"bathrooms": 2,
"area_m2": 170,
"is_instant_booking": false,
"is_checked": true,
"no_security_deposit": false,
"has_deposit_protection": false,
"address": {
"street": "Calle del General Ibáñez de Ibero",
"postal_code": "28003",
"city": "Madrid"
},
"latitude": 40.4442,
"longitude": -3.71015,
"main_photo_url": "https://photos.spotahome.com/smw_768/9bb99e7529ef0b3618bf9a41d22825f9d76526528c683a978c20d58f.jpg",
"photo_urls": [
"https://photos.spotahome.com/smww_768_verified_ur_6_50/9bb99e7529ef0b3618bf9a41d22825f9d76526528c683a978c20d58f.jpg",
"https://photos.spotahome.com/smww_768_verified_ur_6_50/02a5e6dcf1623c76281a7de93878ce8f5b48b9929e1a23a9a61c614c.jpg",
"https://photos.spotahome.com/smww_768_verified_ur_6_50/4c985f5c11a98898b86d409cbaa7ec4bb3e6393aa185259e284907d6.jpg"
],
"description": "This stylish 3-bedroom home offers rooms for rent in the heart of the Cuatro Caminos business district. The 170 m² unit features decor that combines understated elegance with brilliant flashes of colour for a chic and modern vibe.\n\nThe apar…"
},
{
"position": 3,
"id": "241688",
"title": "Studio apartment to rent in Fuente del Berro, Madrid",
"url": "https://www.spotahome.com/madrid/for-rent:studios/241688",
"type": "studio",
"property_type": "studios",
"price": 1800,
"currency": "EUR",
"available_from": "2027-01-20",
"bills_included": "all",
"bathrooms": 1,
"area_m2": 65,
"is_instant_booking": false,
"is_checked": true,
"no_security_deposit": false,
"has_deposit_protection": false,
"address": {
"street": "Calle Rufino Blanco",
"postal_code": "28028",
"city": "Madrid"
},
"latitude": 40.42718,
"longitude": -3.66686,
"main_photo_url": "https://photos.spotahome.com/smww_768_verified_ur_6_50/da2c3821384e3c13099085c6d21fadb426c902f4eb682e780bc21795.jpg",
"photo_urls": [
"https://photos.spotahome.com/smww_768_verified_ur_6_50/da2c3821384e3c13099085c6d21fadb426c902f4eb682e780bc21795.jpg",
"https://photos.spotahome.com/smww_768_verified_ur_6_50/cddec877521f336c2ff0fde8e99d6ed746311ccb6c0364f6cac1a777.jpg",
"https://photos.spotahome.com/smww_768_verified_ur_6_50/db1edd41f1951fe01d63d71a70ba5a568dfefc94a101f46c39b7d192.jpg"
],
"description": "This fashionable studio apartment on Calle Rufino Blanco, in Fuente del Berro is fully furnished and has plenty of charm. The property has a modern equipped kitchen, and makes excellent use of space with the sleeping area located on a mezza…"
}
],
"next_page": 2
},
"meta": {
"endpoint_family": "search_city"
}
}Sample data
What one call returns
A recorded run of search: the fields and shapes you will get, shortened to 3 items.
| # | positioninteger | idstring | titlestring | urlurl | typestring | property_typestring | priceinteger | currencystring | available_fromstring | bills_includedstring | bedroomsnumber | bathroomsinteger | area_m2integer | is_instant_bookingboolean | is_checkedboolean | no_security_depositboolean | has_deposit_protectionboolean | addressobject | latitudenumber | longitudenumber | main_photo_urlurl | photo_urlsstring[] | descriptionstring |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | 1 | 139466 | Room in shared flat for rent in Embajadores, Madrid. | https://www.spotahome.com/madrid/for-rent:rooms/139466 | room_shared | rooms | 850 | EUR | 2027-01-30 | all | 7 | 2 | 140 | false | true | false | false | {3 fields} | 40.41158 | -3.70616 | https://photos.spotahome.com/smww_768_verified_ur_6_50/11c39fb71e2c3f82b7c9b1c169127a4686fb7b549116fd4e920f901a.jpg | [3 items] | Discover this charming room available in a shared 7-bedroom apartment located in the vibrant Embajadores neighborhood in Madrid. Fully furnished and equipped, the apartment offers amenities such as a private washing machine, dishwasher, ove… |
| 2 | 2 | 157560 | Cozy room for rent near Chamberí, Madrid | https://www.spotahome.com/madrid/for-rent:rooms/157560 | room_shared | rooms | 850 | EUR | 2026-11-12 | all | 3 | 2 | 170 | false | true | false | false | {3 fields} | 40.4442 | -3.71015 | https://photos.spotahome.com/smw_768/9bb99e7529ef0b3618bf9a41d22825f9d76526528c683a978c20d58f.jpg | [3 items] | This stylish 3-bedroom home offers rooms for rent in the heart of the Cuatro Caminos business district. The 170 m² unit features decor that combines understated elegance with brilliant flashes of colour for a chic and modern vibe. The apar… |
| 3 | 3 | 241688 | Studio apartment to rent in Fuente del Berro, Madrid | https://www.spotahome.com/madrid/for-rent:studios/241688 | studio | studios | 1800 | EUR | 2027-01-20 | all | — | 1 | 65 | false | true | false | false | {3 fields} | 40.42718 | -3.66686 | https://photos.spotahome.com/smww_768_verified_ur_6_50/da2c3821384e3c13099085c6d21fadb426c902f4eb682e780bc21795.jpg | [3 items] | This fashionable studio apartment on Calle Rufino Blanco, in Fuente del Berro is fully furnished and has plenty of charm. The property has a modern equipped kitchen, and makes excellent use of space with the sleeping area located on a mezza… |
[
{
"position": 1,
"id": "139466",
"title": "Room in shared flat for rent in Embajadores, Madrid.",
"url": "https://www.spotahome.com/madrid/for-rent:rooms/139466",
"type": "room_shared",
"property_type": "rooms",
"price": 850,
"currency": "EUR",
"available_from": "2027-01-30",
"bills_included": "all",
"bedrooms": 7,
"bathrooms": 2,
"area_m2": 140,
"is_instant_booking": false,
"is_checked": true,
"no_security_deposit": false,
"has_deposit_protection": false,
"address": {
"street": "Calle del Mesón de Paredes",
"postal_code": "28012",
"city": "Madrid"
},
"latitude": 40.41158,
"longitude": -3.70616,
"main_photo_url": "https://photos.spotahome.com/smww_768_verified_ur_6_50/11c39fb71e2c3f82b7c9b1c169127a4686fb7b549116fd4e920f901a.jpg",
"photo_urls": [
"https://photos.spotahome.com/smww_768_verified_ur_6_50/11c39fb71e2c3f82b7c9b1c169127a4686fb7b549116fd4e920f901a.jpg",
"https://photos.spotahome.com/smww_768_verified_ur_6_50/c994c7a6f755e75943c0ce50bf47a2dc581b636d1834d2584f966d8a.jpg",
"https://photos.spotahome.com/smww_768_verified_ur_6_50/849c748f371a23bfd296f8a0262ec757d38a7f5622bcee5fe8ca5c98.jpg"
],
"description": "Discover this charming room available in a shared 7-bedroom apartment located in the vibrant Embajadores neighborhood in Madrid. Fully furnished and equipped, the apartment offers amenities such as a private washing machine, dishwasher, ove…"
},
{
"position": 2,
"id": "157560",
"title": "Cozy room for rent near Chamberí, Madrid",
"url": "https://www.spotahome.com/madrid/for-rent:rooms/157560",
"type": "room_shared",
"property_type": "rooms",
"price": 850,
"currency": "EUR",
"available_from": "2026-11-12",
"bills_included": "all",
"bedrooms": 3,
"bathrooms": 2,
"area_m2": 170,
"is_instant_booking": false,
"is_checked": true,
"no_security_deposit": false,
"has_deposit_protection": false,
"address": {
"street": "Calle del General Ibáñez de Ibero",
"postal_code": "28003",
"city": "Madrid"
},
"latitude": 40.4442,
"longitude": -3.71015,
"main_photo_url": "https://photos.spotahome.com/smw_768/9bb99e7529ef0b3618bf9a41d22825f9d76526528c683a978c20d58f.jpg",
"photo_urls": [
"https://photos.spotahome.com/smww_768_verified_ur_6_50/9bb99e7529ef0b3618bf9a41d22825f9d76526528c683a978c20d58f.jpg",
"https://photos.spotahome.com/smww_768_verified_ur_6_50/02a5e6dcf1623c76281a7de93878ce8f5b48b9929e1a23a9a61c614c.jpg",
"https://photos.spotahome.com/smww_768_verified_ur_6_50/4c985f5c11a98898b86d409cbaa7ec4bb3e6393aa185259e284907d6.jpg"
],
"description": "This stylish 3-bedroom home offers rooms for rent in the heart of the Cuatro Caminos business district. The 170 m² unit features decor that combines understated elegance with brilliant flashes of colour for a chic and modern vibe.\n\nThe apar…"
},
{
"position": 3,
"id": "241688",
"title": "Studio apartment to rent in Fuente del Berro, Madrid",
"url": "https://www.spotahome.com/madrid/for-rent:studios/241688",
"type": "studio",
"property_type": "studios",
"price": 1800,
"currency": "EUR",
"available_from": "2027-01-20",
"bills_included": "all",
"bathrooms": 1,
"area_m2": 65,
"is_instant_booking": false,
"is_checked": true,
"no_security_deposit": false,
"has_deposit_protection": false,
"address": {
"street": "Calle Rufino Blanco",
"postal_code": "28028",
"city": "Madrid"
},
"latitude": 40.42718,
"longitude": -3.66686,
"main_photo_url": "https://photos.spotahome.com/smww_768_verified_ur_6_50/da2c3821384e3c13099085c6d21fadb426c902f4eb682e780bc21795.jpg",
"photo_urls": [
"https://photos.spotahome.com/smww_768_verified_ur_6_50/da2c3821384e3c13099085c6d21fadb426c902f4eb682e780bc21795.jpg",
"https://photos.spotahome.com/smww_768_verified_ur_6_50/cddec877521f336c2ff0fde8e99d6ed746311ccb6c0364f6cac1a777.jpg",
"https://photos.spotahome.com/smww_768_verified_ur_6_50/db1edd41f1951fe01d63d71a70ba5a568dfefc94a101f46c39b7d192.jpg"
],
"description": "This fashionable studio apartment on Calle Rufino Blanco, in Fuente del Berro is fully furnished and has plenty of charm. The property has a modern equipped kitchen, and makes excellent use of space with the sleeping area located on a mezza…"
}
]position,id,title,url,type,property_type,price,currency,available_from,bills_included,bedrooms,bathrooms,area_m2,is_instant_booking,is_checked,no_security_deposit,has_deposit_protection,address,latitude,longitude,main_photo_url,photo_urls,description
1,139466,"Room in shared flat for rent in Embajadores, Madrid.",https://www.spotahome.com/madrid/for-rent:rooms/139466,room_shared,rooms,850,EUR,2027-01-30,all,7,2,140,false,true,false,false,"{""street"":""Calle del Mesón de Paredes"",""postal_code"":""28012"",""city"":""Madrid""}",40.41158,-3.70616,https://photos.spotahome.com/smww_768_verified_ur_6_50/11c39fb71e2c3f82b7c9b1c169127a4686fb7b549116fd4e920f901a.jpg,"[""https://photos.spotahome.com/smww_768_verified_ur_6_50/11c39fb71e2c3f82b7c9b1c169127a4686fb7b549116fd4e920f901a.jpg"",""https://photos.spotahome.com/smww_768_verified_ur_6_50/c994c7a6f755e75943c0ce50bf47a2dc581b636d1834d2584f966d8a.jpg"",""https://photos.spotahome.com/smww_768_verified_ur_6_50/849c748f371a23bfd296f8a0262ec757d38a7f5622bcee5fe8ca5c98.jpg""]","Discover this charming room available in a shared 7-bedroom apartment located in the vibrant Embajadores neighborhood in Madrid. Fully furnished and equipped, the apartment offers amenities such as a private washing machine, dishwasher, ove…"
2,157560,"Cozy room for rent near Chamberí, Madrid",https://www.spotahome.com/madrid/for-rent:rooms/157560,room_shared,rooms,850,EUR,2026-11-12,all,3,2,170,false,true,false,false,"{""street"":""Calle del General Ibáñez de Ibero"",""postal_code"":""28003"",""city"":""Madrid""}",40.4442,-3.71015,https://photos.spotahome.com/smw_768/9bb99e7529ef0b3618bf9a41d22825f9d76526528c683a978c20d58f.jpg,"[""https://photos.spotahome.com/smww_768_verified_ur_6_50/9bb99e7529ef0b3618bf9a41d22825f9d76526528c683a978c20d58f.jpg"",""https://photos.spotahome.com/smww_768_verified_ur_6_50/02a5e6dcf1623c76281a7de93878ce8f5b48b9929e1a23a9a61c614c.jpg"",""https://photos.spotahome.com/smww_768_verified_ur_6_50/4c985f5c11a98898b86d409cbaa7ec4bb3e6393aa185259e284907d6.jpg""]","This stylish 3-bedroom home offers rooms for rent in the heart of the Cuatro Caminos business district. The 170 m² unit features decor that combines understated elegance with brilliant flashes of colour for a chic and modern vibe.
The apar…"
3,241688,"Studio apartment to rent in Fuente del Berro, Madrid",https://www.spotahome.com/madrid/for-rent:studios/241688,studio,studios,1800,EUR,2027-01-20,all,,1,65,false,true,false,false,"{""street"":""Calle Rufino Blanco"",""postal_code"":""28028"",""city"":""Madrid""}",40.42718,-3.66686,https://photos.spotahome.com/smww_768_verified_ur_6_50/da2c3821384e3c13099085c6d21fadb426c902f4eb682e780bc21795.jpg,"[""https://photos.spotahome.com/smww_768_verified_ur_6_50/da2c3821384e3c13099085c6d21fadb426c902f4eb682e780bc21795.jpg"",""https://photos.spotahome.com/smww_768_verified_ur_6_50/cddec877521f336c2ff0fde8e99d6ed746311ccb6c0364f6cac1a777.jpg"",""https://photos.spotahome.com/smww_768_verified_ur_6_50/db1edd41f1951fe01d63d71a70ba5a568dfefc94a101f46c39b7d192.jpg""]","This fashionable studio apartment on Calle Rufino Blanco, in Fuente del Berro is fully furnished and has plenty of charm. The property has a modern equipped kitchen, and makes excellent use of space with the sleeping area located on a mezza…"Recorded 12 Nov 2026 · 3 items shown · 23 datapoints per itemGET /v1/spotahome/search?city=madrid&country=spain
23 datapoints
Identity
- idstring
- titlestring
- typestring
- property_typestring
Contact
- urlurl
- main_photo_urlurl
- photo_urlsstring[]
Location
- area_m2integer
- addressobject
- latitudenumber
- longitudenumber
Price
- priceinteger
- currencystring
Other
- positioninteger
- available_fromstring
- bills_includedstring
- bedroomsnumber
- bathroomsinteger
- is_instant_bookingboolean
- is_checkedboolean
- no_security_depositboolean
- has_deposit_protectionboolean
- descriptionstring
Playground
Run this API
curl "https://api.perceptlayer.com/v1/spotahome/search?city=madrid&country=spain" \
-H "X-API-Key: $API_KEY"Spotahome · 2 endpoints
Endpoints
Every endpoint takes the same key. Open one for its parameters, the fields it returns and an example request.
| Endpoint | Required parameters | Returns | Cost |
|---|---|---|---|
GET/v1/spotahome/listing | idcityproperty_type | idtitleurltypeproperty_typecity+20 more | 1 credit |
GET/v1/spotahome/search | citycountry+5 optional | positionidtitleurltypeproperty_type+17 more | 1 credit |
Overview
About the Spotahome API
What you can get
The Spotahome API returns Spotahome real-estate listings as JSON through 2 endpoints.
- Search:
searchtakes acityand acountry, withtype(rooms, apartments, studios or residences),min_price,max_price,move_inandpage. - Listings:
listingtakes anid, acityand aproperty_type(rooms, apartments, studios or residences).
How a call works
Search a city: GET /v1/spotahome/search?city=madrid&country=spain with your key in the X-API-Key header. Narrow it with type, min_price, max_price and move_in, and page with page. Then fetch one listing with its id, city and property_type, for example GET /v1/spotahome/listing?id=80504&city=madrid&property_type=rooms. Every successful call costs 1 credit; failed calls cost nothing.
More real estate APIs
Use cases
Compare listing prices for rooms, apartments, studios and residences in a city
Use the Spotahome API to compare listing prices for rooms, apartments, studios and residences in a cityTrack supply in a price band with `min_price` and `max_price`
Use the Spotahome API to track supply in a price band with `min_price` and `max_price`Add a `move_in` filter to a city search
Use the Spotahome API to add a `move_in` filter to a city searchCompare the same property type across cities
Use the Spotahome API to compare the same property type across citiesFAQ
Questions
Do I need a Spotahome API key?
No. You call this Spotahome API with your Perceptlayer key in the `X-API-Key` header, so there's no Spotahome account or app to set up.
How much does the Spotahome API cost?
Each successful call costs one credit. New accounts get free credits to start, and credit packs bring the price down as you scale.
What format are responses in?
Every endpoint returns JSON, with no HTML parsing on your side.
Which property types can I filter by?
`type` on `search` and `property_type` on `listing` both accept rooms, apartments, studios and residences.
Is this the official Spotahome API?
No. Perceptlayer is an independent service and is not affiliated with Spotahome. It returns Spotahome data as JSON with a Perceptlayer key, so there is no Spotahome developer account, app review or partner approval to get first. It only reads data: if Spotahome has an official API and you need to act on your own Spotahome account, such as posting, managing orders or reading private data, use that one.
Should I build a Spotahome scraper instead?
You can, but a Spotahome scraper is code you maintain: page changes break it, requests get blocked, and Spotahome's terms govern how you collect data. The Spotahome API gives you 2 endpoints of named JSON fields for 1 credit per successful call, and failed calls cost nothing. A scraper makes sense only for data these endpoints don't return, so check the response in the playground on this page first.
Try the Spotahome API with 100 free credits
No credit card. Failed calls are never billed.