{"openapi":"3.0.0","info":{"title":"Immobiliare.it Italy Property Listings","version":"1.0.0","description":"Italian homes, apartments, villas and commercial listings for sale and rent from Immobiliare.it, one row per entity."},"servers":[{"url":"https://ah-immobiliare-it.opendata.best/s/immobiliare-it"}],"paths":{"/v1/search":{"post":{"operationId":"search","summary":"Search Immobiliare.it Italian property listings","description":"Query Italian properties for sale or rent by city or location slug with unit and agency options.","tags":["search"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"startUrls":{"type":"array","items":{"type":"string"},"description":"Start URLs. Immobiliare.it search, listing or agency profile URLs. Each URL has its own maxResults limit; search URLs override location, channel and property categories."},"location":{"type":"string","description":"Location. Italian city, e.g. milano, roma, torino, napoli or firenze. Used when no start URL is given.","example":"firenze"},"channel":{"type":"string","enum":["BUY","RENT"],"description":"Channel. BUY (vendita) or RENT (affitto). Used when building searches from location. Some categories are sale-only (e.g. nuove-costruzioni).","default":"RENT"},"propertyType":{"type":"string","enum":["case","appartamenti","attici","case-indipendenti","loft","rustici","ville","villette","uffici","negozi","garage","garage-posti-auto","palazzi","attivita","magazzini","capannoni","stanze","terreni","nuove-costruzioni","all"],"description":"Property type (single). One property category, ignored when propertyTypes is nonempty. Select all for primary categories without separate residential subtypes.","default":"case"},"propertyTypes":{"type":"array","items":{"type":"string","enum":["case","appartamenti","attici","case-indipendenti","loft","rustici","ville","villette","uffici","negozi","garage","garage-posti-auto","palazzi","attivita","magazzini","capannoni","stanze","terreni","nuove-costruzioni","all"]},"description":"Property types (multi). Property categories to search, each with its own maxResults limit; overrides propertyType. Select all for primary categories without separate residential subtypes.","default":[]},"maxPages":{"type":"integer","minimum":1,"maximum":50,"description":"Max search pages. Kept so older inputs stay valid.","default":1},"scrapeDetails":{"type":"boolean","description":"Scrape detail pages. Try listing detail pages for more property details and agency contacts. A listing whose page cannot be read keeps its search-results data; missing source fields remain empty.","default":false,"example":false},"includeUnits":{"type":"boolean","description":"Include project units. Add separate, billed unit rows for properties within project listings. Listing and unit rows share each input's maxResults limit.","default":false,"example":false},"agencyId":{"type":"string","description":"Agency ID for inventory. Numeric agency ID for the agency listing selector, for example 51157. Used only with provider set to wsapp and wsappEnum set to agency.","default":""},"maxResults":{"type":"integer","minimum":1,"maximum":20,"description":"Max rows per input (each listed URL, ID or keyword; a single target counts as one input). All row types share this allowance. Each plan caps the rows of one request (BASIC 10, PRO 70, ULTRA 200, MEGA 500); larger values are lowered to your plan's cap. You pay per delivered row (Rows).","default":10,"example":3},"requestId":{"type":"string","pattern":"^[A-Za-z0-9._:-]{1,80}$","description":"Optional. Your id for this request: repeating it while the job runs returns the same job."}}},"example":{"location":"firenze","channel":"RENT","scrapeDetails":false,"includeUnits":false,"maxResults":3}}}},"responses":{"200":{"description":"Done within the request: the rows.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RowsPage"}}}},"404":{"description":"No results matched the query (nothing was billed).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Invalid or missing parameters.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"At capacity, too many running jobs, or rolling 24-hour row limit reached; retry after Retry-After seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"The source could not be collected this time (not billed).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"504":{"description":"Synchronous timeout reached before completion; task cancelled (nothing was billed).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/health":{"get":{"operationId":"health","summary":"API health check","description":"Lightweight readiness check for this API. Never starts a collection and always bills 0 rows.","tags":["health"],"responses":{"200":{"description":"API is operational (0 rows).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthStatus"}}}},"503":{"description":"API is temporarily unavailable (not billed).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthStatus"}}}}}}}},"components":{"schemas":{"Row":{"type":"object","properties":{"id":{},"rowType":{"type":"string","enum":["listing","unit","agency"]},"uuid":{"nullable":true,"type":"string"},"listingId":{"nullable":true,"type":"string"},"url":{"nullable":true,"type":"string"},"source":{"type":"string"},"sourceLayer":{"nullable":true,"type":"string"},"channel":{"nullable":true,"type":"string"},"category":{"nullable":true,"type":"string","description":"Property category slug, such as case, appartamenti or garage."},"categoryGroup":{"nullable":true,"type":"string","description":"Property category group: residential, residential_subtype, commercial, rooms, land or new_build."},"categoryName":{"nullable":true,"type":"string","description":"Category label as the source shows it (for example Residenziale)."},"title":{},"typology":{"nullable":true,"type":"string"},"priceAmount":{},"priceFormatted":{},"pricePerSquareMeter":{},"priceOnRequest":{"nullable":true,"type":"boolean"},"rooms":{},"bathrooms":{},"bedrooms":{},"surface":{},"floor":{},"floors":{},"elevator":{},"condition":{"nullable":true,"type":"string"},"heating":{"nullable":true,"type":"string"},"energyClass":{},"epi":{},"airConditioning":{},"condominiumExpenses":{},"agencyCommission":{},"deposit":{},"availableToStudents":{"nullable":true,"type":"boolean"},"availability":{},"buildingYear":{},"reference":{"nullable":true,"type":"string"},"description":{"nullable":true,"type":"string"},"features":{},"city":{},"province":{},"region":{},"macrozone":{},"microzone":{},"postalCode":{"nullable":true,"type":"string"},"latitude":{},"longitude":{},"visibility":{},"isNew":{"nullable":true,"type":"boolean"},"luxury":{"nullable":true,"type":"boolean"},"isProjectLike":{"nullable":true,"type":"boolean"},"propertiesCount":{},"hasMultimedia":{"nullable":true,"type":"boolean"},"createdAt":{},"updatedAt":{},"lastUpdate":{},"state":{},"availableState":{},"partnership":{},"searchUrl":{"nullable":true,"type":"string"},"agency":{"nullable":true,"type":"object","properties":{"id":{},"name":{"nullable":true,"type":"string"},"type":{"nullable":true,"type":"string"},"phones":{"nullable":true,"type":"array","items":{}},"address":{"nullable":true,"type":"string"},"agencyUrl":{"nullable":true,"type":"string"},"agencyUuid":{"nullable":true,"type":"string"},"guaranteed":{},"supervisorName":{"nullable":true,"type":"string"}}},"contactFlags":{"nullable":true,"type":"object","properties":{"bookVisitsEnabled":{"nullable":true,"type":"boolean"},"priceProposalEnabled":{"nullable":true,"type":"boolean"},"messageButtonEnabled":{"nullable":true,"type":"boolean"},"agencyId":{},"agencyUuid":{"nullable":true,"type":"string"}}},"images":{"nullable":true,"type":"array","items":{"type":"string"}},"scrapedAt":{"type":"string"},"phones":{"nullable":true,"type":"array","items":{"type":"object"}},"emails":{"nullable":true,"type":"array","items":{"type":"object"}},"address":{"nullable":true,"type":"object","properties":{"street":{"nullable":true,"type":"string"},"unit":{"nullable":true,"type":"string"},"locality":{"nullable":true,"type":"string"},"region":{"nullable":true,"type":"string"},"postalCode":{"nullable":true,"type":"string"},"country":{"nullable":true,"type":"string"},"full":{"nullable":true,"type":"string"}}},"geo":{"nullable":true,"type":"object","properties":{"lat":{"nullable":true,"type":"number"},"lng":{"nullable":true,"type":"number"}}},"person":{"nullable":true,"type":"object","properties":{"name":{"nullable":true,"type":"string"},"role":{"nullable":true,"type":"string"}}},"org":{"nullable":true,"type":"object","properties":{"name":{"nullable":true,"type":"string"},"id":{}}},"web":{"nullable":true,"type":"object","properties":{"website":{"nullable":true,"type":"string"},"socials":{"nullable":true,"type":"array","items":{"type":"string"}}}},"leadSource":{"nullable":true,"type":"string"},"leadReveal":{"nullable":true,"type":"string"},"leadAbsences":{"nullable":true,"type":"object"},"listingTitle":{"nullable":true,"type":"string"},"listingUrl":{"nullable":true,"type":"string"},"priceMin":{},"priceMax":{},"surfaceMin":{},"surfaceMax":{},"featuresCount":{},"phonesCount":{},"imagesCount":{},"geoVisibilityType":{"nullable":true,"type":"string"},"subProperties":{},"shareUrl":{"nullable":true,"type":"string"},"badge":{},"analytics":{},"soldTransactionDate":{},"enabled":{"nullable":true,"type":"boolean"},"isUnread":{"nullable":true,"type":"boolean"},"infoCosts":{},"mortgage":{},"externalReferences":{},"aiSettings":{},"tracking":{},"surfaceConstitution":{},"mainData":{},"featuresTags":{}},"additionalProperties":true,"description":"One collected entity. Field availability depends on rowType and the source. Fields always present (a|b = at least one of them): every row: id; rowType=listing: id, title, url, priceAmount."},"Error":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/ErrorDetail"}}},"ErrorDetail":{"type":"object","required":["code","message","retryable"],"properties":{"code":{"type":"string","example":"invalid_input"},"message":{"type":"string"},"retryable":{"type":"boolean"}}},"JobStatus":{"type":"object","properties":{"jobId":{"type":"string"},"status":{"type":"string","enum":["queued","running","succeeded","partial","failed","cancelled"]},"done":{"type":"boolean"},"rowsAvailable":{"type":"integer"},"rowsDelivered":{"type":"integer","description":"Rows already delivered (and billed) to you for this job."},"rowsLimit":{"type":"integer","description":"Most rows this job can deliver."},"estimatedFinishSec":{"type":"integer","description":"While running: estimated seconds until done."},"statusUrl":{"type":"string"},"resultsUrl":{"type":"string"},"expiresAt":{"type":"string","format":"date-time"},"retentionHours":{"type":"integer"},"error":{"$ref":"#/components/schemas/ErrorDetail"}}},"RowsPage":{"allOf":[{"$ref":"#/components/schemas/JobStatus"},{"type":"object","properties":{"offset":{"type":"integer"},"nextOffset":{"type":"integer"},"hasMore":{"type":"boolean"},"rowCount":{"type":"integer"},"rowsBilled":{"type":"integer","description":"Rows delivered by this response."},"rows":{"type":"array","items":{"$ref":"#/components/schemas/Row"}},"meta":{"type":"object","additionalProperties":true}}}]},"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"}}}}}}