Redfin
Redfin Housing Market Data API
Housing-market statistics for one Redfin region: median list and sale price, price per sqft, sale-to-list ratio, average offers and days on market, year-over-year movement, Redfin's 0-100 compete score, live inventory by property type, median price and active listings per bedroom count, and Redfin agent presence with its aggregate rating, as JSON. Costs 1 credit per request.
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/jsonlocationstringA redfin.com region URL (/city/, /neighborhood/, /county/ or /zipcode/) or a bare 5-digit ZIP, 1-500 characters. CITY NAMES ARE NOT ACCEPTED - Redfin's own name lookup is the one path its edge blocks us from. Required unless region_id AND region_type are both given.
Example: https://www.redfin.com/city/30818/TX/Austin
region_idintegerRedfin's internal region id (>= 1), sent together with region_type. NOT a ZIP code: a ZIP passed here resolves to some other city rather than failing.
Example: 30818
region_typeenum<integer>What region_id refers to. Must be sent TOGETHER with region_id - with only one half present, both are ignored and the request falls back to location.
1— Neighborhood.2— ZIP code.5— County.6— City.
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
market = client.redfin.market(region_id=30818, region_type=6)
print(market["data"]["trends"])Response