{"openapi":"3.0.0","info":{"title":"Realtor.com Real Estate Agents Directory","version":"1.0.0","description":"US real estate agent profiles, brokerages, ratings, specialties and contact details from Realtor.com, one row per entity."},"servers":[{"url":"https://ah-realtor-com-agents.opendata.best/s/realtor-com-agents"}],"paths":{"/v1/search":{"post":{"operationId":"search","summary":"Search US Realtor.com real estate agents","description":"Search real estate agent profiles by city, ZIP or agent name with optional profile enrichment.","tags":["search"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"location":{"type":"string","description":"Location. Enter one US city and two-letter state, such as Austin, TX, or a ZIP code such as 78701; state-only values are not supported. Leaving all target fields empty starts the Austin example with up to 3 rows, at normal run prices.","example":"Austin, TX"},"agentName":{"type":"string","description":"Agent name filter. Optional agent name or surname to narrow the location search, such as Jane Doe. Spaces in the name are treated as hyphens for the search.","default":""},"isRealtor":{"type":"boolean","description":"Realtor.com member only. When enabled, restricts results to agents Realtor.com marks as members (is_realtor).","default":false},"minPrice":{"type":"integer","minimum":0,"description":"Min price ($). Optional minimum listing price filter for agent search. If min is above max, the two are swapped."},"maxPrice":{"type":"integer","minimum":0,"description":"Max price ($). Optional maximum listing price filter for agent search. If min is above max, the two are swapped."},"enrichProfiles":{"type":"boolean","description":"Enrich profiles. Add available profile details, including phones, office information, MLS memberships, and specializations. Details stay in the same agent row without another row charge.","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","enrichProfiles":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":{"rowType":{"type":"string","title":"Row type","enum":["agent"]},"id":{"type":"string","title":"Stable row ID"},"agentId":{"type":"string","title":"Agent ID"},"fulfillmentId":{"nullable":true,"type":"string","title":"Fulfillment ID"},"name":{"type":"string","title":"Name"},"profileUrl":{"type":"string","title":"Profile URL"},"bio":{"nullable":true,"type":"string","title":"Bio"},"website":{"nullable":true,"type":"string","title":"Personal website"},"phone":{"nullable":true,"type":"string","title":"Primary phone"},"phones":{"nullable":true,"type":"array","title":"Phones","items":{}},"phonesCount":{"nullable":true,"type":"integer","title":"Phones count"},"avatarUrl":{"nullable":true,"type":"string","title":"Avatar"},"brokerName":{"nullable":true,"type":"string","title":"Broker"},"brokerFulfillmentId":{"nullable":true,"type":"string","title":"Broker fulfillment ID"},"officeName":{"nullable":true,"type":"string","title":"Office"},"officeWebsite":{"nullable":true,"type":"string","title":"Office website"},"officePhones":{"nullable":true,"type":"array","title":"Office phones","items":{}},"officePhonesCount":{"nullable":true,"type":"integer","title":"Office phones count"},"officeCity":{"nullable":true,"type":"string","title":"Office city"},"officeState":{"nullable":true,"type":"string","title":"Office state"},"officeZip":{"nullable":true,"type":"string","title":"Office ZIP"},"servedAreas":{"nullable":true,"type":"array","title":"Served areas","items":{}},"servedAreasCount":{"nullable":true,"type":"integer","title":"Served areas count"},"languages":{"nullable":true,"type":"array","title":"Languages","items":{}},"languagesCount":{"nullable":true,"type":"integer","title":"Languages count"},"designations":{"nullable":true,"type":"array","title":"Designations","items":{}},"designationsCount":{"nullable":true,"type":"integer","title":"Designations count"},"specializations":{"nullable":true,"type":"array","title":"Specializations","items":{}},"specializationsCount":{"nullable":true,"type":"integer","title":"Specializations count"},"socialMedia":{"nullable":true,"type":"object","title":"Social media links"},"averageRating":{"nullable":true,"type":"number","title":"Average rating"},"recommendationsCount":{"nullable":true,"type":"integer","title":"Recommendations"},"reviewsCount":{"nullable":true,"type":"integer","title":"Reviews"},"forSaleCount":{"nullable":true,"type":"integer","title":"For-sale count"},"forSaleMin":{"nullable":true,"type":"integer","title":"For-sale min"},"forSaleMax":{"nullable":true,"type":"integer","title":"For-sale max"},"forSaleLastListingDate":{"nullable":true,"type":"string","title":"For-sale last listing"},"recentlySoldCount":{"nullable":true,"type":"integer","title":"Recently sold count"},"recentlySoldMin":{"nullable":true,"type":"integer","title":"Recently sold min"},"recentlySoldMax":{"nullable":true,"type":"integer","title":"Recently sold max"},"recentlySoldLastSoldDate":{"nullable":true,"type":"string","title":"Recently sold last date"},"recentlySoldListings":{"nullable":true,"type":"array","title":"Recently sold listings","items":{}},"recentlySoldListingsCount":{"nullable":true,"type":"integer","title":"Recently sold listings count"},"combinedAnnualMin":{"nullable":true,"type":"integer","title":"Combined annual min"},"combinedAnnualMax":{"nullable":true,"type":"integer","title":"Combined annual max"},"experienceYearsLabel":{"nullable":true,"type":"string","title":"Experience label"},"firstYear":{"nullable":true,"type":"string","title":"First licensed year"},"isRealtor":{"nullable":true,"type":"boolean","title":"Realtor member"},"isPaid":{"nullable":true,"type":"boolean","title":"Paid placement"},"displayRatings":{"nullable":true,"type":"boolean","title":"Display ratings"},"hasRps":{"nullable":true,"type":"boolean","title":"Has RPS"},"sortingWeight":{"nullable":true,"type":"number","title":"Sorting weight"},"licenseNumber":{"nullable":true,"type":"string","title":"License number"},"licenseState":{"nullable":true,"type":"string","title":"License state"},"intentType":{"nullable":true,"type":"array","title":"Intent type","items":{}},"mls":{"nullable":true,"type":"array","title":"MLS memberships","items":{}},"mlsCount":{"nullable":true,"type":"integer","title":"MLS count"},"questionsAndAnswers":{"nullable":true,"type":"array","title":"Q&A","items":{}},"services":{"nullable":true,"type":"object","title":"Services"},"aboutVideo":{"nullable":true,"type":"object","title":"About video","description":"Profile video as {id, url, source}"},"searchLocation":{"type":"string","title":"Search location"},"resolvedLocation":{"nullable":true,"type":"object","title":"Resolved location"},"enriched":{"type":"boolean","title":"Enriched"},"source":{"type":"string","title":"Source"},"scrapedAt":{"type":"string","title":"Scraped at"},"address":{"nullable":true,"type":"object","title":"Office address (lead)"},"emails":{"nullable":true,"type":"array","title":"Email addresses (not provided)","items":{}},"geo":{"nullable":true,"type":"object","title":"Coordinates (not provided)"},"person":{"nullable":true,"type":"object","title":"Agent contact person"},"org":{"nullable":true,"type":"object","title":"Office / brokerage (lead)"},"web":{"nullable":true,"type":"object","title":"Website & socials (lead)"},"leadSource":{"nullable":true,"type":"string","title":"Lead source (detail/search)","enum":["detail","search"]},"leadReveal":{"nullable":true,"type":"string","title":"Contact visibility","enum":["visible","click","xhr","gated"]},"leadAbsences":{"nullable":true,"type":"object","title":"Reasons contact fields are unavailable"}},"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; rowType=agent: id|agentId, name, profileUrl."},"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"}}}}}}