Get market statistics for a list of regions and acreage range
const url = 'https://app-api.landinsights.co/api/public/v1/markets-stats/query/';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"resolution":"county","regions":[8023,8003,8109],"min_acres":5,"max_acres":10}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://app-api.landinsights.co/api/public/v1/markets-stats/query/ \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "resolution": "county", "regions": [ 8023, 8003, 8109 ], "min_acres": 5, "max_acres": 10 }'Returns market statistics for up to 50 counties or ZIP codes in one call, computed over comps in the acreage range you set (min_acres inclusive, max_acres exclusive). Each result has the region’s identity and a stats object: listing and sales counts, sell-through rates, days on market, prices, price per acre, and sales trends over trailing 1 month, 3 month, 6 month, and 1 year windows.
get_market_stats and get_zip_market_stats return the same core metrics per preset acreage bucket for one county or ZIP. Use this endpoint instead when you want your own acreage range, several regions in one call, or the metrics the preset buckets lack: median days on market, average prices and price per acre, and sales and price-per-acre trends.
Cost: 10 tokens per region returned. Regions with no comps in the acreage range are left out of results and not billed. Unknown codes return 400 (0 tokens).
Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ”Market statistics for a list of regions over one acreage range.
object
What kind of regions regions lists: ‘county’ for 5-digit county FIPS codes, ‘zip’ for 5-digit ZIP codes.
county- Counties, identified by 5-digit FIPS code.zip- ZIP codes.
County FIPS codes or ZIP codes, per resolution. Up to 50 per call; a code listed twice is returned (and billed) once.
Smallest lot size to include, in acres (inclusive).
Largest lot size to include, in acres (exclusive).
Examples
Three Colorado counties, 5 to 10 acre lots
{ "resolution": "county", "regions": [ 8023, 8003, 8109 ], "min_acres": 5, "max_acres": 10}Two ZIP codes, 1 to 5 acre lots
{ "resolution": "zip", "regions": [ "81133", "81152" ], "min_acres": 1, "max_acres": 5}Responses
Section titled “ Responses ”Market statistics for the requested regions.
object
county- Counties, identified by 5-digit FIPS code.zip- ZIP codes.
One entry per requested region that has comps in the acreage range, in request order. Regions with no comps in the range are omitted.
One region’s statistics over the requested acreage range.
object
Internal region identifier.
Region type — ‘county’ for full-county stats, ‘zip’ for a single ZIP.
county- Whole county.zip- Single ZIP code.
County name (when type=‘county’) or ZIP code (when type=‘zip’).
Two-letter US state code (e.g., ‘CA’).
Primary county name. For ZIP regions, the county the ZIP falls into.
5-digit county FIPS code.
Market metrics for comps in the acreage range. A metric is null when there is no data for it; counts and sell-through rates are 0 instead.
object
Active: Listings currently active on the market.
Pending: Listings currently under contract.
Sold: 1mo: Sales closed in the trailing 30 days.
Sold: 3mo: Sales closed in the trailing 90 days.
Sold: 6mo: Sales closed in the trailing 182 days.
Sold: 1yr: Sales closed in the trailing 365 days.
Avg DOM 1mo: Average days on market across sales in the trailing 30 days.
Avg DOM 3mo: Average days on market across sales in the trailing 90 days.
Avg DOM 6mo: Average days on market across sales in the trailing 182 days.
Avg DOM 1yr: Average days on market across sales in the trailing 365 days.
Median DOM 1mo: Median days on market across sales in the trailing 30 days.
Median DOM 3mo: Median days on market across sales in the trailing 90 days.
Median DOM 6mo: Median days on market across sales in the trailing 182 days.
Median DOM 1yr: Median days on market across sales in the trailing 365 days.
Median Price 1mo: Median sale price in the trailing 30 days, excluding outliers.
Median Price 3mo: Median sale price in the trailing 90 days, excluding outliers.
Median Price 6mo: Median sale price in the trailing 182 days, excluding outliers.
Median Price 1yr: Median sale price in the trailing 365 days, excluding outliers.
Avg Price 1mo: Average sale price in the trailing 30 days, excluding outliers.
Avg Price 3mo: Average sale price in the trailing 90 days, excluding outliers.
Avg Price 6mo: Average sale price in the trailing 182 days, excluding outliers.
Avg Price 1yr: Average sale price in the trailing 365 days, excluding outliers.
Median Pending Price: Median asking price of pending listings, excluding outliers.
Median Active Price: Median asking price of active listings, excluding outliers.
Avg Pending Price: Average asking price of pending listings, excluding outliers.
Avg Active Price: Average asking price of active listings, excluding outliers.
Median Active Acreage: Median lot size of active listings.
Median Pending Acreage: Median lot size of pending listings.
Median Sold Acreage: Median lot size of sales in the trailing 365 days.
Avg Active Acreage: Mean lot size of active listings.
Avg Pending Acreage: Mean lot size of pending listings.
Avg Sold Acreage: Mean lot size of sales in the trailing 365 days.
Median Pending PPA: Median asking price per acre of pending listings, excluding outliers.
Median Active PPA: Median asking price per acre of active listings, excluding outliers.
Median Sold PPA: Median sold price per acre in the trailing 365 days, excluding outliers.
Avg Pending PPA: Average asking price per acre of pending listings, excluding outliers.
Avg Active PPA: Average asking price per acre of active listings, excluding outliers.
Avg Sold PPA: Average sold price per acre in the trailing 365 days, excluding outliers.
Active PPA Min: Lowest asking price per acre among active listings.
Active PPA Max: Highest asking price per acre among active listings.
Pending PPA Min: Lowest asking price per acre among pending listings.
Pending PPA Max: Highest asking price per acre among pending listings.
PPA Range 1mo Min: Lowest sold price per acre in the trailing 30 days.
PPA Range 1mo Max: Highest sold price per acre in the trailing 30 days.
PPA Range 3mo Min: Lowest sold price per acre in the trailing 90 days.
PPA Range 3mo Max: Highest sold price per acre in the trailing 90 days.
PPA Range 6mo Min: Lowest sold price per acre in the trailing 182 days.
PPA Range 6mo Max: Highest sold price per acre in the trailing 182 days.
PPA Range 1yr Min: Lowest sold price per acre in the trailing 365 days.
PPA Range 1yr Max: Highest sold price per acre in the trailing 365 days.
Gini 1mo: Gini coefficient (0-100) of sold price per acre in the trailing 30 days; higher means less uniform pricing.
Gini 3mo: Gini coefficient (0-100) of sold price per acre in the trailing 90 days; higher means less uniform pricing.
Gini 6mo: Gini coefficient (0-100) of sold price per acre in the trailing 182 days; higher means less uniform pricing.
Gini 1yr: Gini coefficient (0-100) of sold price per acre in the trailing 365 days; higher means less uniform pricing.
Sold Count Trend 3mo: Closed sales in the latest reported month as a percentage of the month three months earlier: 100 is unchanged, 200 is double.
Avg PPA Trend 3mo: Average sold price per acre in the latest reported month as a percentage of the month three months earlier: 100 is unchanged.
Sold Count Trend 6mo: Closed sales in the latest reported month as a percentage of the month six months earlier: 100 is unchanged, 200 is double.
Avg PPA Trend 6mo: Average sold price per acre in the latest reported month as a percentage of the month six months earlier: 100 is unchanged.
Sold Count Trend 1yr: Closed sales in the latest reported 12 months as a percentage of the 12 months a year earlier: 100 is unchanged, 200 is double.
Avg PPA Trend 1yr: Average sold price per acre in the latest reported 12 months as a percentage of the 12 months a year earlier: 100 is unchanged.
Sold Count Trend 2yr: Closed sales in the latest reported 12 months as a percentage of the 12 months two years earlier: 100 is unchanged, 200 is double.
Avg PPA Trend 2yr: Average sold price per acre in the latest reported 12 months as a percentage of the 12 months two years earlier: 100 is unchanged.
Sold Count Trend 3yr: Closed sales in the latest reported 12 months as a percentage of the 12 months three years earlier: 100 is unchanged, 200 is double.
Avg PPA Trend 3yr: Average sold price per acre in the latest reported 12 months as a percentage of the 12 months three years earlier: 100 is unchanged.
Pending STR: Pending listings as a percentage of active listings.
1mo STR: Sales in the trailing 30 days as a percentage of active listings.
3mo STR: Sales in the trailing 90 days as a percentage of active listings.
6mo STR: Sales in the trailing 182 days as a percentage of active listings.
1yr STR: Sales in the trailing 365 days as a percentage of active listings.
Examples
County statistics
{ "resolution": "county", "min_acres": 5, "max_acres": 10, "results": [ { "id": "5f3c8e7a-9b1d-4e2c-8f3a-1d2e3f4a5b6c", "type": "county", "name": "Costilla", "state": "CO", "county_name": "Costilla", "fips": 8023, "stats": { "active": 209, "pending": 29, "sold_1yr": 121, "str_1yr": 57.89, "avg_dom_1yr": 168, "median_price_1yr": 14500, "median_sold_ppa": 2031.25, "median_active_price": 11999, "median_active_ppa": 2100, "median_active_acreage": 5.2, "gini_1yr": 38.54, "sold_trend_1yr": 112.4 } } ]}Validation error.
object
object
Stable machine-readable error code. One of: unauthorized, forbidden, subscription_required, tier_upgrade_required, usage_limit_exceeded, usage_backstop_reached, payment_required, payment_method_required, validation_error, unprocessable, not_found, method_not_allowed, rate_limited, internal_error, service_unavailable.
Human-readable description of the error.
Echoes the request’s X-Request-Id (or a server-issued id). Quote it in support requests.
Present on validation errors only: maps each rejected field to its list of messages.
object
Example generated
{ "error": { "code": "example", "message": "example", "request_id": "example", "details": {} }}Missing or invalid credentials.
object
object
Stable machine-readable error code. One of: unauthorized, forbidden, subscription_required, tier_upgrade_required, usage_limit_exceeded, usage_backstop_reached, payment_required, payment_method_required, validation_error, unprocessable, not_found, method_not_allowed, rate_limited, internal_error, service_unavailable.
Human-readable description of the error.
Echoes the request’s X-Request-Id (or a server-issued id). Quote it in support requests.
Present on validation errors only: maps each rejected field to its list of messages.
object
Example generated
{ "error": { "code": "example", "message": "example", "request_id": "example", "details": {} }}A Pro subscription or higher API tier is required.
object
object
Stable machine-readable error code. One of: unauthorized, forbidden, subscription_required, tier_upgrade_required, usage_limit_exceeded, usage_backstop_reached, payment_required, payment_method_required, validation_error, unprocessable, not_found, method_not_allowed, rate_limited, internal_error, service_unavailable.
Human-readable description of the error.
Echoes the request’s X-Request-Id (or a server-issued id). Quote it in support requests.
Present on validation errors only: maps each rejected field to its list of messages.
object
Example generated
{ "error": { "code": "example", "message": "example", "request_id": "example", "details": {} }}Authenticated but not permitted.
object
object
Stable machine-readable error code. One of: unauthorized, forbidden, subscription_required, tier_upgrade_required, usage_limit_exceeded, usage_backstop_reached, payment_required, payment_method_required, validation_error, unprocessable, not_found, method_not_allowed, rate_limited, internal_error, service_unavailable.
Human-readable description of the error.
Echoes the request’s X-Request-Id (or a server-issued id). Quote it in support requests.
Present on validation errors only: maps each rejected field to its list of messages.
object
Example generated
{ "error": { "code": "example", "message": "example", "request_id": "example", "details": {} }}Resource not found.
object
object
Stable machine-readable error code. One of: unauthorized, forbidden, subscription_required, tier_upgrade_required, usage_limit_exceeded, usage_backstop_reached, payment_required, payment_method_required, validation_error, unprocessable, not_found, method_not_allowed, rate_limited, internal_error, service_unavailable.
Human-readable description of the error.
Echoes the request’s X-Request-Id (or a server-issued id). Quote it in support requests.
Present on validation errors only: maps each rejected field to its list of messages.
object
Example generated
{ "error": { "code": "example", "message": "example", "request_id": "example", "details": {} }}Rate limit exceeded.
object
object
Stable machine-readable error code. One of: unauthorized, forbidden, subscription_required, tier_upgrade_required, usage_limit_exceeded, usage_backstop_reached, payment_required, payment_method_required, validation_error, unprocessable, not_found, method_not_allowed, rate_limited, internal_error, service_unavailable.
Human-readable description of the error.
Echoes the request’s X-Request-Id (or a server-issued id). Quote it in support requests.
Present on validation errors only: maps each rejected field to its list of messages.
object
Example generated
{ "error": { "code": "example", "message": "example", "request_id": "example", "details": {} }}Internal error.
object
object
Stable machine-readable error code. One of: unauthorized, forbidden, subscription_required, tier_upgrade_required, usage_limit_exceeded, usage_backstop_reached, payment_required, payment_method_required, validation_error, unprocessable, not_found, method_not_allowed, rate_limited, internal_error, service_unavailable.
Human-readable description of the error.
Echoes the request’s X-Request-Id (or a server-issued id). Quote it in support requests.
Present on validation errors only: maps each rejected field to its list of messages.
object
Example generated
{ "error": { "code": "example", "message": "example", "request_id": "example", "details": {} }}Market statistics temporarily unavailable; retry in a few seconds.
object
object
Stable machine-readable error code. One of: unauthorized, forbidden, subscription_required, tier_upgrade_required, usage_limit_exceeded, usage_backstop_reached, payment_required, payment_method_required, validation_error, unprocessable, not_found, method_not_allowed, rate_limited, internal_error, service_unavailable.
Human-readable description of the error.
Echoes the request’s X-Request-Id (or a server-issued id). Quote it in support requests.
Present on validation errors only: maps each rejected field to its list of messages.
object
Example generated
{ "error": { "code": "example", "message": "example", "request_id": "example", "details": {} }}