Realtor.com
Realtor.com Locations API
Location suggestions for a partial name: cities, counties, ZIP codes, neighborhoods, schools and street addresses. Each suggestion carries its slug_id for Market Stats and its coordinates; an address also carries the property_id for Property. Costs 1 credit per request.
POST/api/v1/realtor/locations
Authorizations
AuthorizationstringheaderrequiredBearer authentication header of the form Bearer <token>, where <token> is your Scavio API key (e.g. Bearer sk_live_your_key).
Body
application/jsonquerystringrequiredA partial city, county, ZIP, neighborhood, school or street address, 1-200 characters.
Example: Austin
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
res = client.realtor.locations("Austin")
for loc in res["data"]["locations"]:
print(loc["text"], loc["area_type"], loc["slug_id"], loc["property_id"])Response
"query": "Austin",
"count": 16,
},
"response_time": 1978
}