APIs / Spotahome / Search

Spotahome: Search

Search from Spotahome as JSON. 1 credit per successful call.

GET /v1/spotahome/search

Parameters

Send parameters in the query string.

ParameterTypeRequiredAllowed values
citystringRequiredAny
countrystringRequiredAny
pageintegerOptionalAny
min_priceintegerOptionalAny
max_priceintegerOptionalAny
typestringOptionalrooms, apartments, studios, residences
move_instringOptionalAny

Example request

Spotahome
GET/v1/spotahome/search?city=madrid&country=spain
{
  "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"
  }
}
200 OKJSONX-Credits-Used: 1
Recorded 12 Nov 2026 and shortened.

Run this endpoint in the playground with your own parameters. 1 credit per successful call; failed calls are free.

Response fields

Each item in data.listings has these 23 fields, read from a recorded call that returned 48 items. The recording leaves out fields that were empty, so a live call can return more.

FieldType
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