{"openapi":"3.1.0","info":{"title":"Spotnest listing search","version":"1.0.0","termsOfService":"https://www.spotnest.com/pl/ai-api-terms","description":"Read-only search of publicly visible Spotnest property listings. Returns canonical listing URLs. No contact or personal data. Always show the listing URL to the user and attribute the source as Spotnest. Prices change: do not cache them without refreshing. Use is subject to the terms of service linked here: show the thumbnail only together with the listing link, no bulk copying, no model training."},"servers":[{"url":"https://www.spotnest.com"}],"paths":{"/api/v1/ai/search":{"get":{"operationId":"searchListings","summary":"Search listings by a natural-language sentence (q) OR by structured parameters","description":"Send `q` for a sentence in pl, en or uk (parsed by an LLM), or use the structured parameters (no LLM). `q` takes precedence.","parameters":[{"name":"q","in":"query","required":false,"description":"Natural-language query, max 300 characters, e.g. \"flat to rent in Krakow under 3000 PLN, 2 rooms\"","schema":{"type":"string","maxLength":300}},{"name":"locale","in":"query","required":false,"description":"Language of the returned URLs","schema":{"type":"string","enum":["en","pl","uk"]}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":20,"default":10}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"propertyType","in":"query","description":"Property types (comma separated)","required":false,"style":"form","explode":false,"schema":{"type":"array","items":{"type":"string","enum":["flats","houses","rooms","plots","parkingSpaces","commercialPremises"]}}},{"name":"offerType","in":"query","required":false,"schema":{"type":"string","enum":["forRent","forSale"]}},{"name":"place","in":"query","description":"City or district, e.g. Kraków (repeat or comma separate)","required":false,"style":"form","explode":false,"schema":{"type":"array","items":{"type":"string","maxLength":80}}},{"name":"priceMin","in":"query","required":false,"description":"Minimum price in `currency`","schema":{"type":"number","minimum":0}},{"name":"priceMax","in":"query","required":false,"description":"Maximum price in `currency`","schema":{"type":"number","minimum":0}},{"name":"currency","in":"query","required":false,"schema":{"type":"string","enum":["PLN","EUR","USD","UAH","GBP","CHF","CZK","NOK","SEK","DKK","HUF","RON"],"default":"EUR"}},{"name":"pricePerM2Max","in":"query","required":false,"description":"Maximum price per m2 in `currency`","schema":{"type":"number","minimum":0}},{"name":"roomsMin","in":"query","required":false,"description":"Minimum number of rooms","schema":{"type":"number","minimum":0}},{"name":"roomsMax","in":"query","required":false,"description":"Maximum number of rooms","schema":{"type":"number","minimum":0}},{"name":"areaMin","in":"query","required":false,"description":"Minimum usable area, m2","schema":{"type":"number","minimum":0}},{"name":"areaMax","in":"query","required":false,"description":"Maximum usable area, m2","schema":{"type":"number","minimum":0}},{"name":"radiusKm","in":"query","required":false,"description":"With ONE place: also listings within this many km of it, e.g. \"near Warsaw\" = 30 (1-100)","schema":{"type":"number","minimum":0}},{"name":"outsideOnly","in":"query","required":false,"description":"With ONE place: only its surroundings, WITHOUT the place itself (radiusKm defaults to 30)","schema":{"type":"boolean"}},{"name":"floorMin","in":"query","required":false,"description":"Lowest floor of the unit (0 = ground floor)","schema":{"type":"number","minimum":0}},{"name":"floorMax","in":"query","required":false,"description":"Highest floor of the unit (0 = ground floor)","schema":{"type":"number","minimum":0}},{"name":"landAreaMin","in":"query","required":false,"description":"Minimum plot area, m2","schema":{"type":"number","minimum":0}},{"name":"landAreaMax","in":"query","required":false,"description":"Maximum plot area, m2","schema":{"type":"number","minimum":0}},{"name":"plotType","in":"query","description":"Kind of plot, plots only (comma separated), e.g. building","required":false,"style":"form","explode":false,"schema":{"type":"array","items":{"type":"string","enum":["building","agricultural","recreational","communityGarden","investment","forestPlot","habitat","other"]}}},{"name":"sellerType","in":"query","description":"Who offers it: private (direct from a private person), agency, developer (comma separated)","required":false,"style":"form","explode":false,"schema":{"type":"array","items":{"type":"string","enum":["private","agency","developer"]}}},{"name":"condition","in":"query","description":"Condition (comma separated)","required":false,"style":"form","explode":false,"schema":{"type":"array","items":{"type":"string","enum":["readyToMoveIn","forRenovation","unfurnished","underConstruction","preConstruction"]}}},{"name":"amenity","in":"query","description":"Required amenities, all must match","required":false,"style":"form","explode":false,"schema":{"type":"array","items":{"type":"string","enum":["airConditioning","basement","attic","elevator","parkingSpace","smokingAllowed","furnished","ecoFriendly","shopWindow","wheelchairFriendly","childFriendly","studentFriendly","storageCompartment","solarPanels"]}}},{"name":"garden","in":"query","required":false,"description":"Flats or houses with a garden: the listing states a plot area","schema":{"type":"boolean"}},{"name":"balcony","in":"query","required":false,"schema":{"type":"boolean"}},{"name":"petsAllowed","in":"query","required":false,"description":"Only listings that allow pets","schema":{"type":"boolean"}},{"name":"availableBy","in":"query","required":false,"description":"Rentals available by this date (YYYY-MM-DD)","schema":{"type":"string","format":"date"}},{"name":"nearPoi","in":"query","description":"Required nearby places (within poiRadiusM)","required":false,"style":"form","explode":false,"schema":{"type":"array","items":{"type":"string","enum":["park","school","kindergarten","grocery","restaurant","playground"]}}},{"name":"poiRadiusM","in":"query","required":false,"schema":{"type":"integer","minimum":50,"maximum":3000,"default":500}},{"name":"sort","in":"query","required":false,"schema":{"type":"string","enum":["relevance","newest","priceAsc","priceDesc","pricePerM2Asc"]}},{"name":"v","in":"query","required":false,"description":"Set to 2 for per-requirement matching: scope is filtered, every other wish is judged per listing (ok / miss / unknown) and returned in `criteria`, `groups`, `stats` and `results[].match`","schema":{"type":"integer","enum":[2]}},{"name":"group","in":"query","required":false,"description":"v=2 only: which group to list","schema":{"type":"string","enum":["all","full","partial"],"default":"all"}},{"name":"must","in":"query","description":"v=2 only: requirement ids that must match exactly, e.g. balcony, pets, amenity.elevator, poi.park","required":false,"style":"form","explode":false,"schema":{"type":"array","items":{"type":"string","pattern":"^[A-Za-z0-9.]{1,40}$"}}},{"name":"text","in":"query","required":false,"description":"Free-text wishes that no field covers (bright, quiet, sea view); matched by hybrid text + vector search","schema":{"type":"string","maxLength":300}}],"responses":{"200":{"description":"Matching listings","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchResponse"}}}},"400":{"description":"emptyQuery, queryTooLong or invalidParameters"},"404":{"description":"Search is not enabled in this environment"},"422":{"description":"cannotUnderstandQuery"},"429":{"description":"Rate limited; see Retry-After"},"503":{"description":"searchUnavailable. The `fallback` of the body is a page of the website (not an API path), e.g. /properties/flats/forRent: send the user there.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"fallback":{"type":"string","description":"Website path, without the language prefix"}}}}}}}}},"/api/v1/ai/listing":{"get":{"operationId":"getListing","summary":"Public details of one listing","parameters":[{"name":"id","in":"query","required":true,"description":"`id` of a search result","schema":{"type":"string"}},{"name":"locale","in":"query","required":false,"schema":{"type":"string","enum":["en","pl","uk"]}}],"responses":{"200":{"description":"Listing details: the search result fields plus description, condition, floor, amenities and more","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListingResult"}}}},"404":{"description":"Unknown, hidden or expired listing"},"429":{"description":"Rate limited; see Retry-After"},"503":{"description":"searchUnavailable. The `fallback` of the body is a page of the website (not an API path), e.g. /properties/flats/forRent: send the user there.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"fallback":{"type":"string","description":"Website path, without the language prefix"}}}}}}}}}},"components":{"schemas":{"ListingResult":{"type":"object","properties":{"id":{"type":"string"},"url":{"type":"string","format":"uri","description":"Canonical listing page: always link to it"},"title":{"type":"string"},"propertyType":{"type":"string","enum":["flats","houses","rooms","plots","parkingSpaces","commercialPremises"]},"offerType":{"type":"string","enum":["forRent","forSale"]},"city":{"type":"string"},"district":{"type":"string"},"price":{"type":["object","null"],"properties":{"amount":{"type":"number"},"currency":{"type":"string"}}},"priceEur":{"type":["number","null"]},"pricePerM2Eur":{"type":["number","null"]},"area":{"type":["number","null"]},"rooms":{"type":["integer","null"]},"image":{"type":["string","null"],"format":"uri","description":"Main photo, full size."},"thumbnail":{"type":["string","null"],"format":"uri","description":"Main photo as a small thumbnail (CDN preset). Use it in lists and chat answers; link to `url` for the full listing."}}},"SearchResponse":{"type":"object","properties":{"query":{"type":"string"},"found":{"type":"integer"},"results":{"type":"array","items":{"$ref":"#/components/schemas/ListingResult"}},"appliedFilters":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string"},"value":{"type":"string"}}}},"unsupported":{"type":"array","items":{"type":"string"},"description":"Wishes that could NOT be applied: tell the user"},"relaxed":{"type":"array","items":{"type":"string"},"description":"Criteria dropped because nothing matched: tell the user"},"clarification":{"type":"string","description":"A question worth asking the user"},"language":{"type":"string"},"intent":{"type":"object","description":"How the request was understood; the MCP tool accepts it back together with `refine`"}}}}}}