{"openapi":"3.0.0","info":{"title":"SUUMO Japan Property Listings Data","version":"1.0.0","description":"Japanese apartments, new builds, detached houses and rentals across Japan from SUUMO.jp, one row per entity."},"servers":[{"url":"https://ah-suumo-com.opendata.best/s/suumo-com"}],"paths":{"/v1/search":{"post":{"operationId":"search","summary":"Search SUUMO Japan property listings","description":"Query Japanese residential listings by location path, prefecture/city code, channel and building type.","tags":["search"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"startUrls":{"type":"array","items":{"type":"string"},"description":"Start URLs. SUUMO search or property detail URLs, each with its own maxResults allowance. Use full HTTPS links on suumo.jp or www.suumo.jp; search URLs select the area and property category."},"location":{"type":"string","description":"Location path. Use a SUUMO city or ward path, such as tokyo/sc_shinjuku or osaka/sc_osakashikita, rather than a bare prefecture. This selects one area when startUrls is empty; some familiar place names are also accepted.","example":"tokyo/sc_shinjuku"},"propertyType":{"type":"string","enum":["chuko_mansion","shinchiku_mansion","ikkodate","chukoikkodate","tochi","chintai"],"description":"Property type. Property category for an area or code-based search. A web search URL selects its own category.","default":"chuko_mansion"},"channel":{"type":"string","enum":["BUY","RENT"],"description":"Sale or rent (compatibility setting). Prefer propertyType for category selection. RENT selects rentals when propertyType is omitted or left at chuko_mansion; an explicit non-default category wins.","default":"BUY"},"maxPages":{"type":"integer","minimum":1,"maximum":100,"description":"Search page setting. Page setting from 1 to 100. Collection may continue beyond this value to reach maxResults, so use maxResults and the request spending cap to limit collection.","default":1},"scrapeDetails":{"type":"boolean","description":"Scrape detail pages. Include available detail-page fields in each row. App rental detail pages are skipped; existing App listing and contact fields remain included.","default":true},"prefectureCode":{"type":"string","description":"Prefecture code. Two-digit code from 01 to 47, required for App and map searches; use 13 for Tokyo or 27 for Osaka. Leave empty for web searches."},"cityCode":{"type":"string","description":"City or ward code. Five-digit city or ward code, such as 13104 for Shinjuku, starting with prefectureCode. Optional for App and sale map searches; required for map rentals."},"bbox":{"type":"object","description":"Map area. Required for map searches: enter corners {lat1,lng1,lat2,lng2} or a centre and radius {lat,lng,radiusKm}. Coordinates are degrees and the radius is kilometres."},"pageSize":{"type":"integer","minimum":1,"maximum":50,"description":"App listings per page. Requested App listings per page, from 1 to 50. maxResults limits the delivered rows for the selected area.","default":50},"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":"tokyo/sc_shinjuku","propertyType":"chuko_mansion","channel":"BUY","scrapeDetails":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":{"description":"Listing identifier. Some floor-plan rows use a building identifier plus plan index; listingCode preserves the detail-page identifier when it differs."},"url":{"type":"string"},"source":{"type":"string"},"sourceLayer":{"type":"string"},"sourceEndpoint":{"type":"string","description":"Source link used for the row. Its format depends on the selected listing source."},"listingCode":{"nullable":true,"type":"string","description":"Detail-page listing identifier when it differs from a composite floor-plan identifier; otherwise absent."},"projectCode":{"nullable":true,"type":"string"},"officeAddress":{"nullable":true,"type":"object"},"totalUnits":{"nullable":true,"type":"string"},"moveIn":{"nullable":true,"type":"string"},"updatedAtSource":{"nullable":true,"type":"string"},"businessHours":{"nullable":true,"type":"string"},"regularHoliday":{"nullable":true,"type":"string"},"propertyType":{"type":"string"},"channel":{"type":"string"},"title":{"type":"string"},"buildingName":{"nullable":true,"type":"string"},"price":{"type":"string"},"priceAmount":{"nullable":true,"type":"number"},"floorPlan":{"nullable":true,"type":"string"},"exclusiveAreaSqm":{"nullable":true,"type":"number"},"landAreaSqm":{"nullable":true,"type":"number"},"buildingAreaSqm":{"nullable":true,"type":"number"},"address":{"nullable":true},"access":{"nullable":true,"type":"string"},"scrapedAt":{"type":"string"},"listingAddress":{"nullable":true,"type":"string"},"phones":{"nullable":true,"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"type":{"type":"string"}}}},"emails":{"nullable":true,"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"type":{"type":"string"}}}},"geo":{"nullable":true,"type":"object","properties":{"lat":{"type":"number"},"lng":{"type":"number"}}},"person":{"nullable":true,"type":"object","properties":{"name":{"type":"string"},"role":{"type":"string"}}},"org":{"nullable":true,"type":"object","properties":{"name":{"type":"string"},"id":{"nullable":true,"type":"string"},"license":{"nullable":true,"type":"string"}}},"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"}},"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, title, url, price."},"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"}}}}}}