Skip to content
NewIntroducing lobstr.io API v2: Web Data for AI Agents
Idealista API: Search listingsTry it

Idealista API: Search listings

One page of an Idealista search in a place (a city, a district, a zone of the map), up to 30 listings for sale or rentals in Spain, Italy or Portugal, with every field Idealista gives.

1 credita callWorks today
Try itDocs
1Request
Where, when url is not given: a place's name (a city, a district, a neighbourhood, a province), the first place Idealista's place box suggests for it in country; or Idealista's id of a place, as a record's location.location_id says it (0-EU-ES-28-07-001-079 is Madrid), which names its country.
For sale (when not given) or to rent, with location.
The order, with location, as the site's menu offers it: Idealista's relevance (when not given), the newest or oldest first (by the day the listing was published, which a record says in first_published_at for a rent or a room), the lowest or highest price, the biggest price drops, the lowest or highest price per m², the largest or smallest, the highest or lowest floor first.
1 credit a call
Code, from the fields above
curl https://api.lobstr.io/v2/run \
  -H "Authorization: Bearer $LOBSTR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "source": "idealista",
    "operation": "listings/search",
    "options": {
      "location": "Madrid",
      "operation": "sale",
      "sort": "newest"
    }
  }'
2Response

An example answer. Run it on your own input.

{
  "object": "run",
  "id": "run_adqhqm46n6xkngtgtrnyh7j5qy",
  "livemode": true,
  "source": "idealista",
  "operation": "listings/search",
  "version": "1.0.0",
  "schema_url": "https://api.lobstr.io/v2/catalog/idealista/listings/search",
  "options": {
    "location": "Madrid",
    "operation": "sale",
    "sort": "newest"
  },
  "fields": null,
  "status": "succeeded",
  "count": 1,
  "has_more": true,
  "next": {
    "source": "idealista",
    "operation": "listings/search",
    "options": {
      "location": "Madrid",
      "operation": "sale",
      "sort": "newest",
      "cursor": "gAAAAABpNWd0x2kQ8vZr3TfYc1LmRb7uHsE9wA4jXoKqDn6yPiGt5"
    }
  },
  "cost": {
    "credits": 1
  },
  "results": [
    {
      "position": 1,
      "object": "listing",
      "id": "113247666",
      "url": "https://www.idealista.com/inmueble/113247666/",
      "country": "es",
      "operation": "sale",
      "property_type": "studio",
      "typology": "flat",
      "subtypology": "studio",
      "is_transfer": null,
      "title": "Studio in Plaza de Verín, Pilar, Madrid",
      "subtitle": null,
      "description": "Excellent opportunity for sale in Plaza de Verín, a few meters from La Vaguada, with metro and bus links. Open-plan studio with an exterior window, an equipped kitchen and a full bathroom.",
      "reference": "215-10103",
      "price": {
        "amount": 199000,
        "currency": "EUR",
        "period": null,
        "former_amount": null
      },
      "transfer_price": null,
      "main_price": "price",
      "price_label": null,
      "price_drop": null,
      "price_per_m2": 5853,
      "size": 34,
      "rooms": 0,
      "bathrooms": 1,
      "floor": "bj",
      "plot_area": null,
      "is_exterior": true,
      "has_lift": false,
      "condition": "good",
      "features": {
        "has_air_conditioning": null,
        "has_box_room": null,
        "has_garden": null,
        "has_swimming_pool": null,
        "has_terrace": null
      },
      "parking": null,
      "situation": null,
      "is_new_development": false,
      "is_new_development_finished": null,
      "development_name": null,
      "flat_share": null,
      "has_tenants": null,
      "is_rent_to_own": null,
      "has_24h_access": null,
      "availability": null,
      "is_auction": null,
      "auction_date": null,
      "location": {
        "is_address_shown": false,
        "neighborhood": "Pilar",
        "district": "Fuencarral",
        "municipality": "Madrid",
        "province": "Madrid",
        "country": "es",
        "location_id": "0-EU-ES-28-07-001-079-08-004",
        "latitude": 40.4787903,
        "longitude": -3.70774
      },
      "media": {
        "photos": [
          {
            "url": "https://img4.idealista.com/blur/WEB_LISTING/0/id.pro.es.image.master/2f/b5/be/1449043403.jpg",
            "tag": "room"
          },
          {
            "url": "https://img4.idealista.com/blur/WEB_LISTING/0/id.pro.es.image.master/2f/b5/be/1449043404.jpg",
            "tag": "kitchen"
          }
        ],
        "videos": [],
        "virtual_tours": [],
        "home_staging": [],
        "photo_count": 6,
        "thumbnail_url": "https://img4.idealista.com/blur/WEB_LISTING/0/id.pro.es.image.master/2f/b5/be/1449043403.jpg",
        "has_reference_images": null,
        "has_plan": false,
        "has_video": false,
        "has_3d_tour": false,
        "has_360": false,
        "has_home_staging": false
      },
      "seller": {
        "type": "professional",
        "name": "Adesa 33",
        "commercial_name": "adesa 33",
        "phone": {
          "number": "+34919387496",
          "as_written": "919 38 74 96",
          "country_code": "34",
          "is_national": true
        },
        "contact_method": "all",
        "needs_login_to_contact": false,
        "needs_login_for_phone": false,
        "logo_url": "https://st3.idealista.com/2f/b5/be/adesa-33.gif",
        "microsite": "adesa-33"
      },
      "labels": [],
      "ribbons": [],
      "promotion": {
        "group": null,
        "is_top_new_development": false,
        "is_new_development_highlight": false,
        "is_preference_highlight": false,
        "is_top_highlight": false,
        "is_top_plus": false,
        "is_urgent_visual_highlight": false,
        "is_visual_highlight": false
      },
      "is_online_booking_active": false,
      "luxury_visibility": null,
      "first_published_at": null,
      "ids": {
        "listing_id": "113247666",
        "location_id": "0-EU-ES-28-07-001-079-08-004",
        "reference": "215-10103",
        "microsite": "adesa-33"
      },
      "source_url": "https://app.idealista.com/api/3.5/es/search",
      "observed_at": "2026-12-04T16:20:00Z"
    }
  ]
}

112 fields per listing

Every call returns them for each record, in the results of its JSON answer.

Search listings

112 fields
position
number
Its place in the search, across pages of 30; page 2 starts at 31.
1
object
text
The kind of record: a listing, whichever site it comes from.
listing
id
id
Idealista's listing id (113247666), the number in its page's address; repeated in ids.listing_id.
113247666
url
link
The listing on the site (https://www.idealista.com/inmueble/113247666/).
idealista.com/inmueble/113247666/
country
text
Where the listing is: es (Spain), it (Italy), pt (Portugal).
es

What it costs

Billed by the call: 1 credits, whatever the page holds (up to 30 listings). Pick how many calls a month.

Every plan

1 credit a call

Calls a month

100

Per 100 calls

Free

On the free plan, up to 100 calls a month.

Live

Built to run

Every call counts; a day is green at 95% successful.

Successful calls
100.00%
Median call
4.5 s
90 days agoToday
95% or more (SLA)90 to 95%75 to 90%Under 75%

A call fails when the site does not answer or we cannot read its answer; a wrong input is not counted.

Frequently asked questions

What people ask before calling idealista/listings/search.

Search listings

When do I use it?

You need the property listings Idealista (idealista.com, idealista.it, idealista.pt) finds in Spain, Italy or Portugal: homes, new developments, offices, premises, business transfers, garages, land, storage rooms, buildings or rooms in a shared flat, for sale or to rent, with their price and its drops, size, rooms, floor, condition, photos, position and seller, the seller's phone included. Ask in one of two ways, never both: by url, a search's page on the site as a person has it in the address bar, with any of its filters and its order; or by location (a place's name, as Idealista's place box finds it, or Idealista's id of it) with the operation, the type of property, the prices, sizes, bedrooms, bathrooms, condition, features and order. One page holds 30 listings; follow next for the following page. idealista/listings/get gives one listing whole: its description in every language Idealista has it in, its characteristics, its energy certificate, the seller's address.

What do I give it?
  • url: A search's page on idealista.com, idealista.it or idealista.pt, as the browser shows it: its place (a city, a district, several zones, a zone drawn on the map, the map's view), its filters and its order (?ordenado-por=...), which Idealista reads itself. Give url or location, not both: the other options of the search are refused with url.
  • location: Where, when url is not given: a place's name (a city, a district, a neighbourhood, a province), the first place Idealista's place box suggests for it in country; or Idealista's id of a place, as a record's location.location_id says it (0-EU-ES-28-07-001-079 is Madrid), which names its country.
  • country: The country a place's name is looked for in, with location: es (Spain, when not given), it (Italy) or pt (Portugal).
  • operation: For sale (when not given) or to rent, with location.
  • property_type: The type of property, with location, as the site's menu offers it: homes when not given (every kind: flats, studios, penthouses, duplexes, houses; a record's typology and subtypology say which), new developments, offices, commercial premises, business transfers (premises let with the business, for a transfer fee), garages, land, storage rooms, whole buildings, or rooms in a shared flat (to rent only).
  • price_min: The lowest price, in euros, included: a sale's, or a month's rent.
  • price_max: The highest price, in euros, included: a sale's, or a month's rent.
  • size_min: The smallest size, in m².
  • size_max: The largest size, in m².
  • bedrooms: The numbers of bedrooms wanted, as the site's boxes: 0 is a studio, 4 is 4 or more. All when empty.
  • bathrooms: The numbers of bathrooms wanted, 3 is 3 or more. All when empty.
  • condition: The properties in good condition, to renovate, or new developments. All when empty.
  • published_within: The listings published in the last 24 or 48 hours, week or month. Idealista takes last24hours for a rent alone: a sale is refused it (invalid_input, with the values it takes).
  • features: The site's filters, each narrowing the search to the listings that have it: a lift, a terrace, a swimming pool, air conditioning, a parking space, a garden, an exterior home, a storage room, built-in wardrobes, a balcony, access for people with reduced mobility, a floor plan, a virtual tour, a luxury home, sea views, pets allowed (a rent), a home a bank sells. The site's other filters (floors, energy, occupation, a house's kind) are reached with url.
  • sort: The order, with location, as the site's menu offers it: Idealista's relevance (when not given), the newest or oldest first (by the day the listing was published, which a record says in firstpublishedat for a rent or a room), the lowest or highest price, the biggest price drops, the lowest or highest price per m², the largest or smallest, the highest or lowest floor first. With url, the page's own order.
  • language: The language of what Idealista writes itself (a listing's title, its labels, the price's words) and of its translation of a seller's description when it has one; a description it has not translated stays in the seller's language.
What does it return?

One page of an Idealista search in a place (a city, a district, a zone of the map), up to 30 listings for sale or rentals in Spain, Italy or Portugal, with every field Idealista gives. Every record has the same fields, empty ones included: they are all listed above.

How do I get the next page?

Each answer ends with next: the following call, whole. Send it as it is; it is null after the last page. A page holds 30 records at most.

Pricing

What does a call cost?

1 credit a call, one page of up to 30 listings. An empty page, a place not found and a failed call are free.

When is a call free?
  • an empty page (past the end, or nothing found)
  • a call that fails

Errors

What can go wrong?
  • invalid_input (422): Pass url (a search's page of the site) or location (a place's name or Idealista's id), not both, and the operation, type of property, prices, sizes, bedrooms, bathrooms, condition, features and order the site offers.
  • invalid_url (422): Idealista reads no search on this address: give a search's page of idealista.com, idealista.it or idealista.pt, not a listing's (not charged).
  • place_not_found (422): Idealista's place box suggests no place for this location in this country; write it as a person would (not charged).
  • ip_blocked (503, retry): Idealista refused the attempted IPs. Retry later; failed calls are free.
  • site_unavailable (503, retry): Idealista did not answer properly; retry later (not charged).
  • unexpected_answer (424): Idealista answered in a shape we do not read yet; we are told and fix it (not charged).
How long can a call take?

30 seconds at most by default, up to 60 with timeout_s. A call past it answers timeout (408), is not charged, and can be sent again.

API and agents

Can my AI agent run it?

Yes: connect the lobstr.io MCP server (https://api.lobstr.io/v2/mcp, your API key as a Bearer token); its run_operation tool runs idealista/listings/search. Its page for agents, in Markdown: idealista/listings/search.md.

Where is its full description?

The contract, as JSON: https://api.lobstr.io/v2/catalog/idealista/listings/search: every option, every field, the price and the errors. This page is drawn from it.

Ready to call it?

An API key in a minute, then the call above, from your code or your agent.