Python SDK
The official RED Atlas Python SDK provides a simple way to work with the API from Python applications, notebooks, and backend services.
Install
The package is published on PyPI and can be installed from https://pypi.org/project/redatlas/.
pip install redatlasWhat It Includes
- A Python-friendly interface for authenticating and calling RED Atlas endpoints.
- A cleaner developer experience for scripts, notebooks, and data workflows.
- A single package to standardize how your team integrates with the RED Atlas API.
Quickstart
from redatlas import RedAtlasClient
client = RedAtlasClient(api_key="ra_live_YOUR_KEY_HERE")
market = client.data.data_market(market="col")
print(market.data.available_entities)
listings = client.data.data_list(
market="col",
entity_type="listings",
limit=3,
)
print(f"Found {listings.meta.total} listings")
listing = client.data.data_get(
market="col",
entity_type="listings",
id="0ee4e9a9-09b2-48a0-82d7-b63059a36fca",
)
print(listing.data)Creating Reports
from redatlas import RedAtlasClient
from redatlas.models import AvmReportRequest, ReportLocation
client = RedAtlasClient(api_key="ra_live_YOUR_KEY_HERE")
report = client.reports.reports_create_avm(
avm_report_request=AvmReportRequest(
market="col",
location=ReportLocation(lat=4.641, lon=-74.065),
property_type="apartment",
listing_type="for_sale",
built_area=98,
rooms=3,
),
)
print("Estimated value:", report.data.result.prediction)