{"openapi":"3.1.0","info":{"title":"Idealista Spain Italy and Portugal Homes (x402 & MCP)","version":"0.1.0","description":"Southern European real estate listings from Idealista across Spain, Italy and Portugal for sale and rent, one row per entity.","x-guidance":"Structured real-time web intelligence APIs paid per delivered row in USDC via x402. All endpoints are synchronous at POST /s/<site>/v1/<endpoint> and also exposed over stateless MCP at POST /mcp. Supports x402 v2 'upto' (Permit2, charged strictly for delivered rows) and 'exact' (EIP-3009). Empty/0-row (404), invalid input (422), timeout (504), and upstream failures (502) are never charged.","contact":{"email":"ops@opendata.best"}},"servers":[{"url":"https://x402.opendata.best"}],"paths":{"/s/idealista-com/v1/search":{"post":{"operationId":"idealista_com_search","summary":"Idealista Spain Italy and Portugal Homes: Search Idealista Spain, Italy and Portugal homes","description":"Search residential and commercial listings across Idealista ES, IT and PT by location slug or URL. Unit price: $0.003000/row USDC (default quote 5 rows, max 10 rows). Unsettled / 0-row / error responses are never charged.","tags":["idealista-com","Data"],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","amount":"0.015000"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"startUrls":{"type":"array","items":{"type":"string"},"description":"Idealista search or listing URLs from one country: idealista.com, idealista.it or idealista.pt. These URLs select the market and search, and take priority over location."},"location":{"type":"string","description":"Enter an Idealista location path such as madrid-madrid, roma-roma or lisboa, or a place name such as Madrid. Used only when startUrls is empty."},"country":{"type":"string","description":"Choose Spain (ES), Italy (IT) or Portugal (PT). When startUrls is filled, its URL host selects the country instead.","default":"ES","enum":["ES","IT","PT"]},"channel":{"type":"string","description":"Choose BUY for properties for sale or RENT for rentals. Rooms use RENT; search URLs select their own operation.","default":"BUY","enum":["BUY","RENT"]},"propertyType":{"type":"string","description":"Choose homes, new_homes, rooms, garages, storage, offices, commercial, land, buildings or business_transfer; holiday is supported only in Spain and Italy. Local category paths also work; startUrls takes priority when supplied.","default":"homes"},"maxPages":{"type":"integer","description":"Search-page setting from 1 to 25. Current row-limited runs follow continuation pages independently of this setting; use maxResults to cap delivered rows.","default":1,"minimum":1,"maximum":25},"scrapeDetails":{"type":"boolean","description":"Add available descriptions, agency information, property attributes and media from detail pages to search results. Default true; false keeps search-card data only, and phone numbers are not promised.","default":true},"maxResults":{"type":"integer","description":"Maximum listing rows for each URL or location, from 1 to 300; default 70, with larger requests collected in parts of 70. Your maximum run charge limits the total; free-plan users have 200 rows per run and 10 runs of this Actor; maxItems and limit are accepted aliases.","default":5,"minimum":1,"maximum":10}},"additionalProperties":false},"example":{"country":"ES","location":"madrid-madrid","channel":"BUY","propertyType":"homes","scrapeDetails":false,"maxResults":5}}}},"responses":{"200":{"description":"Synchronous data rows with x402 PAYMENT-RESPONSE receipt header.","headers":{"PAYMENT-RESPONSE":{"description":"Base64-encoded x402 v2 SettleResponse receipt.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Response_idealista_com"},"example":{"jobId":"job_idealist_example","status":"succeeded","done":true,"rowCount":1,"rowsBilled":1,"rowsDelivered":1,"rows":[{"channel":"example_channel","propertyType":"example_propertyType","id":"example_001","title":"example_title","priceFormatted":"example_priceFormatted","rooms":"example_rooms"}],"meta":{"site":"idealista-com","endpoint":"search","maxResults":5,"payment":{"scheme":"upto","network":"eip155:84532","quotedMicrousd":15000,"settledMicrousd":3000,"transaction":"0x0000000000000000000000000000000000000000000000000000000000000000"}}}}}},"402":{"description":"Payment required or invalid/declined payment authorization (never charged).","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded x402 v2 PaymentRequired quote.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"no_results: 0 rows matched the query; aborted before settlement (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"payment_id_conflict: payment-identifier reused with different parameters.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Invalid or missing request parameters (validated before /verify; charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit or payer cooldown exceeded (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"Upstream source failed or blocked (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"settlement_pending or facilitator_unavailable; retry same payment to reconcile.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"upstream_timeout: synchronous deadline reached and task cancelled (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/s/idealista-com/v1/health":{"get":{"operationId":"idealista_com_health","summary":"Idealista Spain Italy and Portugal Homes: health check","description":"Free readiness check (never returns 402 and never starts a collection).","tags":["idealista-com","health"],"responses":{"200":{"description":"Operational","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthStatus"}}}},"503":{"description":"Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthStatus"}}}}}}}},"components":{"schemas":{"ErrorDetail":{"type":"object","required":["code","message","retryable"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"retryable":{"type":"boolean"},"charged":{"type":"boolean"}}},"ErrorResponse":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/ErrorDetail"}}},"HealthStatus":{"type":"object","required":["ok","site","status","endpoints","rowsBilled"],"properties":{"ok":{"type":"boolean"},"site":{"type":"string"},"status":{"type":"string","enum":["operational","unavailable"]},"endpoints":{"type":"array","items":{"type":"string"}},"rowsBilled":{"type":"integer"}}},"Row_idealista_com":{"type":"object","properties":{"channel":{"type":["string","null"],"title":"Channel"},"propertyType":{"type":["string","null"],"title":"Type"},"id":{"type":["string","null"],"title":"ID"},"title":{"type":["string","null"],"title":"Title"},"priceFormatted":{"type":["string","null"],"title":"Price"},"rooms":{"type":["string","null"],"title":"Rooms"},"livingSpace":{"type":["string","null"],"title":"Living space"},"floor":{"type":["string","null"],"title":"Floor"},"agencyName":{"type":["string","null"],"title":"Agency"},"sourceLayer":{"type":["string","null"],"title":"Layer"},"url":{"type":["string","null"],"format":"uri","title":"URL"},"phones":{"type":["string","null"],"title":"Phones"},"emails":{"type":["string","null"],"title":"Emails"},"address":{"type":["string","null"],"title":"Address"},"geo":{"type":["string","null"],"title":"Geo"},"person":{"type":["string","null"],"title":"Person"},"org":{"type":["string","null"],"title":"Org"},"web":{"type":["string","null"],"title":"Web"},"leadSource":{"type":["string","null"],"title":"Lead source"},"leadReveal":{"type":["string","null"],"title":"Lead reveal"},"leadAbsences":{"type":["string","null"],"title":"Lead absences"}},"additionalProperties":true},"Response_idealista_com":{"type":"object","properties":{"jobId":{"type":"string"},"status":{"type":"string"},"done":{"type":"boolean"},"rowCount":{"type":"integer","minimum":1},"rowsBilled":{"type":"integer","minimum":1},"rowsDelivered":{"type":"integer","minimum":1},"rows":{"type":"array","items":{"$ref":"#/components/schemas/Row_idealista_com"}},"meta":{"type":"object","properties":{"site":{"type":"string"},"endpoint":{"type":"string"},"maxResults":{"type":"integer"},"payment":{"type":"object","properties":{"scheme":{"type":"string"},"network":{"type":"string"},"quotedMicrousd":{"type":"integer"},"settledMicrousd":{"type":"integer"},"transaction":{"type":"string"},"payer":{"type":"string"}}}}}},"required":["jobId","status","done","rowCount","rows"]}}},"x-discovery":{"ownershipProofs":["0xdb7c562a3ef6f9f29da4672abdab1489e82e910a91b863e3c22b905df6522b7223798a84245e0452cab689483b6cbb7cd8c13141319df982b213dea31ee7e4311c"]}}