{"openapi":"3.0.0","info":{"title":"Realtor.com US Homes Sale and Rent","version":"1.0.0","description":"US Realtor.com homes for sale, rent and recently sold properties by city, ZIP or listing URLs, one row per entity."},"servers":[{"url":"https://ah-realtor-com.opendata.best/s/realtor-com"}],"paths":{"/v1/search":{"post":{"operationId":"search","summary":"Search US Realtor.com property listings","description":"Retrieve US homes for sale, rent or sold listings filtered by location, property type and price range.","tags":["search"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"location":{"type":"string","description":"Location. US city and state or ZIP, e.g. 'Austin, TX' or '78701'. Leave empty when you fill in Detail URLs.","example":"Austin, TX"},"detailUrls":{"type":"array","items":{"type":"string"},"description":"Detail URLs (optional). Realtor.com listing URLs ending with a property identifier such as _M12345-67890; use real listing links, not search pages. Each URL is an input with its own maxResults allowance and takes precedence over location search."},"listingType":{"type":"string","enum":["sale","rent","both"],"description":"Listing type. Scrape for-sale listings, rentals, or both.","default":"sale","example":"sale"},"propertyTypes":{"type":"array","items":{"type":"string","enum":["house","condo","townhouse","multi_family","mobile","farm","land","apartment"]},"description":"Property types. Optional residential property-type filters (multi-select). Leave empty for all types. Full set: house, condo, townhouse, multi_family, mobile, farm, land, apartment.","default":[]},"propertyType":{"type":"string","enum":["","house","condo","townhouse","multi_family","mobile","farm","land","apartment"],"description":"Property type (legacy single). Legacy single property-type filter. Prefer propertyTypes. Merged with propertyTypes when both are set.","default":""},"minPrice":{"type":"integer","minimum":0,"description":"Min price ($). Optional minimum list price or rent in USD."},"maxPrice":{"type":"integer","minimum":0,"description":"Max price ($). Optional maximum list price or rent in USD."},"enrichDetails":{"type":"boolean","description":"Enrich details. Add available detail-page information, such as fees, history, photos, and contacts, to search results. Enabled by default; specific listing URLs always fetch details.","default":true},"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":"Austin, TX","listingType":"sale","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":{"nullable":true,"type":"string"},"propertyType":{"nullable":true,"type":"string"},"status":{"nullable":true,"type":"string"},"country":{"type":"string"},"authority":{"nullable":true,"type":"string"},"listingId":{"type":"string"},"propertyId":{"type":"string"},"listingType":{"nullable":true,"type":"string","enum":["sale","rent"]},"street":{"nullable":true,"type":"string","description":"Plain street line, for example \"123 Example St\", separate from the structured address object. Used as name when the community name is absent; name is null when both are absent."},"address":{"nullable":true,"type":"object","description":"Structured property address with street, unit, locality, region, postalCode, country, and full. The unit is an apartment or suite; the house number stays in street.","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"}},"additionalProperties":true},"city":{"type":"string"},"state":{"type":"string"},"zipCode":{"type":"string"},"listPrice":{"nullable":true,"type":"integer"},"listPriceMin":{"nullable":true,"type":"integer"},"listPriceMax":{"nullable":true,"type":"integer"},"beds":{"nullable":true,"type":"number"},"bedsMin":{"nullable":true,"type":"number"},"bedsMax":{"nullable":true,"type":"number"},"baths":{"nullable":true,"type":"number"},"bathsMin":{"nullable":true,"type":"number"},"bathsMax":{"nullable":true,"type":"number"},"sqft":{"nullable":true,"type":"integer"},"sqftMin":{"nullable":true,"type":"integer"},"sqftMax":{"nullable":true,"type":"integer"},"unitCount":{"nullable":true,"type":"integer"},"lotSqft":{"nullable":true,"type":"integer"},"yearBuilt":{"nullable":true,"type":"integer"},"latitude":{"nullable":true,"type":"number"},"longitude":{"nullable":true,"type":"number"},"listingUrl":{"type":"string"},"imageUrl":{"nullable":true,"type":"string"},"listDate":{"nullable":true,"type":"string"},"lastUpdateDate":{"nullable":true,"type":"string"},"daysOnMls":{"nullable":true,"type":"integer"},"pricePerSqft":{"nullable":true,"type":"number"},"photoCount":{"nullable":true,"type":"integer"},"photos":{"nullable":true,"type":"array","description":"Photo objects with href and optional title, capped at 50 per row. photosTruncated and photosTotal indicate when the list was shortened.","items":{"type":"object","additionalProperties":true}},"photosTruncated":{"nullable":true,"type":"boolean"},"photosTotal":{"nullable":true,"type":"integer"},"descriptionText":{"nullable":true,"type":"string"},"flags":{"nullable":true,"type":"object","additionalProperties":true},"sourceMeta":{"nullable":true,"type":"object","properties":{"id":{"nullable":true,"type":"string"},"name":{"nullable":true,"type":"string"},"type":{"nullable":true,"type":"string"},"listingId":{"nullable":true,"type":"string"},"communityId":{"nullable":true,"type":"string"}},"additionalProperties":true},"advertisers":{"nullable":true,"type":"array","items":{"type":"object","additionalProperties":true}},"hoa":{"nullable":true,"type":"object","additionalProperties":true},"openHouses":{"nullable":true,"type":"array","items":{"type":"object","additionalProperties":true}},"petPolicy":{"nullable":true,"type":"object","additionalProperties":true},"floorplans":{"nullable":true,"type":"array","items":{"type":"object","additionalProperties":true}},"units":{"nullable":true,"type":"array","items":{"type":"object","additionalProperties":true}},"details":{"nullable":true,"type":"object","description":"Not currently collected. Kept as null for compatibility; an empty value does not mean the property has no additional details."},"specials":{"nullable":true,"type":"object","description":"Not currently collected. Kept as null for compatibility; an empty value does not mean the property has no special offers."},"estimates":{"nullable":true,"type":"object","additionalProperties":true},"propertyHistory":{"nullable":true,"type":"array","items":{"type":"object","additionalProperties":true}},"taxHistory":{"nullable":true,"type":"array","items":{"type":"object","additionalProperties":true}},"monthlyFees":{"nullable":true,"type":"array","items":{"type":"object","additionalProperties":true}},"oneTimeFees":{"nullable":true,"type":"array","items":{"type":"object","additionalProperties":true}},"terms":{"nullable":true,"type":"array","items":{"type":"object","additionalProperties":true}},"tags":{"nullable":true,"type":"array","items":{"type":"string"}},"neighborhoods":{"nullable":true,"type":"array","items":{"type":"object","additionalProperties":true}},"county":{"nullable":true,"type":"object","additionalProperties":true},"phones":{"nullable":true,"type":"array","description":"Available advertiser or office contact numbers. Search-card tracking numbers are not included.","items":{"type":"object","properties":{"value":{"nullable":true,"type":"string"},"type":{"nullable":true,"type":"string"}},"additionalProperties":true}},"emails":{"nullable":true,"type":"array","items":{"type":"object","properties":{"value":{"nullable":true,"type":"string"},"type":{"nullable":true,"type":"string"}},"additionalProperties":true}},"geo":{"nullable":true,"type":"object","description":"Latitude and longitude. Null when either coordinate is missing, with an absence reason in leadAbsences.geo.","properties":{"lat":{"nullable":true,"type":"number"},"lng":{"nullable":true,"type":"number"}},"additionalProperties":true},"person":{"nullable":true,"type":"object","properties":{"name":{"nullable":true,"type":"string"},"role":{"nullable":true,"type":"string","enum":["listing_agent","advertiser","platform"]}},"additionalProperties":true},"org":{"nullable":true,"type":"object","properties":{"name":{"nullable":true,"type":"string"},"id":{"nullable":true,"type":"string","description":"Not currently collected; retained as null for compatibility. This does not mean the organization has no identifier."}},"additionalProperties":true},"web":{"nullable":true,"type":"object","properties":{"website":{"nullable":true,"type":"string","description":"Individual listing and agent websites are not currently collected. Kept as null; this does not mean no website exists."},"socials":{"nullable":true,"type":"array","items":{"type":"string"}}},"additionalProperties":true},"leadSource":{"nullable":true,"type":"string","description":"detail means the row includes a successful detail lookup. search means it uses search results only, either by choice or after detail collection failed.","enum":["detail","search"]},"leadReveal":{"nullable":true,"type":"string","enum":["visible","click","xhr","gated"]},"leadAbsences":{"nullable":true,"type":"object","description":"Per-subfield absence reason, indicating whether the site does not provide the field, access is gated behind a form or login, the field was not confirmed, or this request did not request the field.","additionalProperties":true},"detailAttempted":{"nullable":true,"type":"boolean","description":"Whether a detail lookup was attempted for this listing."},"detailSucceeded":{"nullable":true,"type":"boolean","description":"Whether the detail lookup returned usable listing information."},"detailErrorCode":{"nullable":true,"type":"string","description":"Reason for a failed detail lookup when detailAttempted is true and detailSucceeded is false. Empty after success or when no lookup was attempted."},"source":{"type":"string"},"scrapedAt":{"type":"string"},"raw":{"nullable":true,"type":"object","additionalProperties":true}},"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, listingUrl, name."},"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"}}}}}}