Zillow API comp research toolkit for appraisers built in Python, showing a subject property feeding a comparable sales search, an adjustment grid, and a reconciled value
Comp research for residential appraisal, powered by the ZillAPI Zillow API.

Appraisal work starts with comps. Before an appraiser fills out a single form field, they spend hours pulling recent sales, comparing them to the subject, and working out adjustments. In non-disclosure states such as Texas, sold listings come back without a sale price, so the comp step there leans on the Zestimate and the last list price.

That research stage is where a property data API helps. One call returns recent sales near the subject with the square footage, beds, baths, and sale details you need to build a comp grid.

To be clear about scope: the API supports your research. It does not produce the appraisal. You still apply USPAP standards and professional judgment, and you still render the report in your form software. What changes is how fast you gather and analyze the data.

Here is how to build appraisal comp workflows with Python and the Zillow API.

What data do appraisers need?

The comp grid drives the sales comparison approach. Every field in it comes from the same API call.

Pipeline diagram showing a subject property address sent to the Zillow API, which returns the subject record and a list of recent comparable sales, feeding an adjustment grid that produces a reconciled value range
One subject address feeds the comp search, the grid, and the reconciled range.
Appraisal task Data needed API field
Subject profile Size, beds, baths, age, lot livingArea, bedrooms, bathrooms, yearBuilt, lotAreaValue
Comp search Recent sales near subject search endpoint (sold)
Adjustments Feature differences livingArea, bedrooms, bathrooms, lotAreaValue
Price per sqft Sale price and size price, livingArea
Value cross-check Market estimate zestimate
Sale verification Sale date and price dateSold, price

One call returns 200+ fields per property at up to $0.015 by address. For API key setup, see the step-by-step guide.

How do I pull comps for a subject property?

Start with the subject. Pull its profile, then search for recent sales nearby and filter them down to the most similar properties.

Funnel showing all recently sold homes in the subject neighborhood narrowing down through filters for living area within 20 percent, matching bedroom count, and similar age, leaving a shortlist of the most similar comparable sales
Comp selection narrows recent sales to the few most similar to the subject.
import requests, os
API_KEY = os.environ["ZILLAPI_KEY"]
HEADERS = {"Authorization": f"Bearer {API_KEY}"}
def show(value):
return "n/a" if value is None else value
def money(value):
return "n/a" if value is None else f"${value:,.0f}"
def num(value):
return "n/a" if value is None else f"{value:,}"
def get_subject(address):
"""Pull the subject property profile."""
return requests.get(
"https://api.zillapi.com/v1/properties/by-address",
params={
"address": address,
"fields": "address,zestimate,livingArea,bedrooms,bathrooms,yearBuilt,lotSize",
},
headers=HEADERS,
).json()["data"]
def find_comps(subject, bbox, max_comps=6):
"""Find and rank comparable sales near the subject."""
s_sqft = subject.get("livingArea")
s_beds = subject.get("bedrooms")
s_year = subject.get("yearBuilt")
if not s_sqft or s_beds is None:
print("Skipped comps: the subject's living area or bed count is unknown")
return []
filters = {"status": "sold", "bbox": bbox, "homeTypes": ["house"]}
if s_year: # search rows have no yearBuilt, so filter on age in the request
filters["yearBuilt"] = {"min": s_year - 15, "max": s_year + 15}
sold = requests.post(
"https://api.zillapi.com/v1/search",
json={"filters": filters, "maxItems": 25},
headers=HEADERS,
).json()["data"]
candidates = []
for comp in sold:
sqft = comp.get("livingArea")
if not sqft or not comp.get("unformattedPrice"):
continue
# Filter: living area within 20%, same bed count
if abs(sqft - s_sqft) / s_sqft > 0.20:
continue
if comp.get("bedrooms") != s_beds:
continue
# Similarity score (lower is closer)
score = abs(sqft - s_sqft) / s_sqft * 100
comp["_score"] = round(score, 1)
candidates.append(comp)
candidates.sort(key=lambda c: c["_score"])
return candidates[:max_comps]
subject = get_subject("1600 Pennsylvania Ave NW, Washington DC 20500")
bbox = {"north": 38.96, "south": 38.86, "east": -76.99, "west": -77.09}
comps = find_comps(subject, bbox)
print(f"Subject: {num(subject.get('livingArea'))} sqft, {show(subject.get('bedrooms'))}bd, built {show(subject.get('yearBuilt'))}")
print(f"Found {len(comps)} comparable sales\n")
for c in comps:
print(f" ${c['unformattedPrice']:,} | {c['livingArea']:,} sqft | {c['bedrooms']}bd | score {c['_score']}")

The function pulls recent sales in the bounding box built within 15 years of the subject, then filters them to homes within 20% of its size with the same bedroom count. It ranks what remains by a similarity score so the closest comps rise to the top.

You set the filters. These are starting thresholds. Tighten or loosen them based on your market and the subject’s characteristics.

How do I calculate adjustments?

Adjustments are the heart of the sales comparison approach. The formula is simple: multiply your adjustment factor by the difference in quantity between the subject and the comp.

Adjustment calculation showing a comp that is 200 square feet larger than the subject, multiplied by a 60 dollar per square foot factor, producing a 12,000 dollar downward adjustment to the comp sale price
Each adjustment is the market factor times the quantity difference.
# Market-derived adjustment factors (you set these from paired-sales analysis)
FACTORS = {
"gla_per_sqft": 60, # $ per square foot of living area
"bedroom": 5000, # $ per bedroom
"bathroom": 7500, # $ per bathroom
"lot_per_sqft": 3, # $ per square foot of lot
"year_built": 500, # $ per year of age difference
}
def adjust_comp(subject, comp):
"""Adjust a comp's sale price toward the subject."""
adjustments = {}
# Living area: positive means comp is larger, so adjust the comp down
# A feature missing on either side gets no adjustment
comp_sqft, subject_sqft = comp.get("livingArea"), subject.get("livingArea")
sqft_diff = comp_sqft - subject_sqft if comp_sqft and subject_sqft else 0
adjustments["GLA"] = -round(sqft_diff * FACTORS["gla_per_sqft"])
comp_beds, subject_beds = comp.get("bedrooms"), subject.get("bedrooms")
bed_diff = comp_beds - subject_beds if comp_beds is not None and subject_beds is not None else 0
adjustments["Bedrooms"] = -round(bed_diff * FACTORS["bedroom"])
comp_baths, subject_baths = comp.get("bathrooms"), subject.get("bathrooms")
bath_diff = comp_baths - subject_baths if comp_baths and subject_baths else 0
adjustments["Bathrooms"] = -round(bath_diff * FACTORS["bathroom"])
# lotSize is always square feet; lotAreaValue can be acres
comp_lot, subject_lot = comp.get("lotSize"), subject.get("lotSize")
lot_diff = comp_lot - subject_lot if comp_lot and subject_lot else 0
adjustments["Lot"] = -round(lot_diff * FACTORS["lot_per_sqft"])
# Search rows have no yearBuilt: set comp["yearBuilt"] yourself to adjust for age
comp_year, subject_year = comp.get("yearBuilt"), subject.get("yearBuilt")
year_diff = comp_year - subject_year if comp_year and subject_year else 0
adjustments["Age"] = round(year_diff * FACTORS["year_built"])
total_adj = sum(adjustments.values())
adjusted_price = comp["unformattedPrice"] + total_adj
return {
"sale_price": comp["unformattedPrice"],
"adjustments": adjustments,
"total_adjustment": total_adj,
"adjusted_price": adjusted_price,
}
if comps:
result = adjust_comp(subject, comps[0])
print(f"Comp sale price: ${result['sale_price']:,}")
for label, amt in result["adjustments"].items():
print(f" {label:<10} {amt:+,}")
print(f"Total adjustment: ${result['total_adjustment']:+,}")
print(f"Adjusted price: ${result['adjusted_price']:,}")
else:
print("No comparable sale to adjust")

The function compares each feature, multiplies the difference by your factor, and applies the sign. A comp larger than the subject gets adjusted down. A comp with fewer bathrooms gets adjusted up.

The factors come from you. A $60 per square foot living-area factor times a 200 square foot difference produces a $12,000 adjustment. Derive these from paired-sales analysis in your market, not from the API.

How do I cross-check with price per square foot?

Price per square foot is a quick sanity check on your comp set. If one comp’s rate is far from the others, it may not belong in the grid.

Bar chart comparing the sale price per square foot of five comparable homes against the subject, with the comps clustering near 165 dollars per square foot and one outlier flagged for review
Price per square foot flags comps that fall outside the cluster.
def price_per_sqft_check(comps):
"""Compare price per square foot across the comp set."""
rates = []
for c in comps:
if c.get("unformattedPrice") and c.get("livingArea"):
rate = c["unformattedPrice"] / c["livingArea"]
rates.append((c, round(rate)))
if not rates:
print("No comps with a sale price and living area")
return None
avg = sum(r for _, r in rates) / len(rates)
print(f"PRICE PER SQUARE FOOT")
print(f"{'='*50}")
for c, rate in sorted(rates, key=lambda x: x[1]):
flag = ""
if abs(rate - avg) / avg > 0.15:
flag = " <- outlier, review"
print(f" ${rate}/sqft (${c['unformattedPrice']:,} / {c['livingArea']:,} sqft){flag}")
print(f"{'='*50}")
print(f" Average: ${round(avg)}/sqft")
return round(avg)
avg_rate = price_per_sqft_check(comps)

The check flags any comp whose rate is more than 15% off the average. That comp may have a feature the grid does not capture, like a recent renovation or a inferior location. Look closer before you keep it.

How do I build the full comp grid?

The grid puts it together. Pull the subject, find comps, adjust each one, and print a side-by-side comparison with the adjusted value range.

def build_comp_grid(address, bbox):
"""Build a complete comp grid for a subject property."""
subject = get_subject(address)
comps = find_comps(subject, bbox, max_comps=5)
print(f"COMP GRID")
print(f"{'='*60}")
print(f"Subject: {num(subject.get('livingArea'))} sqft | {show(subject.get('bedrooms'))}bd/"
f"{show(subject.get('bathrooms'))}ba | built {show(subject.get('yearBuilt'))}")
print(f"Zestimate: {money(subject.get('zestimate'))}")
print(f"{'='*60}")
adjusted_values = []
for i, comp in enumerate(comps, 1):
result = adjust_comp(subject, comp)
adjusted_values.append(result["adjusted_price"])
print(f"\nComp {i}: {comp['livingArea']:,} sqft | {comp['bedrooms']}bd/"
f"{show(comp.get('bathrooms'))}ba")
print(f" Sale price: ${result['sale_price']:,}")
print(f" Net adjustment: ${result['total_adjustment']:+,}")
print(f" Adjusted price: ${result['adjusted_price']:,}")
if adjusted_values:
low = min(adjusted_values)
high = max(adjusted_values)
mid = round(sum(adjusted_values) / len(adjusted_values))
print(f"\n{'='*60}")
print(f" Adjusted value range: ${low:,} to ${high:,}")
print(f" Indicated value: ${mid:,}")
print(f" Zestimate cross-check: {money(subject.get('zestimate'))}")
print(f"{'='*60}")
return adjusted_values
build_comp_grid("1600 Pennsylvania Ave NW, Washington DC 20500", bbox)

The grid shows each comp’s sale price, net adjustment, and adjusted price, then reconciles them into an indicated value range. The Zestimate sits alongside as an independent cross-check, not as the answer.

This output is research, not the appraisal. You take it into your form software, apply your judgment, and document your reasoning to USPAP standards.

How does this compare to appraisal tools?

Appraisers already use form software and analytics platforms. The API does not replace them. It feeds the comp research stage.

Comparison matrix of enterprise appraisal analytics tools versus ZillAPI across cost, comp data, adjustment support, form rendering, and USPAP workfile features, showing ZillAPI covers comp data and raw inputs
The API covers comp data and raw inputs; form software still renders the report.
Feature Enterprise tools (Redstone, HouseCanary) ZillAPI
Annual cost Hundreds to thousands $54/yr
Comparable sales Yes Yes (search endpoint)
Property details Yes Yes (200+ fields)
Adjustment factors Suggested by model You derive and apply
Comp grid Built-in Build your own
URAR rendering No (that is form software) No
USPAP workfile No No
Setup time Days 60 seconds

For market-derived adjustment factors and regression analysis, the analytics platforms do more. For pulling raw comp data into your own scripts and spreadsheets, the API does it for up to $0.015 per address lookup.

An appraiser completing 40 reports a month with the grid above, one address lookup and one search of 25 sales each, uses 1,120 credits. That is $9 a month on Monthly with one top-up.

A note on the URAR redesign

The appraisal form is changing. All legacy UAD forms, including the 1004, are retired on November 2, 2026, replaced by a single redesigned URAR. The new form turns more free-form commentary into discrete, standardized data fields.

That shift rewards clean, structured data inputs. Pulling comp characteristics through an API, rather than retyping them, fits the direction the form is moving. The API gives you the raw fields in a structured format from the start.

How do I get started?

Go to zillapi.com and sign up. You get 100 free credits with no credit card required.

Start with the comp grid. Enter a subject address and a bounding box around its neighborhood. Run the script and see the adjusted value range against the Zestimate. That single grid shows what the API does for your research stage.

For comparable sales detail, see the comps guide. For the full Python setup, see the Python tutorial. For property field documentation, see the property data guide. For lender-side valuation, see the lenders guide.

Frequently asked questions

Can appraisers use the Zillow API?

Yes. Appraisers use third-party REST APIs like ZillAPI for comp research, not to produce the final appraisal. Each API call returns recent sales (with sale prices where they’re public; non-disclosure states such as Texas don’t publish them), square footage, beds, baths, year built, lot size, and the Zestimate when Zillow has one. This speeds up the data-gathering stage. The appraiser still applies professional judgment and USPAP standards. One address lookup costs up to 3 credits ($0.015), and the free tier gives 100 credits at signup.

How do I pull comparable sales with the Zillow API?

Use the search endpoint with a sold filter and a bounding box around the subject property. The API returns sold listings with price, square footage, beds, baths, and sale details. Set filters.yearBuilt in the request for similar age, then filter the results by living area within 20 percent and the same bedroom count to build a shortlist of comps. A search costs 1 credit per listing returned (minimum 1).

How do I calculate appraisal adjustments from API data?

Pull the square footage and features for the subject and each comp. Multiply your adjustment factor by the quantity difference. For example, a $60 per square foot living-area factor times a 200 square foot difference equals a $12,000 adjustment. Add or subtract the adjustment from the comp sale price. The API supplies the property characteristics; you supply the market-derived adjustment factors.

Does the Zillow API replace appraisal software?

No. The API supplies property data for comp research. It does not render a URAR, store workfiles, or enforce USPAP compliance. Appraisers still use form software like a la mode or ACI to produce the report. The API feeds the data-gathering and analysis stage that happens before the form is filled, and it is billed per credit.

How much does comp data cost for appraisers?

Enterprise appraisal analytics tools like Redstone and HouseCanary cost hundreds to thousands per year. ZillAPI costs $5 per month for 1,000 credits (at least 333 address lookups) or $54 per year for 12,000 credits (at least 4,000 address lookups). An appraiser completing 40 reports per month with one address lookup and one search of 25 sales each uses 1,120 credits. That is $9 a month on Monthly with one top-up. The free tier gives 100 credits at signup.

What property fields matter for a comp grid?

The core comp grid fields are sale price, gross living area, bedrooms, bathrooms, year built, lot size, and sale date. The API returns all of these in one call. You compare each comp to the subject across these fields, apply adjustment factors to the differences, and arrive at an adjusted sale price for each comp. Price per square foot is a useful cross-check.