How to match an address list to property records with an API

The short answer

To match an address list to property records, search Datafiniti Property Data row by row with address:"…" AND postalCode:…* on POST /v4/properties/search, or upload the file to /v4/properties/search/enrichment. Each match returns a normalized record with id, parcelNumbers, geoLocation, and valuation and occupancy fields, so you can score match quality and enrich your list.

Datafiniti Team Last updated 11 min read

Key facts

  • Single lookup: POST https://api.datafiniti.co/v4/properties/search with bearer-token auth.
  • Batch: POST https://api.datafiniti.co/v4/properties/search/enrichment takes a CSV or line-separated JSON file, with a minimum of 20 records per request.
  • fuzzy_match controls address matching: on (default), off, or retry.
  • A search costs 1 credit per record returned; if 0 records are found, no credits are charged.
  • Address searches must start with a digit, so P.O. Boxes aren't supported, and the query docs list US addresses only.
  • Businesses at an address come from POST /v4/businesses/search or the property field businessesAtAddress.

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 a job that sits upstream of many data products: taking a list of addresses you already have and turning each row into a verified, enriched record.

Who needs to match addresses to property records?

  • Insurance and lending teams that add building age, size, and estimated value to applications or portfolios.
  • Marketing and CRM teams that enrich a customer file with property attributes, or suppress vacant addresses.
  • Proptech and analytics products that let users upload a portfolio and see each property's details.
  • Data teams that want a coverage check before committing to a source.
  • Logistics and operations teams that need to know whether an address is a house, a unit, or a business location.

Why is this hard to build yourself?

The lookup is simple. Everything around it isn't.

  • The same address is written many ways. "123 Main Street," "123 Main St.," and "123 MAIN ST #4" need to land on one record. That takes suffix, directional, and unit normalization before any comparison.
  • There's no national property file to join against. Tax and assessor data lives county by county, in different formats and on different schedules. Listing data lives across thousands of sites.
  • Records must be merged. Datafiniti generates keys from fields such as address, city, province, country, mlsNumber, and taxID, then merges records that share a key. If you build your own file, you own that logic and its edge cases.
  • Matching needs a verdict. A join that returns something isn't the same as a join that's right. You need rules for no match, several matches, and a suspicious match.
  • Refresh never ends. Sale status, valuation, and occupancy change, so a one-time join starts going stale the day you run it.

What fields do you get back?

Field Type What it tells you
idnot listed in schemaThe Datafiniti record ID. Store it as your foreign key.
addresstextThe normalized street address
addressStandardizedtextThe standardized USPS address that address is normalized from
rawAddresstextThe address as collected from the source
postalCode / postalCodePlusFourkeywordZIP and ZIP+4
isUnitbooleanWhether the record is a unit in a complex or building
parcelNumbersnestedParcel number, account, and year
taxIDkeywordThe property's tax ID
geoLocationgeo_shapeCoordinates for geospatial queries; geoQuality (integer) rates them
yearBuilt, numBedroom, numBathroom, floorSizeValueinteger, integer, float, floatCore building attributes
mostRecentEstimatedPriceAmountintegerThe latest estimated price
ownerOccupied, mostRecentVacancybooleanOccupancy signals
businessesAtAddressnestedBusinesses seen at the address, with name, key, and dateSeen

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

property record · JSON
{
"id": "EXAMPLE-PROP-0002",
"address": "2417 Quillfeather Ln Unit 4",
"city": "Austin",
"province": "TX",
"postalCode": "78745",
"country": "US",
"isUnit": true,
"yearBuilt": 1998,
"numBedroom": 2,
"numBathroom": 1.5,
"floorSizeValue": 1040,
"mostRecentEstimatedPriceAmount": 318000,
"ownerOccupied": false,
"mostRecentVacancy": false,
"parcelNumbers": [
{ "number": "00-0000-0000", "account": "000000", "year": 2025 }
]
}

How do I match an address list step by step?

Step 1: Clean the file and estimate spend

Prepare a CSV with address and postalCode columns. The street goes in address; leave city and state out of it. Datafiniti's own property matcher example uses this same layout.

Remove duplicates and rows that can't match, such as P.O. Boxes. The worst-case cost of a row-by-row run is one credit per row, per data type you search. For a free count, use the MCP df_count tool. Over REST, request a single record and read num_found.

Step 2: Test one address

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 address:\"2417 Quillfeather Ln\" AND postalCode:78745*",
"fuzzy_match": "retry",
"num_records": 1,
"format": "json"
}'

The trailing * on postalCode keeps the match working when a ZIP is stored in a longer form. "fuzzy_match": "retry" tries an exact match first and falls back to fuzzy matching only if that finds nothing.

Step 3: Match the list row by row, and grade each match

This is the right shape for lists up to a few thousand rows, because every input row stays tied to its result. The script searches Property Data, optionally checks Business Data, and writes one output row per input row with a match_status.

Start with MAX_ROWS = 20. Your match rate on that pilot tells you what the full run will cost.

match_addresses.py · Python 3
import csv
import os
import re
import time
import requests
API = "https://api.datafiniti.co/v4"
HEADERS = {
"Authorization": f"Bearer {os.environ['DATAFINITI_API_TOKEN']}",
"Content-Type": "application/json",
}
MAX_ROWS = 20 # pilot first, then raise
CHECK_BUSINESSES = True # adds up to 1 credit per row
FIELDS = [
"id", "address", "postalCode", "isUnit", "yearBuilt", "numBedroom", "numBathroom",
"floorSizeValue", "mostRecentEstimatedPriceAmount", "ownerOccupied", "mostRecentVacancy",
]
def search(data_path, query):
body = {"query": query, "fuzzy_match": "retry", "num_records": 1, "format": "json"}
for attempt in range(5):
r = requests.post(f"{API}/{data_path}/search", headers=HEADERS, json=body, timeout=60)
if r.status_code != 429 and r.status_code < 500:
break
time.sleep(2 ** attempt)
r.raise_for_status()
return r.json()
def clean_street(street):
street = re.sub(r"\s+", " ", street.replace('"', "")).strip()
return re.sub(r"\s*#\s*(\w+)$", r" Unit \1", street) # "#301" is stored as "Unit 301"
def clean_zip(postal):
return postal.strip().zfill(5)[:5] # restores leading zeros, drops +4
def house_number(street):
found = re.match(r"\d+", street or "")
return found.group() if found else None
def grade(street, zip5, result):
if result["num_found"] == 0:
return "no_match", {}
rec = result["records"][0]
same_house = house_number(street) == house_number(rec.get("address"))
same_zip = str(rec.get("postalCode", "")).startswith(zip5)
if not (same_house and same_zip):
return "review", rec
return ("ambiguous" if result["num_found"] > 1 else "matched"), rec
def match_row(row):
street, zip5 = clean_street(row["address"]), clean_zip(row["postalCode"])
out = {"input_address": row["address"], "input_postalCode": row["postalCode"]}
if not house_number(street) or not zip5.isdigit():
return {**out, "match_status": "skipped"} # P.O. Boxes and bad ZIPs
query = f'country:US AND address:"{street}" AND postalCode:{zip5}*'
status, rec = grade(street, zip5, search("properties", query))
out["match_status"] = status
out.update({f: rec.get(f) for f in FIELDS})
if CHECK_BUSINESSES:
businesses = search("businesses", query)
if businesses["num_found"]:
out["business_name"] = businesses["records"][0].get("name")
return out
with open("addresses.csv", newline="", encoding="utf-8") as f:
rows = list(csv.DictReader(f))[:MAX_ROWS]
results = [match_row(row) for row in rows]
columns = ["input_address", "input_postalCode", "match_status", "business_name"] + FIELDS
with open("matched.csv", "w", newline="", encoding="utf-8") as f:
writer = csv.DictWriter(f, fieldnames=columns)
writer.writeheader()
writer.writerows(results)
counts = {}
for row in results:
counts[row["match_status"]] = counts.get(row["match_status"], 0) + 1
print(counts)

Treat the four outcomes differently:

  • matched: one record, same house number and ZIP. Accept it.
  • ambiguous: more than one record, often a building with units. Send the unit, or review it.
  • review: a record came back, but the house number or ZIP differs. Fuzzy matching autocorrects, so don't accept these automatically.
  • no_match: no credit spent. Validate the address and retry once.

Datafiniti's bulk matcher example adds threading and an address-validation fallback for rows that miss. It defaults to 3 workers and retries on HTTP 429 and 5xx responses. Start there if sequential speed is your limit.

Step 4: Enrich large files in one batch

For bigger files, upload the list to the enrichment endpoint. It's a multipart request: the form field's name lists the columns to match on (address,postalCode), and its value is your file. Every column must be a Property schema field, or the upload is rejected, so you can't include your own row ID.

The query needs a wildcard for each match field, plus filters to narrow the pool. Narrower queries run faster. num_records should equal your row count.

Results arrive through the same downloads flow as "download": true on a search: poll GET /v4/downloads/{id} until the status is "completed", then fetch each file in results.

enrich_addresses.py · Python 3
import os
import time
import requests
API = "https://api.datafiniti.co/v4"
AUTH = {"Authorization": f"Bearer {os.environ['DATAFINITI_API_TOKEN']}"}
ROWS = 5000 # rows in addresses.csv, minimum 20
def wait_for_files(download_id):
while True:
r = requests.get(f"{API}/downloads/{download_id}", headers=AUTH, timeout=60)
r.raise_for_status()
job = r.json()
if job["status"] == "completed":
return [f["url"] if isinstance(f, dict) else f for f in job["results"]]
if job["status"] == "cancelled":
raise RuntimeError("Download was cancelled")
time.sleep(15)
with open("addresses.csv", "rb") as fh:
r = requests.post(
f"{API}/properties/search/enrichment",
headers=AUTH,
files={"address,postalCode": ("addresses.csv", fh, "text/csv")},
data={
"format": "csv",
"num_records": str(ROWS),
"query": "address:* AND postalCode:* AND country:US AND province:(TX OR OK)",
"view": "default",
},
timeout=300,
)
r.raise_for_status()
job = r.json()
if job.get("errors"):
raise RuntimeError(job["errors"])
download_id = job.get("download", job)["id"]
for i, url in enumerate(wait_for_files(download_id), start=1):
with open(f"enriched_{i}.csv", "wb") as out:
out.write(requests.get(url, timeout=300).content)

Run this with 20 rows before you send the full file. The docs don't describe how unmatched rows appear in the output, so check that and decide how you'll join results back to your list.

If your list clusters in a few ZIP codes, a third option is to download those ZIPs and join locally. Send country:US AND postalCode:(78745 OR 78748) with "download": true. You pay for every record in those ZIPs, so check num_found first.

Step 5: Put the result to work

Store the Datafiniti id next to your own record, along with match_status and the match date. That gives you:

  • An enriched table you can filter, for example by yearBuilt or ownerOccupied.
  • A match-rate metric to report by source, state, or list.
  • A stable ID for later refreshes. To follow changes on those properties, see How to track property status changes with an API.

Can an AI agent do this?

Yes, for short lists. 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}" }
}
}
}

The agent can use df_count (free) to check whether an address is found, df_search (up to 50 records per call, charged per record) to read it, and df_get_schema (free) to look up field names. All take a data_type, such as property or business. For a full file, use the REST flows above. Enrichment isn't listed among the MCP tools.

Example prompt:

Using Datafiniti property data, look up these 10 addresses. Count matches for each one first, then fetch one record per address. Give me a table of year built, bedrooms, and estimated price, and flag any record whose house number or ZIP differs from my input.

What are the common gotchas?

  • Fuzzy is the default. With fuzzy_match on, Datafiniti normalizes the address and autocorrects it to a matching record. Compare the returned address with your input before you trust it.
  • Exact matching needs normalized input. You don't need to abbreviate for a fuzzy search, but with fuzzy_match set to off, use the stored form: "St", not "Street". Normalizing first is safe in both modes.
  • Units are the hardest rows. Datafiniti normalizes "#301" to "Unit 301", but suite handling is partial and depends on the source. A building-level address can match many unit records.
  • Enrichment billing is committed up front. The enrichment and credits pages say charges are based on num_records, and warn you may be overcharged at submission. Set num_records to your row count, and ask support whether overcharging applies to your account.
  • A two-letter state can read as a street suffix. CT and LA are both. Include the ZIP so the address parses correctly.
  • Spreadsheets drop leading zeros. An export can turn 07030 into 7030. Pad ZIPs back to five digits before you match.
  • Parenthesize OR clauses. Write province:(TX OR OK), and group anything you combine with AND.

Should you build, license, or buy?

Criterion Build from county records License a primary source Datafiniti Property Data
Suited toOne or a few counties you know wellThe authoritative record for a defined areaMatching lists that span many markets
What you getAssessor and tax fields, in each county's formatFields defined by that source's agreementOne schema across property, listing, and business fields
Address matchingYou build normalization and matchingDepends on the sourceSearch with fuzzy_match, or batch enrichment
Ongoing workIngestion for every county, plus dedupeContract and integration upkeepMatch review and query upkeep
Choose it whenYour footprint is small and stableYou need the system of record or strict licensing termsYou want matched, enriched rows from one API

Datafiniti isn't the right fit for every list. If your addresses are outside the US, or are mostly P.O. Boxes, the address search won't serve them. If you only need to confirm that an address is deliverable, an address-validation service is simpler and doesn't require property data. And if you need the legal record for a parcel, go to the county.

Frequently asked questions

What API can I use to match a list of addresses to property records?

Datafiniti Property Data. Search each row with address:"…" AND postalCode:…* on POST /v4/properties/search, or upload the whole file to POST /v4/properties/search/enrichment.

How much does it cost to enrich an address list?

A search costs 1 credit per record returned, and nothing if 0 records are found. Enrichment charges are based on the num_records you submit, so set it to your row count and start with a small pilot.

Do I need to standardize addresses before matching?

Not for fuzzy searches: the docs say you don't need to abbreviate your query. For fuzzy_match set to off, use the normalized form, such as "St" and "Unit 301".

How do I avoid false matches?

Use "fuzzy_match": "retry", then compare the house number and ZIP on the returned record with your input. Send anything that differs to review.

Can I find out which businesses are at each address?

Yes. Run the same address query on POST /v4/businesses/search, or read businessesAtAddress on the property record, which lists each business's name, key, and dateSeen.

Can I match Canadian addresses or P.O. Boxes?

Not with this flow. The query docs say address searches must start with a digit and list US addresses only.

Start matching your list

Run your first 20-row pilot with a free trial, or talk to us about volume and delivery.

Sources

Search via street address Searching by address in Property Normalized property addresses Fuzzy match (Property) Fuzzy match (Business) Constructing property queries Enrichment and suppression Property data enrichment with CSV Property data enrichment with JSON How credits work How property records are merged Get a download Property data with Python Property data schema Business data schema MCP server datafiniti/use-cases on GitHub