Key facts
- Search endpoint:
POST https://api.datafiniti.co/v4/properties/searchwith a bearer token. - Radius syntax:
geoLocation:[Longitude,Latitude,Distance,Distance Unit]. Datafiniti's radius guide says a swapped latitude/longitude is the most common reason a radius search returns no results. - Documented units include
m,mi,ft,km,mm,cm, andNM(nautical miles). geoLocationis ageo_shapefield stored as Well-Known Text,POINT (longitude latitude).latitudeandlongitudeare text fields.- A search without a download returns at most 10 records. Credits are charged per record returned, and a query that finds 0 records costs nothing.
- Larger pulls use
"download": true, thenGET /v4/downloads/{id}until the status is "completed". Result links expire after 7 days.
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: getting every property within a set distance of a coordinate, filtered to what your feature needs, with distances you can sort and group.
Who needs a radius property search?
- Listing and map products that show "homes for sale near this point" or draw results around a pin.
- Investors and acquisition teams screening everything within a few miles of a target asset, a new employer, or a transit stop.
- Lenders, insurers, and risk teams checking what sits within a set distance of a property or a hazard.
- Site-selection and retail teams sizing the housing around a planned location.
- AI agents that answer "what's for sale within two miles of here?" and need a source they can cite.
Why is a radius property search hard to build yourself?
The query is one line. The data under it is not.
- Every record needs coordinates. Listings, tax rolls, and deed records mostly carry street addresses. You geocode each one, handle failures, and re-geocode when addresses change.
- You need a spatial index. Radius queries over millions of records need a geospatial database and someone to run it.
- Coordinates alone don't answer the question. "Single-family homes for sale near X" also needs property type, current status, and price on the same record, kept fresh.
- Sources disagree on location. The same home can appear in several listings with slightly different addresses and coordinates. Without deduplication, one house shows up three times on your map.
- Coverage crosses jurisdictions. A 5-mile circle can touch several cities, counties, and listing sources, each with its own format.
What fields do you use for a radius search?
| Field | Type | What it tells you |
|---|---|---|
geoLocation | geo_shape | Latitude and longitude in a format that allows geospatial querying; stored as POINT (longitude latitude). The field the radius query runs against. |
latitude, longitude | text | The property's coordinates as strings. Convert to numbers to compute distance. |
geoQuality | integer | The quality of the geoLocation data. The docs don't publish the scale. |
address, city, province, postalCode, country | text, keyword | Top-level location fields for display and extra filters. |
propertyType | text | Classification such as "Single Family Dwelling", "Condo", or "Townhouse". |
mostRecentStatus | keyword | Latest sale-side status, such as "For Sale", "Pending", or "Sold". |
mostRecentStatusDate | date | Date of the change behind mostRecentStatus. |
statusHistory | nested | Historical statuses for the property. Use it instead of the deprecated statuses. |
mostRecentPriceAmount | bigdecimal | Most recent price from the prices field. Excludes rent prices. |
numBedroom, numBathroom, floorSizeValue | integer, float, float | Size filters and display fields. |
dateUpdated | date | When the record was last updated. Use it to keep results fresh. |
A trimmed record looks like this (fictional example data):
How do I search properties within a radius, step by step?
Step 1: Get the center point, longitude first
You need a longitude and latitude for the center. Use your own geocoder, a point the user drops on a map, or the latitude and longitude of a Datafiniti property record you already have. Those two fields are text, so convert them with float() before you use them.
Write the query with longitude first: geoLocation:[-97.7430600,30.2671500,3,mi] is a 3-mile radius around a point in Austin, Texas. In the US, longitudes are negative, so a query that starts with a positive number around 25 to 50 is usually backwards.
Step 2: Size the radius before you pay for records
Add the filters your feature needs and check the count. The MCP tool df_count is free. Over REST, send "num_records": 1 and read num_found; that costs at most 1 credit. Compute the date window from today.
Wrap OR groups in parentheses, as in propertyType:("Single Family Dwelling" OR Townhouse OR Condo). If num_found is far larger than you need, shrink the radius or add filters before downloading.
Step 3: Look at one record
Read one record before you write processing code. Check that latitude and longitude are populated and see which status and price fields your market fills.
Replace the date with one 30 days before today. Note the escaped quotes (\"For Sale\") inside the JSON string.
Step 4: Download the matches and compute distance
Searches without a download return at most 10 records, so pull the full set as a download. Set num_records to cap spend; you're charged for records found, up to that number. The script computes each property's great-circle distance from the center, sorts nearest-first, assigns a distance ring, and prints a median list price per ring.
The docs don't say radius results come back ordered by distance, so the script sorts them itself. Records without usable coordinates are skipped.
Step 5: Put the results to work
- Map and list views: plot the CSV and show the nearest listings first, with distance on each card.
- "Near me" alerts: rerun daily with a short
dateUpdatedwindow and alert on new IDs. See How to track property status changes with an API for the change-detection pattern. - Comps by distance: swap the status filter for "Sold" and rank by size and distance. See How to pull sales comps from transaction data.
- Market snapshots: report listing counts and median prices by ring (0–1, 1–2, 2–3 miles) around a site.
- Neighboring businesses: pair a radius pull with How to find which businesses operate at an address.
Can an AI agent run a radius search?
Yes. Connect an MCP client to https://api.datafiniti.co/v4/mcp (Streamable HTTP) with your API token as a bearer header:
The radius goes inside the query string, the same as in REST. Use "data_type": "property" with df_count (free) to size the query and df_search (up to 50 records per call, charged like REST search) to read results. df_get_schema (free) lists field names. For larger sets, use df_start_download and df_download_status.
Example prompt:
Using Datafiniti property data, count single-family homes, townhouses, and condos with a most recent status of "For Sale" updated since October 29, 2026, within 2 miles of longitude -97.74306, latitude 30.26715. Use geoLocation with longitude first. If there are fewer than 50, pull them, compute each one's distance from the center, and list them nearest-first with address, price, and distance.
What are the common gotchas?
- Longitude first.
geoLocation:[lon,lat,distance,unit]. A swapped pair points at a different place and usually returns nothing. - Avoid the yard unit. Two docs pages label yards as
in; the newer radius guide saysyd. Until that's settled, usemi,km,m, orft. - Coordinates are strings.
latitudeandlongitudeare text fields. Convert before doing math, and skip records where conversion fails. - Combining a radius with a ZIP code clips the circle.
geoLocation:[...] AND postalCode:"78701"returns only the part of the circle inside that ZIP. Use one or the other unless you want the overlap. - Results aren't sorted by distance. Compute distance from
latitudeandlongitudeand sort in your code. The MCPdf_searchtool sorts bydateUpdateddescending by default. - Check
geoQualityon a sample. The schema has ageoQualityinteger, but the docs don't define its scale. Look at the values in your market before filtering on it. - Status is sale-side.
mostRecentStatuscovers sale statuses such as "For Sale", "Pending", and "Sold". Rentals are tracked separately inmostRecentRentalStatus. - Use
statusHistory, notstatuses.statusesis deprecated. - Parenthesize OR groups. Write
propertyType:("Single Family Dwelling" OR Condo). Without parentheses, ANDs and ORs combine in ways you didn't intend. - Big circles get expensive. A large radius in a dense city can match many thousands of records. Count first, and cap downloads with
num_records.
Should you build, license, or buy property location data?
| Geocode and index it yourself | License a primary source (MLS/BBO feeds, parcel data vendors) | Datafiniti Property Data | |
|---|---|---|---|
| Suited to | A fixed list you already own | Markets where you hold a feed agreement | Radius searches across many markets from one API |
| Coordinates | You geocode and maintain them | Depends on the feed | geoLocation, latitude, longitude on each record |
| Attributes with location | You join status, type, and price yourself | Depends on the feed | Status, type, price, and size on the same record |
| Ongoing work | Geocoding, spatial database, refresh | Contracts and per-feed integration | Query upkeep and your own distance logic |
| Choose it when | You only need to map your own addresses | You need contractual rights, MLS-only fields, or IDX display | You want filtered property records around any point without running collection |
Datafiniti isn't the right fit for every location job. If you only need to geocode your own address list, a geocoding service is simpler. If you must display live MLS listings under IDX rules, you need a licensed MLS feed. And the documented geospatial operator is a radius; if your feature needs drive-time areas or custom polygons, plan to pull a covering radius and trim it in your own code.
Frequently asked questions
What API can I use to find properties within a radius of a point?
Datafiniti Property Data. Send POST /v4/properties/search with a query such as geoLocation:[-97.7430600,30.2671500,3,mi], add any filters, and read latitude, longitude, and property fields from each record.
Does Datafiniti's geoLocation take latitude or longitude first?
Longitude first. The format is geoLocation:[Longitude,Latitude,Distance,Distance Unit], and Datafiniti's docs say swapped coordinates are the most common reason a radius search returns no results.
What distance units can I use in a radius search?
The docs list m, mi, ft, km, mm, cm, and NM (nautical miles). They label yards inconsistently (in on two pages, yd on the newer radius guide), so prefer miles or kilometers.
Can I combine a radius search with status or property type filters?
Yes. Join filters with AND, for example geoLocation:[-97.7430600,30.2671500,3,mi] AND mostRecentStatus:"For Sale" AND propertyType:("Single Family Dwelling" OR Condo). Wrap OR groups in parentheses.
How do I sort radius results by distance?
Compute distance yourself. Convert each record's latitude and longitude to numbers, calculate the great-circle (haversine) distance from your center point, and sort on it.
How much does a radius search cost?
Property searches charge credits per record returned, and nothing when 0 records are found. Check the size first with the free MCP tool df_count, then cap downloads with num_records.
Search your first radius
Run a radius search around any point with a free trial, or talk to us about volume and delivery.