{"openapi":"3.1.0","info":{"title":"Home Market View public aggregate data API","version":"1.0.0","description":"Anonymous read-only U.S. city/place and ZIP housing statistics. One market per call, max 120 months/metric, 20 search results, and 256 KiB/response. Combined API and negotiated Markdown allowance: 60/minute/IP and 600/minute/Cloudflare location. Counters are approximate regional abuse guards, not global billing quotas. Honor Retry-After; reuse data locally for five minutes. Source-provider terms apply. See /data for methodology, attribution, and field semantics."},"servers":[{"url":"https://homemarketview.com"}],"security":[],"externalDocs":{"url":"https://homemarketview.com/data"},"paths":{"/api/data/manifest":{"get":{"operationId":"getCurrentRelease","summary":"Current release metadata, coverage counts, and request limits","responses":{"200":{"description":"Release dates are not observation dates","content":{"application/json":{"schema":{"type":"object","required":["schemaVersion","release","counts","limits"],"properties":{"schemaVersion":{"const":"1.0"},"release":{"type":"object","required":["id","generatedAt","checkedAt"],"properties":{"id":{"type":"string"},"generatedAt":{"type":["string","null"]},"checkedAt":{"type":"string","format":"date-time"}}},"counts":{"type":"object","properties":{"city":{"type":"integer"},"zip":{"type":"integer"}}},"limits":{"type":"object","additionalProperties":{"type":"integer"}},"documentation":{"type":"string"}}}}}},"400":{"description":"Invalid, unknown, duplicate, or oversized parameters","headers":{},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"documentation":{"type":"string","format":"uri"},"candidates":{"type":"array","maxItems":20,"items":{"type":"object","properties":{"county":{"type":"string"},"path":{"type":"string"}}}}}}}}},"404":{"description":"Market or route not found","headers":{},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"documentation":{"type":"string","format":"uri"},"candidates":{"type":"array","maxItems":20,"items":{"type":"object","properties":{"county":{"type":"string"},"path":{"type":"string"}}}}}}}}},"409":{"description":"Ambiguous city; choose a returned candidate path","headers":{},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"documentation":{"type":"string","format":"uri"},"candidates":{"type":"array","maxItems":20,"items":{"type":"object","properties":{"county":{"type":"string"},"path":{"type":"string"}}}}}}}}},"413":{"description":"Response exceeds 256 KiB; reduce months","headers":{},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"documentation":{"type":"string","format":"uri"},"candidates":{"type":"array","maxItems":20,"items":{"type":"object","properties":{"county":{"type":"string"},"path":{"type":"string"}}}}}}}}},"414":{"description":"URL exceeds 2,048 characters","headers":{},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"documentation":{"type":"string","format":"uri"},"candidates":{"type":"array","maxItems":20,"items":{"type":"object","properties":{"county":{"type":"string"},"path":{"type":"string"}}}}}}}}},"429":{"description":"Regional request allowance exceeded; retry after 60 seconds","headers":{"Retry-After":{"schema":{"type":"integer","example":60}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"documentation":{"type":"string","format":"uri"},"candidates":{"type":"array","maxItems":20,"items":{"type":"object","properties":{"county":{"type":"string"},"path":{"type":"string"}}}}}}}}},"503":{"description":"Data or limiter unavailable; retry after 60 seconds","headers":{"Retry-After":{"schema":{"type":"integer","example":60}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"documentation":{"type":"string","format":"uri"},"candidates":{"type":"array","maxItems":20,"items":{"type":"object","properties":{"county":{"type":"string"},"path":{"type":"string"}}}}}}}}}}}},"/api/data/search":{"get":{"operationId":"searchMarkets","summary":"Find canonical market paths; refine search rather than paginate","parameters":[{"name":"q","in":"query","required":true,"description":"Case-insensitive substring of name, city, county, ID, or state. Coverage varies by metric.","schema":{"type":"string","minLength":2,"maxLength":80,"example":"Charlotte"}},{"name":"state","in":"query","required":false,"description":"State/DC code","schema":{"type":"string","pattern":"^[A-Za-z]{2}$","example":"NC"}},{"name":"geography","in":"query","required":false,"description":"Optional geography filter","schema":{"enum":["city","zip"]}},{"name":"limit","in":"query","required":false,"description":"Maximum results","schema":{"type":"integer","minimum":1,"maximum":20,"default":10}}],"responses":{"200":{"description":"Bounded catalog matches; does not guarantee every metric is available","content":{"application/json":{"schema":{"type":"object","required":["results","moreMatches","releaseId"],"properties":{"schemaVersion":{"const":"1.0"},"releaseId":{"type":"string"},"moreMatches":{"type":"boolean"},"note":{"type":"string"},"results":{"type":"array","maxItems":20,"items":{"type":"object","required":["id","geography","state","path","canonicalUrl"],"properties":{"id":{"type":"string"},"geography":{"enum":["city","zip"]},"state":{"type":"string"},"name":{"type":"string"},"city":{"type":"string"},"county":{"type":"string"},"path":{"type":"string","example":"/zip/02108"},"canonicalUrl":{"type":"string","format":"uri"}}}}}}}}},"400":{"description":"Invalid, unknown, duplicate, or oversized parameters","headers":{},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"documentation":{"type":"string","format":"uri"},"candidates":{"type":"array","maxItems":20,"items":{"type":"object","properties":{"county":{"type":"string"},"path":{"type":"string"}}}}}}}}},"404":{"description":"Market or route not found","headers":{},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"documentation":{"type":"string","format":"uri"},"candidates":{"type":"array","maxItems":20,"items":{"type":"object","properties":{"county":{"type":"string"},"path":{"type":"string"}}}}}}}}},"409":{"description":"Ambiguous city; choose a returned candidate path","headers":{},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"documentation":{"type":"string","format":"uri"},"candidates":{"type":"array","maxItems":20,"items":{"type":"object","properties":{"county":{"type":"string"},"path":{"type":"string"}}}}}}}}},"413":{"description":"Response exceeds 256 KiB; reduce months","headers":{},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"documentation":{"type":"string","format":"uri"},"candidates":{"type":"array","maxItems":20,"items":{"type":"object","properties":{"county":{"type":"string"},"path":{"type":"string"}}}}}}}}},"414":{"description":"URL exceeds 2,048 characters","headers":{},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"documentation":{"type":"string","format":"uri"},"candidates":{"type":"array","maxItems":20,"items":{"type":"object","properties":{"county":{"type":"string"},"path":{"type":"string"}}}}}}}}},"429":{"description":"Regional request allowance exceeded; retry after 60 seconds","headers":{"Retry-After":{"schema":{"type":"integer","example":60}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"documentation":{"type":"string","format":"uri"},"candidates":{"type":"array","maxItems":20,"items":{"type":"object","properties":{"county":{"type":"string"},"path":{"type":"string"}}}}}}}}},"503":{"description":"Data or limiter unavailable; retry after 60 seconds","headers":{"Retry-After":{"schema":{"type":"integer","example":60}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"documentation":{"type":"string","format":"uri"},"candidates":{"type":"array","maxItems":20,"items":{"type":"object","properties":{"county":{"type":"string"},"path":{"type":"string"}}}}}}}}}}}},"/api/data/market":{"get":{"operationId":"getMarketReport","summary":"Retrieve one market with per-metric provenance, dates, and bounded history","parameters":[{"name":"path","in":"query","required":true,"description":"Canonical market path from search. ZIPs retain leading zeros. Ambiguous city names require appended provider ID.","schema":{"type":"string","maxLength":180,"example":"/zip/02108"}},{"name":"propertyType","in":"query","required":false,"description":"Filters Redfin measures only; Zillow indices remain unfiltered. Missing selected types never fall back.","schema":{"enum":["all","singleFamily","townhouse","condo","multiFamily"],"default":"all"}},{"name":"months","in":"query","required":false,"description":"Maximum calendar span per metric ending at its latest reporting month; actual history may be shorter","schema":{"type":"integer","minimum":1,"maximum":120,"default":12}},{"name":"format","in":"query","required":false,"description":"Response representation","schema":{"enum":["json","csv","markdown"],"default":"json"}}],"responses":{"200":{"description":"Current values retain missing latest observations; null means unavailable. CSV has one row per metric/observation, blank numeric cells for unavailable values, and an explicit status column.","content":{"application/json":{"schema":{"type":"object","required":["schemaVersion","canonicalUrl","market","release","selection","metrics","notes","attribution"],"properties":{"schemaVersion":{"const":"1.0"},"canonicalUrl":{"type":"string","format":"uri"},"market":{"type":"object","properties":{"id":{"type":"string"},"geography":{"enum":["city","zip"]},"name":{"type":"string"},"city":{"type":"string"},"state":{"type":"string"},"county":{"type":"string"}}},"release":{"type":"object","required":["id","generatedAt","checkedAt"],"properties":{"id":{"type":"string"},"generatedAt":{"type":["string","null"]},"checkedAt":{"type":"string","format":"date-time"}}},"selection":{"type":"object","properties":{"propertyType":{"type":"string"},"months":{"type":"integer"}}},"metrics":{"type":"array","maxItems":7,"items":{"type":"object","required":["id","name","unit","provider","sourceUrl","periodMonths","propertyType","current","history"],"properties":{"id":{"enum":["salePrice","pricePerSqFt","activeListings","daysOnMarket","homesSold","homeValue","rent"]},"name":{"type":"string"},"unit":{"type":"string"},"provider":{"enum":["Redfin","Zillow"]},"sourceUrl":{"type":"string","format":"uri"},"periodMonths":{"enum":[1,3]},"propertyType":{"type":["string","null"]},"propertyTypeScope":{"type":"string"},"sourceUpdatedAt":{"type":["string","null"]},"current":{"type":["object","null"],"required":["periodEnd","periodStart","value","status"],"properties":{"periodEnd":{"type":"string","format":"date"},"periodStart":{"type":"string","format":"date"},"value":{"type":["number","null"]},"status":{"enum":["available","unavailable"]},"homesSold":{"type":["number","null"]}}},"history":{"type":"array","maxItems":120,"items":{"type":["object","null"],"required":["periodEnd","periodStart","value","status"],"properties":{"periodEnd":{"type":"string","format":"date"},"periodStart":{"type":"string","format":"date"},"value":{"type":["number","null"]},"status":{"enum":["available","unavailable"]},"homesSold":{"type":["number","null"]}}}}}}},"notes":{"type":"array","items":{"type":"string"}},"attribution":{"type":"string"}}}},"text/csv":{"schema":{"type":"string"}},"text/markdown":{"schema":{"type":"string"}}}},"400":{"description":"Invalid, unknown, duplicate, or oversized parameters","headers":{},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"documentation":{"type":"string","format":"uri"},"candidates":{"type":"array","maxItems":20,"items":{"type":"object","properties":{"county":{"type":"string"},"path":{"type":"string"}}}}}}}}},"404":{"description":"Market or route not found","headers":{},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"documentation":{"type":"string","format":"uri"},"candidates":{"type":"array","maxItems":20,"items":{"type":"object","properties":{"county":{"type":"string"},"path":{"type":"string"}}}}}}}}},"409":{"description":"Ambiguous city; choose a returned candidate path","headers":{},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"documentation":{"type":"string","format":"uri"},"candidates":{"type":"array","maxItems":20,"items":{"type":"object","properties":{"county":{"type":"string"},"path":{"type":"string"}}}}}}}}},"413":{"description":"Response exceeds 256 KiB; reduce months","headers":{},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"documentation":{"type":"string","format":"uri"},"candidates":{"type":"array","maxItems":20,"items":{"type":"object","properties":{"county":{"type":"string"},"path":{"type":"string"}}}}}}}}},"414":{"description":"URL exceeds 2,048 characters","headers":{},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"documentation":{"type":"string","format":"uri"},"candidates":{"type":"array","maxItems":20,"items":{"type":"object","properties":{"county":{"type":"string"},"path":{"type":"string"}}}}}}}}},"429":{"description":"Regional request allowance exceeded; retry after 60 seconds","headers":{"Retry-After":{"schema":{"type":"integer","example":60}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"documentation":{"type":"string","format":"uri"},"candidates":{"type":"array","maxItems":20,"items":{"type":"object","properties":{"county":{"type":"string"},"path":{"type":"string"}}}}}}}}},"503":{"description":"Data or limiter unavailable; retry after 60 seconds","headers":{"Retry-After":{"schema":{"type":"integer","example":60}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"documentation":{"type":"string","format":"uri"},"candidates":{"type":"array","maxItems":20,"items":{"type":"object","properties":{"county":{"type":"string"},"path":{"type":"string"}}}}}}}}}}}}}}