{"openapi":"3.0.0","info":{"title":"Booli Sweden Listings Sold Prices and Agents","version":"1.0.0","description":"Swedish property listings, final sold prices, new construction and broker agencies from Booli.se, one row per entity."},"servers":[{"url":"https://ah-booli-se.opendata.best/s/booli-se"}],"paths":{"/v1/search":{"post":{"operationId":"search","summary":"Search Booli Sweden listings and sold prices","description":"Query Swedish properties for sale, sold prices or new construction by area ID, location or filters.","tags":["search"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"areaIds":{"type":"array","items":{"type":"integer"},"description":"Area IDs. Booli area IDs to search. The example value [2] selects Stockholms län; repeated properties across areas are removed.","example":[2]},"location":{"type":"string","description":"Location. Swedish place name or slug, such as Lund or goteborg. For listing and agent searches, this takes precedence over areaIds."},"areaSlug":{"type":"string","description":"Area slug. Place slug for area searches. With channel maklarbyra, enter an agency slug instead to collect its agents."},"detailUrls":{"type":"array","items":{"type":"string"},"description":"Detail URLs. Booli detail URLs or listing IDs. Match channel to the target: property, agent, agency or housing cooperative; these targets take priority over area searches."},"channel":{"type":"string","enum":["till-salu","slutpriser","nyproduktion","maklare","maklarbyra","brf","sale","sold","projects","agents"],"description":"Channel. Choose for-sale listings, sold prices, new construction, agents, agencies or housing cooperatives. An agency slug with maklarbyra returns that agency's agents.","default":"till-salu","example":"till-salu"},"objectType":{"type":"string","description":"Object type. Property category to match, such as Lägenhet (apartment), Villa (house), Radhus (terraced house) or Tomt/Mark (land). Leave empty for all categories.","default":"","example":""},"tenureForm":{"type":"string","description":"Tenure form. Ownership form to match, such as Bostadsrätt (cooperative ownership), Äganderätt (freehold) or Hyresrätt (rental tenure). This is not a separate rental-search mode.","default":"","example":""},"minListPrice":{"type":"integer","description":"Min list price (SEK). Minimum asking price in SEK for listing searches."},"maxListPrice":{"type":"integer","description":"Max list price (SEK). Maximum asking price in SEK for listing searches."},"minSoldPrice":{"type":"integer","description":"Min sold price (SEK). Minimum sale price in SEK for sold-property searches."},"maxSoldPrice":{"type":"integer","description":"Max sold price (SEK). Maximum sale price in SEK for sold-property searches."},"minRooms":{"type":"number","description":"Min rooms. Minimum room count for property searches."},"maxRooms":{"type":"number","description":"Max rooms. Maximum room count for property searches."},"minLivingArea":{"type":"integer","description":"Min living area (m²). Optional minimum living area in square meters."},"maxLivingArea":{"type":"integer","description":"Max living area (m²). Optional maximum living area in square meters."},"minPlotArea":{"type":"integer","description":"Min plot area (m²). Optional minimum plot area in square meters."},"maxPlotArea":{"type":"integer","description":"Max plot area (m²). Optional maximum plot area in square meters."},"minConstructionYear":{"type":"integer","description":"Min construction year. Earliest construction year to include, from 1600 to 2100."},"maxConstructionYear":{"type":"integer","description":"Max construction year. Latest construction year to include, from 1600 to 2100."},"minSoldDate":{"type":"string","description":"Min sold date. Earliest sale date for slutpriser. Use YYYY-MM-DD or YYYYMMDD; leave empty for no lower date bound."},"maxSoldDate":{"type":"string","description":"Max sold date. Latest sale date for slutpriser. Use YYYY-MM-DD or YYYYMMDD; leave empty for no upper date bound."},"isNewConstruction":{"type":"boolean","description":"New construction only. When true, only include new construction listings."},"sort":{"type":"string","description":"Sort. Sort field, such as listPrice, published, livingArea, rooms, soldPrice, soldDate or listSqmPrice. Leave empty for the source order.","default":"","example":""},"ascending":{"type":"boolean","description":"Ascending. Use ascending order when a sort field is set.","default":false},"maxPages":{"type":"integer","minimum":1,"maximum":50,"description":"Max pages. Maximum search pages to collect, from 1 to 50. A low page limit can return fewer rows than maxResults.","default":1,"example":1},"pageSize":{"type":"integer","minimum":1,"maximum":500,"description":"Rows per search page. Rows requested per search page, from 1 to 500. This stays fixed during pagination; maxResults limits delivered rows per input.","default":100,"example":100},"enrichDetails":{"type":"boolean","description":"Enrich details. Include available property details and public agent contacts in listing rows. Enabled by default; missing contacts remain empty.","default":true,"example":true},"enrichHousingCoop":{"type":"boolean","description":"Enrich housing coop (BRF). Include available housing-cooperative context in listing rows. Standard listing results contain only the available ID, name and link, not a complete association profile.","default":false,"example":false},"imageLimit":{"type":"integer","minimum":0,"maximum":20,"description":"Image limit. Maximum image URLs per listing, from 0 to 20. Set 0 to omit images.","default":5,"example":5},"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":{"areaIds":[2],"channel":"till-salu","enrichDetails":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":{"name":{"nullable":true,"type":"string"},"type":{"type":"string"},"rowType":{"type":"string","enum":["listing","sold","project","agent","agency","housing_coop"]},"status":{"nullable":true,"type":"string"},"country":{"type":"string"},"authority":{"type":"string"},"listingId":{"nullable":true,"type":"string"},"booliId":{"nullable":true,"type":"string"},"listingUrl":{"nullable":true,"type":"string"},"channel":{"nullable":true,"type":"string"},"priceDisplay":{"nullable":true,"type":"string"},"descriptiveAreaName":{"nullable":true,"type":"string"},"streetAddress":{"nullable":true,"type":"string"},"agentSlug":{"nullable":true,"type":"string"},"agencyName":{"nullable":true,"type":"string"},"housingCoopId":{"nullable":true,"type":"string"},"residenceCount":{"nullable":true},"residencesTruncated":{"nullable":true,"type":"boolean"},"amenities":{"type":"array","items":{"type":"string"}},"images":{"type":"array","items":{"type":"string"}},"phones":{"nullable":true,"type":"array","items":{"type":"object","properties":{"value":{"nullable":true,"type":"string"},"type":{"nullable":true,"type":"string"},"e164":{"nullable":true,"type":"string"}}}},"emails":{"nullable":true,"type":"array","items":{"type":"object","properties":{"value":{"nullable":true,"type":"string"},"type":{"nullable":true,"type":"string"}}}},"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":{"nullable":true,"type":"string"}}},"web":{"nullable":true,"type":"object","properties":{"website":{"nullable":true,"type":"string"},"socials":{"nullable":true,"type":"array","items":{"nullable":true,"type":"string"}}}},"leadSource":{"nullable":true,"type":"string"},"leadReveal":{"nullable":true,"type":"string"},"leadAbsences":{"nullable":true,"type":"object"}},"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: listingId; rowType=listing: listingId, name, listingUrl, sourceLayer; rowType=sold: listingId, name, listingUrl, soldPrice|listPrice, soldDate; rowType=project: listingId, name, listingUrl, phase|objectType; rowType=agent: listingId, name, listingUrl|profileUrl; rowType=agency: listingId, name, listingUrl|profileUrl; rowType=housing_coop: listingId, name, listingUrl."},"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"}}}}}}