Zillow API for investors illustration showing how one property call returns the Zestimate and rent estimate to calculate cap rate and cash flow
Screen rental deals and calculate returns with the ZillAPI Zillow data API.

Real estate investors don’t browse Zillow one property at a time. They screen dozens, hundreds, sometimes thousands of properties looking for the ones where the numbers work. You can’t do that manually. You need an API.

The problem is Zillow killed their public API in 2021. And the investor-specific tools that exist (Mashvisor, DealCheck, Rentastic) either charge $35+ per month or don’t have APIs at all.

Here’s how to use a Zillow data API to screen investment properties, calculate every metric that matters, and find deals programmatically.

What investment metrics can I calculate from the API?

A ZillAPI property response can carry three numbers that drive investment analysis: the zestimate (home value), rentZestimate (monthly rent), and taxAnnualAmount (yearly property tax). Any of them can be absent, most often taxAnnualAmount. From those three inputs, you can calculate five metrics that matter to rental investors.

Diagram mapping three Zillow API fields, zestimate, rentZestimate, and taxAnnualAmount, to five investment metrics: gross yield, the 1 percent rule, cap rate, monthly cash flow, and cash-on-cash return
Three fields from one property call feed every investment metric.
import requests, os
r = requests.get(
"https://api.zillapi.com/v1/properties/by-address",
params={"address": "1600 Pennsylvania Ave NW, Washington DC 20500"},
headers={"Authorization": f"Bearer {os.environ['ZILLAPI_KEY']}"},
)
d = r.json()["data"]
rent = d.get("rentZestimate") # $1,850/mo
value = d.get("zestimate") # $305,100
price = d.get("price") or value # listing price or Zestimate
# The summary tax fields are often empty: fall back to the latest paid tax year
paid = [h for h in d.get("taxHistory") or [] if h.get("taxPaid")]
tax = d.get("taxAnnualAmount") or (max(paid, key=lambda h: h.get("year") or 0)["taxPaid"] if paid else None) # $2,340/yr

Gross rent yield

The simplest screening metric. Annual rent divided by property value.

if rent and value:
gross_yield = (rent * 12 / value) * 100
print(f"Gross yield: {gross_yield:.1f}%")
else:
print("Gross yield: n/a, rent or value is unknown")
# 7.3%

Anything above 6% is worth a closer look in most markets. Above 8% and you’re in strong cash flow territory.

The 1% rule

Monthly rent as a percentage of the purchase price. A quick filter that’s been around for decades.

if rent and price:
one_pct = (rent / price) * 100
print(f"1% rule: {one_pct:.2f}%")
else:
print("1% rule: n/a, rent or price is unknown")
# 0.61%

If this number hits 1.0% or higher, the property likely cash flows. Below 0.7% and it’s probably a cash flow negative investment in most scenarios. This property sits at 0.61%, which means it’s below the threshold.

Estimated cap rate

Net operating income divided by property value. This requires estimating expenses.

insurance = 1200 # estimated annual
can_calculate = bool(rent and value and tax)
if can_calculate:
gross_annual = rent * 12 # $22,200
vacancy = gross_annual * 0.08 # 8% vacancy
maintenance = value * 0.01 # 1% of value
total_expenses = tax + vacancy + insurance + maintenance
noi = gross_annual - total_expenses
cap_rate = (noi / value) * 100
print(f"NOI: ${noi:,.0f}")
print(f"Cap rate: {cap_rate:.1f}%")
else:
print("NOI and cap rate: n/a, rent, value or tax is unknown")
# NOI: $13,533
# Cap rate: 4.4%

The expense estimates are rough. Actual insurance, maintenance, and vacancy rates vary by market. But this gives you a screening-quality cap rate from a single API call.

Monthly cash flow (with financing)

Most investors use leverage. Here’s cash flow with a 25% down, 7% interest, 30-year mortgage.

# Mortgage calculation
down_payment_pct = 0.25
rate_annual = 0.07
term_years = 30
cash_flow = None
if can_calculate:
loan = price * (1 - down_payment_pct)
rate_monthly = rate_annual / 12
n_payments = term_years * 12
mortgage_payment = loan * (rate_monthly * (1 + rate_monthly)**n_payments) / ((1 + rate_monthly)**n_payments - 1)
# Monthly cash flow
monthly_income = rent * (1 - 0.08) # after vacancy
monthly_expenses = (tax / 12) + (insurance / 12) + (maintenance / 12) + mortgage_payment
cash_flow = monthly_income - monthly_expenses
print(f"Mortgage: ${mortgage_payment:,.0f}/mo")
print(f"Cash flow: ${cash_flow:,.0f}/mo")
else:
print("Cash flow: n/a, rent, value or tax is unknown")
# Mortgage: $1,473/mo
# Cash flow: -$49/mo

Negative cash flow on this property with 25% down at 7%. That confirms what the 1% rule flagged. The numbers don’t work at this price point with current rates.

Cash-on-cash return

Annual cash flow divided by total cash invested. The return on your actual out-of-pocket dollars.

if cash_flow is not None:
annual_cash_flow = cash_flow * 12
cash_invested = price * down_payment_pct + 5000 # down payment + closing costs
coc_return = (annual_cash_flow / cash_invested) * 100
print(f"Cash invested: ${cash_invested:,.0f}")
print(f"Cash-on-cash return: {coc_return:.1f}%")
else:
print("Cash-on-cash return: n/a, cash flow is unknown")
# Cash invested: $81,275
# Cash-on-cash return: -0.7%

All five metrics from one API call. Up to three credits. You now know whether this property is worth pursuing before you’ve spent a minute on manual research.

How do I screen a single property?

Here’s a complete single-property analysis function that calculates everything at once:

import requests, os
HEADERS = {"Authorization": f"Bearer {os.environ['ZILLAPI_KEY']}"}
def analyze_investment(address, down_pct=0.25, rate=0.07, term=30):
"""Full investment analysis from a single API call."""
r = requests.get(
"https://api.zillapi.com/v1/properties/by-address",
params={
"address": address,
"fields": "zestimate,rentZestimate,price,taxAnnualAmount,taxHistory,bedrooms,bathrooms,livingArea,address,homeType",
},
headers=HEADERS,
)
d = r.json()["data"]
rent = d.get("rentZestimate")
value = d.get("zestimate")
price = d.get("price") or value
# The summary tax fields are often empty: fall back to the latest paid tax year
paid = [h for h in d.get("taxHistory") or [] if h.get("taxPaid")]
tax = d.get("taxAnnualAmount") or (max(paid, key=lambda h: h.get("year") or 0)["taxPaid"] if paid else None)
if not rent or not value or not tax:
print(f"Skipped {address}: rent, value or tax is unknown")
return {"address": address, "error": "Missing rent, value or tax data"}
# Metrics
gross_yield = (rent * 12 / value) * 100
one_pct_rule = (rent / price) * 100
# Expenses
gross_annual = rent * 12
vacancy = gross_annual * 0.08
insurance = 1200
maintenance = value * 0.01
noi = gross_annual - tax - vacancy - insurance - maintenance
cap_rate = (noi / value) * 100
# Mortgage
loan = price * (1 - down_pct)
mr = rate / 12
n = term * 12
pmt = loan * (mr * (1 + mr)**n) / ((1 + mr)**n - 1) if loan > 0 else 0
monthly_cf = (rent * 0.92) - (tax/12) - (insurance/12) - (maintenance/12) - pmt
annual_cf = monthly_cf * 12
cash_in = price * down_pct + 5000
coc = (annual_cf / cash_in) * 100 if cash_in > 0 else 0
return {
"address": d["address"]["streetAddress"],
"price": price,
"zestimate": value,
"rent": rent,
"beds": d.get("bedrooms"),
"baths": d.get("bathrooms"),
"sqft": d.get("livingArea"),
"gross_yield": round(gross_yield, 1),
"one_pct_rule": round(one_pct_rule, 2),
"cap_rate": round(cap_rate, 1),
"noi": round(noi),
"monthly_cf": round(monthly_cf),
"coc_return": round(coc, 1),
"mortgage": round(pmt),
}
# Run it
result = analyze_investment("1600 Pennsylvania Ave NW, Washington DC 20500")
for k, v in result.items():
print(f" {k}: {'n/a' if v is None else v}")

That function is the core of every investment screening tool. Pass any address, get back every metric. Up to three credits.

How do I batch screen hundreds of properties?

The real power is screening at scale. Loop through addresses, analyze each one, and rank by the metric that matters to you.

Decision tree that routes each property by gross yield above 6 percent and the 1 percent rule above 0.7 percent toward pursue, watch, or pass
Two cheap ratios decide which properties earn a deeper look.
import time
addresses = [
"1600 Pennsylvania Ave NW, Washington DC 20500",
"100 Main St, Washington DC 20001",
"45 Augusta St, Washington DC 20001",
"220 N Pleasantburg Dr, Washington DC 20007",
"15 Overbrook Cir, Washington DC 20007",
# ... add more addresses
]
results = []
for i, addr in enumerate(addresses):
result = analyze_investment(addr)
if "error" not in result:
results.append(result)
print(f"[{i+1}/{len(addresses)}] {result['address']}: "
f"{result['gross_yield']}% yield, ${result['monthly_cf']}/mo CF")
# Rate limit on the monthly plan: stay under 200/min
time.sleep(0.35)
# Rank by gross yield
results.sort(key=lambda x: x['gross_yield'], reverse=True)
print("\n--- Top deals by gross yield ---")
for r in results[:10]:
print(f" {r['address']}: {r['gross_yield']}% yield, "
f"${r['rent']:,}/mo rent, ${r['monthly_cf']:,}/mo cash flow")

For 1,000 properties, two batch jobs of 500 addresses usually finish in about 5 to 10 minutes. An address lookup costs up to 3 credits ($0.015); batch jobs cost 1 credit per record returned. Screening 1,000 properties as batch jobs costs $5.

The fields parameter in the analyze_investment function trims each response to only the investment-relevant fields. That cuts the payload from ~3,000 tokens to under 200, which speeds up processing significantly.

How do I find deals with the search endpoint?

Instead of starting with a list of addresses, you can search an entire market for properties that match your criteria.

def find_deals(bbox, max_price=400000, min_beds=2, home_types=None, min_yield=6.0):
"""Search a market and return properties above a yield threshold."""
if home_types is None:
home_types = ["house", "townhouse"]
r = requests.post(
"https://api.zillapi.com/v1/search",
json={
"filters": {
"status": "for_sale",
"bbox": bbox,
"price": {"max": max_price},
"beds": {"min": min_beds},
"homeTypes": home_types,
},
"maxItems": 15,
},
headers=HEADERS,
)
listings = r.json()["data"]
print(f"Found {len(listings)} listings in area")
deals = []
for p in listings:
rent = p.get("rentZestimate") or 0
price = p.get("unformattedPrice") or 0
if not rent or not price:
continue
gross_yield = (rent * 12 / price) * 100
if gross_yield >= min_yield:
deals.append({
"address": p.get("addressStreet") or p.get("address"),
"price": price,
"rent": rent,
"gross_yield": round(gross_yield, 1),
"beds": p.get("bedrooms"),
"baths": p.get("bathrooms"),
"sqft": p.get("livingArea"),
})
deals.sort(key=lambda x: x["gross_yield"], reverse=True)
return deals
# Search Washington DC
washington_deals = find_deals(
bbox={"west": -77.12, "south": 38.81, "east": -76.94, "north": 38.99},
max_price=350000,
min_yield=7.0,
)
print(f"\n{len(washington_deals)} deals above 7% yield:")
for d in washington_deals[:10]:
print(f" {d['address']}: ${d['price']:,} | ${d['rent']:,}/mo | {d['gross_yield']}% yield")

One search call. One credit per listing returned. The example requests 15 for-sale properties, some with a rent Zestimate so you can calculate yield on the spot. You don’t need to look up each property individually because the search results include Zestimates.

How do I build a complete deal pipeline?

Serious investors combine search and analysis into a pipeline: search a market, filter by yield, then run full analysis on the top candidates.

Two-stage deal pipeline where a market search returns listings, a yield filter narrows them, deep analysis runs on the top candidates, and deals come back ranked by cash-on-cash return for 30 credits at 15 listings
One search plus 5 deep analyses scans a market for 30 credits at 15 listings.
def deal_pipeline(bbox, max_price=400000, min_yield=6.5, top_n=5):
"""
Stage 1: Search market (1 credit per listing returned)
Stage 2: Full analysis on top candidates (up to 3 credits each)
"""
# Stage 1: Broad search
r = requests.post(
"https://api.zillapi.com/v1/search",
json={
"filters": {
"status": "for_sale",
"bbox": bbox,
"price": {"max": max_price},
"homeTypes": ["house", "townhouse", "condo"],
},
"maxItems": 15,
},
headers=HEADERS,
)
listings = r.json()["data"]
print(f"Stage 1: {len(listings)} listings found")
# Quick yield filter
candidates = []
for p in listings:
rent = p.get("rentZestimate") or 0
price = p.get("unformattedPrice") or 0
if rent and price and (rent * 12 / price * 100) >= min_yield:
candidates.append(p)
candidates.sort(key=lambda p: p["rentZestimate"] * 12 / p["unformattedPrice"], reverse=True)
print(f"Stage 1 filter: {len(candidates)} above {min_yield}% yield")
# Stage 2: Deep analysis on top candidates
analyzed = []
for p in candidates[:top_n]:
addr = p["address"] # already the full one-line address
result = analyze_investment(addr)
if "error" not in result:
analyzed.append(result)
time.sleep(0.35)
analyzed.sort(key=lambda x: x["coc_return"], reverse=True)
print(f"Stage 2: Analyzed {len(analyzed)} properties\n")
return analyzed
# Run the pipeline
deals = deal_pipeline(
bbox={"west": -77.12, "south": 38.81, "east": -76.94, "north": 38.99},
max_price=350000,
min_yield=7.0,
top_n=5,
)
print("--- Best deals by cash-on-cash return ---")
for d in deals[:5]:
print(f" {d['address']}")
print(f" Price: ${d['price']:,} | Rent: ${d['rent']:,}/mo")
print(f" Yield: {d['gross_yield']}% | Cap: {d['cap_rate']}% | CoC: {d['coc_return']}%")
print(f" Cash flow: ${d['monthly_cf']:,}/mo")
print()

The pipeline costs 1 credit per listing returned (minimum 1) plus up to 3 credits per deep analysis. If you analyze the top 5 candidates, that’s 30 credits total ($0.15) at 15 listings to find the best deals in an entire market.

What about comparable sales for investment analysis?

Investors don’t just look at rent yield. They check whether the asking price is fair by comparing it to recent sales. The search endpoint with sold status gives you comps.

HOME_TYPES = {
"SINGLE_FAMILY": "house", "CONDO": "condo", "TOWNHOUSE": "townhouse",
"MULTI_FAMILY": "multi_family", "MANUFACTURED": "manufactured",
"LOT": "lot", "APARTMENT": "apartment",
}
def get_comp_value(subject, radius_miles=0.5):
"""Estimate property value from recent comparable sales."""
offset = radius_miles * 0.0145
lat, lng = subject.get("latitude"), subject.get("longitude")
beds, sqft = subject.get("bedrooms"), subject.get("livingArea")
if lat is None or lng is None or beds is None or not sqft:
print("Skipped comps: the subject's location, beds or living area is unknown")
return None
r = requests.post(
"https://api.zillapi.com/v1/search",
json={
"filters": {
"status": "sold",
"bbox": {
"west": lng - offset, "east": lng + offset,
"south": lat - offset, "north": lat + offset,
},
"homeTypes": [HOME_TYPES.get(subject.get("homeType"), "house")],
},
"maxItems": 12,
},
headers=HEADERS,
)
comps = r.json()["data"]
# Filter similar properties
valid = []
for c in comps:
if not c.get("unformattedPrice") or not c.get("livingArea"):
continue
if c.get("bedrooms") is None or abs(c["bedrooms"] - beds) > 1:
continue
valid.append(c)
if not valid:
return None
prices_per_sqft = [c["unformattedPrice"] / c["livingArea"] for c in valid]
median_ppsf = sorted(prices_per_sqft)[len(prices_per_sqft) // 2]
comp_value = median_ppsf * sqft
return round(comp_value)

If the asking price is 10% below the comp-derived value, you might have a deal worth pursuing. If it’s 15% above, the seller is probably overpricing. The comps API guide goes deeper on this workflow.

How does this compare to investor-specific tools?

Several platforms serve real estate investors. Most provide pre-calculated metrics through a dashboard, not an API.

Comparison matrix of ZillAPI, Mashvisor, DealCheck, ATTOM, and PropStream showing REST API availability, pre-calculated metrics, monthly price, and free tier
ZillAPI returns rent estimates for screening from $5 a month.
Tool API available Pre-calculated metrics Price Free tier
ZillAPI Yes (REST) No (you calculate) $5/mo 100 credits
Mashvisor Yes (REST) Yes (cap rate, cash flow) $35/mo No
DealCheck No Yes (full underwriting) Free-$20/mo Yes (manual only)
Rentastic No Yes (cap rate, cash flow) Free-$15/mo Yes (limited)
ATTOM Yes (REST) No $95/mo No
PropStream No Yes (comps, ARV) $99/mo 7-day trial

The trade-off is clear. Mashvisor and DealCheck give you pre-calculated metrics in a dashboard. You don’t write code. But you pay $35-99 per month, and you’re locked into their interface.

With ZillAPI, you write the calculation code yourself (the examples above are copy-paste ready). But you pay $5 per month, you own the pipeline, and you can customize every formula. If you want to weight vacancy at 10% instead of 8%, or use 6.5% interest instead of 7%, you change one number. No vendor lock-in.

For investors who code (or work with developers), the API approach gives more control. For investors who want a point-and-click dashboard, Mashvisor or DealCheck is faster to start.

How much does investment screening cost?

The math is simple. One address lookup costs up to 3 credits. One market search costs 1 credit per listing returned (minimum 1).

Bar graphic of credits and monthly-plan cost per workflow, from a single property analysis at up to 3 credits up to screening 1,000 properties for 5 dollars as batch jobs or up to 15 dollars of credits by address
Screening 1,000 properties costs five dollars as batch jobs, or up to fifteen dollars of credits by address.
Workflow Credits Cost (monthly plan)
Single property analysis up to 3 up to $0.015
Market search + top 5 deep analysis 30 at 15 listings $0.15
Screen 100 properties from a list up to 300 up to $1.50
Screen 1,000 properties from a list 1,000 as batch jobs, up to 3,000 by address $5.00 to $15.00 of credits
Daily market scan (1 search + 5 analyses) × 30 days 900 at 15 listings $4.50

The free tier gives you 100 credits. That’s enough to screen at least 33 individual properties by address or run 3 pipelines at 15 listings. No credit card needed.

Plan Credits Cost Properties screened
Free 100 (one-time) $0 33+
Monthly 1,000/month $5/mo 333+
Annual 12,000/year $54/yr 4,000+

For context, an investor screening 200 properties per month to find 3-5 deals spends up to $3.00 in credits by address on the monthly plan. The same analysis through Mashvisor costs $35 per month.

Start screening properties in 60 seconds

Go to zillapi.com. Sign up with your email. Get 100 free credits. No credit card.

Copy the analyze_investment function from above. Run it against a property you’ve been considering. See if the numbers match your underwriting. If they do, scale it up to batch screening.

For the API setup walkthrough, see our step-by-step guide. For code examples in other languages, check the Python tutorial, JavaScript tutorial, or PHP tutorial. For rental-specific analysis, see the rental data API guide.

Frequently asked questions

Can I use the Zillow API for real estate investing?

Yes. The ZillAPI REST API returns both the Zestimate (home value) and rent Zestimate (monthly rent) in a single call, when Zillow has them for the property. With those two numbers plus the tax assessment, you can calculate gross yield, the 1% rule ratio, cap rate proxy, and estimated cash flow. One API call gives you everything you need to screen a rental investment property.

How do I calculate cap rate with the Zillow API?

Pull a property with the ZillAPI /v1/properties/by-address endpoint. Multiply the rentZestimate by 12 to get gross annual rent. Subtract estimated expenses (taxes from taxAnnualAmount, insurance, maintenance at 1% of value, vacancy at 8%). Divide the result by the zestimate or listing price. For a property with $1,850/mo rent and $305,100 value, the gross yield is 7.3% and estimated cap rate is around 4.5%.

Can I screen hundreds of properties at once?

Yes. Loop through a list of addresses and call the ZillAPI endpoint for each one. For 1,000 properties, two batch jobs of 500 addresses usually finish in about 5 to 10 minutes. An address lookup costs up to 3 credits ($0.015); batch jobs cost 1 credit per record returned. Use the fields parameter to trim responses to only the investment-relevant fields, which speeds up processing.

How do I find investment properties with the Zillow API?

Use the ZillAPI /v1/search endpoint with a bounding box and filters. Set filters.status to for_sale, filter by homeTypes and price range, then calculate yield for each result that has a rent Zestimate. Sort by gross yield descending to surface the best deals first. A search costs 1 credit per listing returned, with a minimum of 1.

How much does a real estate API for investors cost?

ZillAPI costs up to $0.015 per address lookup and returns both home value and rent estimates in one request. Mashvisor starts at $35 per month. DealCheck is free for manual entry but has no API. ATTOM starts at $95 per month. ZillAPI’s 100 free credits at signup let you test your screening workflow at zero cost.

Does the Zillow API include rental income estimates?

Yes. Every ZillAPI property response includes a rentZestimate field as an integer in dollars. This is Zillow’s estimated monthly rent for that property, the same figure shown on Zillow.com. It also returns the zestimate (home value) and taxHistory (property tax by year) in the same call, giving you the three core inputs for investment analysis.