How to build a rental market report from listing data

The short answer

To build a rental market report, query Datafiniti Property Data at POST /v4/properties/search for a geography plus mostRecentRentalPriceAmount:* and a recent mostRecentRentalPriceDate window. Download the matches, convert each price to monthly rent using mostRecentRentalPricePeriod, and group by postalCode, numBedroom, and rental type. The output is median, quartile, minimum, and maximum asking rent per segment, with rentalStatuses and prices adding history.

Datafiniti Team Last updated 10 min read

Key facts

  • Search endpoint: POST https://api.datafiniti.co/v4/properties/search with bearer-token auth.
  • mostRecentRentalPriceAmount, mostRecentRentalPricePeriod, and mostRecentRentalPriceDate give a property's latest rental price without parsing arrays.
  • rentalStatuses is the rental history. The schema describes its type as "For Rent" or "Short-term Rental".
  • Datafiniti's guide normalizes weekly rent to monthly by multiplying by about 4.345, and yearly rent by dividing by 12.
  • A search without a download returns at most 10 records. Credits are charged per record returned, and 0 records cost nothing.
  • Larger pulls use "download": true, then GET /v4/downloads/{id} until the status is "completed".

Datafiniti is a data-as-a-service provider that offers Property, People, Business, and Product data through a REST API, bulk downloads, and an MCP server. This guide covers one job: turning rental listings into a market report you can put in a product, a pricing tool, or an investment memo.

Who needs a rental market report?

  • Property managers and landlords setting asking rents against nearby comparable units.
  • Investors and lenders underwriting a building's rent assumptions for a submarket.
  • Proptech products that show "typical rent for a 2-bed in this ZIP" on a listing or search page.
  • Relocation, HR, and housing-research teams that compare rents across cities.
  • AI agents that answer "what does a one-bedroom rent for in this area?" and need numbers they can cite.

Why is a rental market report hard to build yourself?

Getting rent numbers is easy. Getting rent numbers you can compare is the work.

  • Rentals are spread across many sites. Listing portals, property-manager sites, and short-term rental sites each list a subset, and the same unit often appears on several.
  • Prices come in different periods. One source lists per month, another per week, another per year. Averaging them raw gives nonsense.
  • Long-term and short-term rentals mix. A short-term rental listed per night or per week can sit next to a 12-month lease in the same ZIP.
  • Listings go stale. A unit rented months ago can still show up unless you track when each price was first and last seen.
  • History is the hard part. Seasonal trends need the price and status a unit had over time, which means storing every snapshot and deduplicating it.

What fields do you use for a rental market report?

Field Type What it tells you
mostRecentRentalPriceAmountfloatThe most recent rental price from prices
mostRecentRentalPriceCurrencytextCurrency for that price
mostRecentRentalPricePeriodtextThe calendar period for that price, such as "Per Month"
mostRecentRentalPriceDatedateDate of the most recent rental price
mostRecentRentalPriceFirstDateSeendateFirst date Datafiniti saw that price
mostRecentRentalPriceDomain, mostRecentRentalPriceSourceURLtextWhere that price came from
mostRecentRentalListPriceAmountfloatThe most recent "rental list" price from prices
mostRecentRentalStatuskeywordThe latest rentalStatuses.type value
rentalStatusesnestedRental status history: type, date, dateSeen, firstDateSeen, lastDateSeen, sourceURLs
pricesnestedPrice history: amountMin, amountMax, currency, period, type, dateSeen, pricePerSquareFoot
numBedroom, numBathroominteger, floatUnit size for segmenting
floorSizeValue, floorSizeUnitfloat, keywordLiving area, for rent per square foot
propertyTypetextA classification for the property type
postalCode, city, province, countrykeyword, textTop-level location fields for filtering and grouping
managedBynestedCompanies or people that managed the property (value, dateSeen)
brokersnestedBrokers associated with the property

A trimmed record looks like this (fictional example data):

property record · JSON (fictional)
{
"address": "418 Quillfeather Ln Apt 3",
"city": "Austin",
"province": "TX",
"postalCode": "78704",
"country": "US",
"propertyType": "Apartment",
"numBedroom": 2,
"numBathroom": 1,
"floorSizeValue": 910,
"floorSizeUnit": "sq ft",
"mostRecentRentalPriceAmount": 1875,
"mostRecentRentalPriceCurrency": "USD",
"mostRecentRentalPricePeriod": "Per Month",
"mostRecentRentalPriceDate": "2026-10-28T00:00:00Z",
"mostRecentRentalStatus": "For Rent",
"rentalStatuses": [
{
"type": "For Rent",
"date": "2026-10-20T00:00:00Z",
"firstDateSeen": "2026-10-21T00:00:00Z",
"lastDateSeen": "2026-10-28T00:00:00Z",
"sourceURLs": ["https://rentals.example.com/listing/418-quillfeather-3"]
}
],
"managedBy": [
{ "value": "Oakline Residential (example)", "dateSeen": ["2026-10-28T00:00:00Z"] }
]
}

How do I build the report step by step?

Step 1: Define the market and size it

Pick a geography with top-level fields (city:, province:, postalCode:), require a rental price, and limit it to prices seen in the last 90 days so stale listings drop out. Wrap the ZIP list in parentheses.

Check the size before you pay for records. The MCP tool df_count is free. Over REST, send "num_records": 1 and read num_found; that costs at most 1 credit.

size_market.py · Python 3
import os
from datetime import date, timedelta
import requests
API = "https://api.datafiniti.co/v4"
HEADERS = {
"Authorization": f"Bearer {os.environ['DATAFINITI_API_TOKEN']}",
"Content-Type": "application/json",
}
SINCE = (date.today() - timedelta(days=90)).isoformat()
QUERY = (
"country:US AND province:TX AND city:Austin "
"AND postalCode:(78702 OR 78704 OR 78745) "
"AND mostRecentRentalPriceAmount:* "
f"AND mostRecentRentalPriceDate:[{SINCE} TO *]"
)
r = requests.post(f"{API}/properties/search", headers=HEADERS, timeout=60,
json={"query": QUERY, "num_records": 1})
r.raise_for_status()
print("matching rental records:", r.json()["num_found"])

Step 2: Look at one record

Read one record before you write any aggregation code. Check which period strings and status values your market actually uses.

cURL
curl --request POST \
--url https://api.datafiniti.co/v4/properties/search \
--header "Authorization: Bearer $DATAFINITI_API_TOKEN" \
--header "Content-Type: application/json" \
--data '{
"query": "country:US AND province:TX AND city:Austin AND postalCode:(78702 OR 78704 OR 78745) AND mostRecentRentalPriceAmount:* AND mostRecentRentalPriceDate:[2026-08-13 TO *]",
"num_records": 1
}'

Replace the date with one 90 days before today.

Step 3: Download the market and compute rent by segment

Searches without a download return at most 10 records, so pull the full market as a download. Set num_records to cap spend; you're charged for the records you download. The script normalizes every price to monthly rent, separates short-term from long-term rentals, and writes medians and quartiles by ZIP code and bedroom count.

rent_report.py · Python 3
import csv
import json
import os
import statistics
import time
from collections import defaultdict
from datetime import date, timedelta
import requests
API = "https://api.datafiniti.co/v4"
HEADERS = {
"Authorization": f"Bearer {os.environ['DATAFINITI_API_TOKEN']}",
"Content-Type": "application/json",
}
SINCE = (date.today() - timedelta(days=90)).isoformat()
QUERY = (
"country:US AND province:TX AND city:Austin "
"AND postalCode:(78702 OR 78704 OR 78745) "
"AND mostRecentRentalPriceAmount:* "
f"AND mostRecentRentalPriceDate:[{SINCE} TO *]"
)
MAX_RECORDS = 2000 # caps spend: credits are charged per record
MIN_SAMPLE = 5 # flag groups too small to quote
def start_download(query, limit):
body = {"query": query, "num_records": limit, "format": "json", "download": True}
r = requests.post(f"{API}/properties/search", headers=HEADERS, json=body, timeout=60)
r.raise_for_status()
data = r.json()
return data.get("download_id") or data.get("id")
def wait_for(download_id):
while True:
r = requests.get(f"{API}/downloads/{download_id}", headers=HEADERS, timeout=60)
r.raise_for_status()
job = r.json()
if job["status"] == "completed":
return job
if job["status"] == "cancelled":
raise RuntimeError("download was cancelled")
time.sleep(10)
def fetch_records(job):
for item in job.get("results") or []:
url = item["url"] if isinstance(item, dict) else item
text = requests.get(url, timeout=300).text.strip()
if text.startswith("["):
yield from json.loads(text)
else:
for line in text.splitlines():
if line.strip():
yield json.loads(line)
def to_monthly(amount, period):
if amount is None:
return None
p = (period or "").lower()
if "month" in p:
return float(amount)
if "week" in p:
return float(amount) * 4.345
if "year" in p:
return float(amount) / 12
return None # unknown or missing period: leave it out
def rental_kind(status):
s = (status or "").lower().replace("-", " ")
return "short_term" if "short term" in s else "long_term"
records = list(fetch_records(wait_for(start_download(QUERY, MAX_RECORDS))))
groups = defaultdict(list)
skipped = 0
for rec in records:
if (rec.get("mostRecentRentalPriceCurrency") or "USD") != "USD":
skipped += 1
continue
rent = to_monthly(rec.get("mostRecentRentalPriceAmount"),
rec.get("mostRecentRentalPricePeriod"))
if not rent or rent <= 0:
skipped += 1
continue
key = (str(rec.get("postalCode", "")), rec.get("numBedroom"),
rental_kind(rec.get("mostRecentRentalStatus")))
size = rec.get("floorSizeValue")
unit = (rec.get("floorSizeUnit") or "").lower()
groups[key].append((rent, size if size and "ft" in unit else None))
rows = []
for (zip_code, beds, kind), items in sorted(groups.items(), key=lambda kv: str(kv[0])):
rents = sorted(r for r, _ in items)
per_sqft = [r / s for r, s in items if s]
q = statistics.quantiles(rents, n=4) if len(rents) >= 4 else [None, None, None]
rows.append({
"postalCode": zip_code,
"numBedroom": beds,
"rental_kind": kind,
"listings": len(rents),
"median_rent": round(statistics.median(rents)),
"p25_rent": round(q[0]) if q[0] else "",
"p75_rent": round(q[2]) if q[2] else "",
"min_rent": round(rents[0]),
"max_rent": round(rents[-1]),
"median_rent_per_sqft": round(statistics.median(per_sqft), 2) if per_sqft else "",
"small_sample": len(rents) < MIN_SAMPLE,
})
with open("rent_by_zip_and_beds.csv", "w", newline="", encoding="utf-8") as f:
writer = csv.DictWriter(f, fieldnames=list(rows[0]))
writer.writeheader()
writer.writerows(rows)
with open("rental_records.jsonl", "w", encoding="utf-8") as f:
for rec in records:
f.write(json.dumps(rec) + "\n")
print(f"{len(records)} records, {skipped} skipped, {len(rows)} groups written")

Use the median, not the mean. A few luxury units or mislabeled periods can pull an average far from what a typical renter pays. The small_sample column marks groups with fewer than 5 listings; don't publish those as a market rate.

Step 4: Add trends and the operators behind the listings

The prices array holds earlier price observations, each with a period and the dates it was seen. Turning those into one point per property per month gives you a seasonal trend line. The same records show who manages the inventory through managedBy.

rent_trend.py · Python 3
import json
import statistics
from collections import Counter, defaultdict
def to_monthly(amount, period): # same helper as report.py
if amount is None:
return None
p = (period or "").lower()
if "month" in p:
return float(amount)
if "week" in p:
return float(amount) * 4.345
if "year" in p:
return float(amount) / 12
return None
def monthly_points(rec):
points = {}
for p in rec.get("prices") or []:
if "rent" not in (p.get("type") or "").lower():
continue
lo, hi = p.get("amountMin"), p.get("amountMax")
rent = to_monthly((lo + hi) / 2 if lo and hi else (lo or hi), p.get("period"))
if not rent:
continue
seen = p.get("dateSeen") or []
for d in [seen] if isinstance(seen, str) else seen:
points[str(d)[:7]] = rent # one point per record per month
return points
trend = defaultdict(list)
operators = Counter()
with open("rental_records.jsonl", encoding="utf-8") as f:
for line in f:
rec = json.loads(line)
for month, rent in monthly_points(rec).items():
trend[month].append(rent)
for m in rec.get("managedBy") or []:
if m.get("value"):
operators[m["value"].strip()] += 1
for month in sorted(trend)[-12:]:
print(month, len(trend[month]), round(statistics.median(trend[month])))
print("Most active managers:", operators.most_common(10))

Two cautions. The API doesn't sort the rentalStatuses and prices arrays, so sort by date yourself. And a market pulled with a 90-day filter is biased toward units listed recently; for a 12-month trend, run a separate download with a wider date window, such as mostRecentRentalPriceDate:[2025-11-11 TO *].

Step 5: Put the report to work

  • Pricing tools: show the p25 to p75 range for a unit's ZIP and bedroom count next to its asking rent.
  • Underwriting: compare a building's rent roll with the median asking rent for the same unit mix.
  • Market pages: publish median rent by ZIP with the listing count and date window next to every number.
  • Alerts: rerun the job weekly and flag segments whose median moved by more than a set percentage.

If you need to know when a specific unit is rented or delisted, see How to track property status changes with an API. To attach rents to your own address list, see How to match an address list to property records.

Can an AI agent build a rental market report?

Yes, for quick looks at one market. Connect an MCP client to https://api.datafiniti.co/v4/mcp (Streamable HTTP) with your API token as a bearer header:

MCP client config
{
"mcpServers": {
"datafiniti": {
"type": "http",
"url": "https://api.datafiniti.co/v4/mcp",
"headers": { "Authorization": "Bearer ${DATAFINITI_API_TOKEN}" }
}
}
}

Use "data_type": "property" with df_count (free) to size a query and df_search (up to 50 records per call, charged per record returned) to read records. df_get_schema (free) lists field names. For a full market, use df_start_download and df_download_status, or the REST flow above. Download links expire after 7 days.

Example prompt:

Using Datafiniti property data, count properties in Austin, TX ZIP codes 78702, 78704, and 78745 with a rental price dated after August 13, 2026. Then pull 30 of them and give me median monthly rent by ZIP code and bedroom count. Convert weekly prices to monthly by multiplying by 4.345 and yearly prices by dividing by 12, and keep short-term rentals in a separate table.

What are the common gotchas?

  • Rental price versus rental list price. mostRecentRentalPriceAmount comes with a mostRecentRentalPricePeriod. mostRecentRentalListPriceAmount has no period field in the schema, so you can't normalize it reliably. Use it as a cross-check.
  • Don't read rent from mostRecentPriceAmount. Datafiniti's docs note it no longer contains a rental price when mostRecentRentalListPriceAmount is populated.
  • Status strings vary. The schema lists "For Rent" and "Short-term Rental", but Datafiniti's own examples also show "Short-Term Rental", "Short Term Rental", "Rental", and "Rental List". Lowercase and strip hyphens before you classify.
  • Period strings vary in case. Examples show "Per Month", "Per week", and "Per year". Compare in lowercase, and drop prices with an unknown period rather than guessing.
  • One record per unit. A large complex can return many records, because Datafiniti creates one record per unit. That's what you want for rent statistics, but report the listing count so readers know a single building can dominate a small ZIP.
  • Price ranges. amountMin and amountMax differ when a source lists a range. Use the midpoint or the minimum, and say which.
  • Use statusHistory for sale statuses. statuses is deprecated. Rental history lives in rentalStatuses.
  • Parenthesize OR groups. Write postalCode:(78702 OR 78704 OR 78745). Without parentheses, the ANDs and ORs combine in ways you didn't intend.
  • Asking rent isn't signed rent. Listing data shows what was advertised, not concessions or the final lease amount.

Should you build, license, or buy rental data?

Criterion Scrape listings yourself License a primary source (MLS rental data, property-manager feeds, survey data) Datafiniti Property Data
Suited toA few sites in one marketMarkets where you hold a feed agreementMany markets from one API
Price periodsYou normalize every siteDefined by each feedOne schema with mostRecentRentalPricePeriod and prices.period
HistoryYou store every snapshotDepends on the feedrentalStatuses and prices with dates seen
Ongoing workExtractors for every siteContracts and per-feed integrationQuery upkeep and your own aggregation
Choose it whenYour scope is narrow and you need fields no one else collectsYou need contractual data rights or actual lease dataYou want normalized rental listings without running collection

Datafiniti isn't the right fit for every rent question. If you need signed lease amounts, concessions, or occupancy, a rent roll or a property-manager feed is the better source. If you need official statistics for a filing or policy work, use government survey data. And in markets with few online rental listings, any listing-based report will be thin; check num_found before you promise coverage.

Frequently asked questions

What API can I use to get rental prices for a market report?

Datafiniti Property Data. Search POST /v4/properties/search with a location plus mostRecentRentalPriceAmount:*, and read mostRecentRentalPriceAmount, mostRecentRentalPricePeriod, and mostRecentRentalPriceDate on each record.

How do I calculate median rent by ZIP code?

Download rental records for the area, convert each price to monthly rent, then group by postalCode and numBedroom and take the median of each group. Report the listing count with every median.

Does Datafiniti show asking rent or actual lease rent?

The rental fields hold prices Datafiniti collected from listing sources, with the domain and source URL. The docs don't describe signed lease amounts, so treat the numbers as asking rents.

How do I separate short-term rentals from long-term rentals?

Use mostRecentRentalStatus or rentalStatuses.type. Values mentioning short-term rental mark short-term listings. Normalize case and hyphens first, since several spellings appear.

How do I convert weekly or yearly rent to monthly?

Datafiniti's rental report guide multiplies weekly rent by about 4.345 and divides yearly rent by 12. Read the period from mostRecentRentalPricePeriod or prices.period.

How much does it cost to pull rental data?

Property searches charge credits per record returned, and nothing when 0 records are found. Size the query first with the free MCP tool df_count, then cap a download with num_records.

Build your first rental report

Run the report on one ZIP code with a free trial, or talk to us about volume and delivery.

Sources

Property data schema Building rental property data market reports Find rental rates for properties Constructing property queries How credits work (API) Property Data API reference Search and downloads Get a download MCP server