Get demographics for a list of regions
const url = 'https://app-api.landinsights.co/api/public/v1/markets-stats/demographics/query/';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"resolution":"county","regions":[8023,8003,8109]}'};
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/demographics/query/ \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "resolution": "county", "regions": [ 8023, 8003, 8109 ] }'Returns demographics for up to 50 counties, ZIP codes, or states in one call. Each result has the region’s identity and a demographics object with population, age, family, housing, income, education, employment, and race and ethnicity figures. They come from the Census Bureau’s American Community Survey and annual population estimates, and from IRS tax return data. data_years gives the year each source covers.
The figures describe the whole region, so there is no acreage range to set. For listing and sales statistics, use query_market_stats.
Cost: 5 tokens per region returned. Regions with no demographic data are listed in no_data and not billed. Unknown codes return 400 (0 tokens).
Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ”Demographics for a list of regions.
object
What kind of regions regions lists: ‘county’ for 5-digit county FIPS codes, ‘zip’ for 5-digit ZIP codes, ‘state’ for two-letter state codes.
county- Counties, identified by 5-digit FIPS code.zip- ZIP codes.state- States, identified by two-letter code.
County FIPS codes, ZIP codes, or two-letter state codes, per resolution. Up to 50 per call; a code listed twice is returned (and billed) once.
Examples
Three Colorado counties
{ "resolution": "county", "regions": [ 8023, 8003, 8109 ]}Two ZIP codes
{ "resolution": "zip", "regions": [ "81133", "81152" ]}Two states
{ "resolution": "state", "regions": [ "CO", "NM" ]}Responses
Section titled “ Responses ”Demographics for the requested regions.
object
county- Counties, identified by 5-digit FIPS code.zip- ZIP codes.state- States, identified by two-letter code.
The year each data source covers.
object
Last year of the Census Bureau American Community Survey 5-year estimates (2024 means the 2020 to 2024 survey). Every figure comes from this survey except those listed under irs_tax_returns and population_estimates.
Tax year of the IRS return data behind demo_self_employed and demo_farmer.
Latest year of the Census Bureau annual population estimates behind demo_pop_change_1yr, demo_pop_change_3yr and demo_pop_change_5yr.
One entry per requested region that has demographic data, in request order.
One region’s demographics.
object
Internal region identifier.
Region type: ‘county’, ‘zip’ or ‘state’.
county- Whole county.zip- Single ZIP code.state- Whole state.
County name (when type=‘county’), ZIP code (when type=‘zip’) or state name (when type=‘state’).
Two-letter US state code (e.g., ‘CA’).
Primary county name. For ZIP regions, the county the ZIP falls into. Empty for states.
5-digit county FIPS code. Empty for ZIP codes and states.
Demographic figures for the region. A figure is null when the source does not publish it for that region.
object
Population: Total population (ACS 5-year estimate).
Population Density: People per square mile of land area.
Population Growth 1yr: Percent change in total population over the past year, from Census annual population estimates. Counties and states only.
Population Growth 3yr: Percent change in total population over the past 3 years, from Census annual population estimates. Counties and states only.
Population Growth 5yr: Percent change in total population over the past 5 years, from Census annual population estimates. Counties and states only.
Median Age: Median age in years.
Population Under Age 10: Share of the population under 10. A percentage from 0 to 100.
Ages 10 to 19: Share of the population aged 10 to 19. A percentage from 0 to 100.
Ages 20 to 29: Share of the population aged 20 to 29. A percentage from 0 to 100.
Ages 30 to 39: Share of the population aged 30 to 39. A percentage from 0 to 100.
Ages 40 to 49: Share of the population aged 40 to 49. A percentage from 0 to 100.
Ages 50 to 59: Share of the population aged 50 to 59. A percentage from 0 to 100.
Ages 60 to 69: Share of the population aged 60 to 69. A percentage from 0 to 100.
Ages 70 to 79: Share of the population aged 70 to 79. A percentage from 0 to 100.
Over Age 80: Share of the population aged 80 and over. A percentage from 0 to 100.
Over Age 65: Share of the population aged 65 and over. A percentage from 0 to 100.
Ages 18 to 24: Share of the population aged 18 to 24. A percentage from 0 to 100.
Adult Population Over Age 18: Share of the population aged 18 and over. A percentage from 0 to 100.
Male Population: Share of the population that is male. A percentage from 0 to 100.
Female Population: Share of the population that is female. A percentage from 0 to 100.
Married Population: Share of the population 15 and over who are married (not separated). A percentage from 0 to 100.
Divorced Population: Share of the population 15 and over who are divorced. A percentage from 0 to 100.
Never-Married Population: Share of the population 15 and over who have never married. A percentage from 0 to 100.
Widowed Population: Share of the population 15 and over who are widowed. A percentage from 0 to 100.
Average Family Size: Average number of people per family.
Dual-Income Families: Share of families with two or more earners. A percentage from 0 to 100.
Occupied Housing Units: Occupied housing units.
Homeownership Rate: Share of occupied housing units that are owner-occupied. A percentage from 0 to 100.
Median Household Income: Median household income. In US dollars. The source caps this figure: 250001 means $250,000 or more, and 2499 means less than $2,500.
Under $10,000: Share of households with income under $10,000. A percentage from 0 to 100.
$10,000 to $15,000: Share of households with income of $10,000 to $14,999. A percentage from 0 to 100.
$15,000 to $20,000: Share of households with income of $15,000 to $19,999. A percentage from 0 to 100.
$20,000 to $25,000: Share of households with income of $20,000 to $24,999. A percentage from 0 to 100.
$25,000 to $35,000: Share of households with income of $25,000 to $34,999. A percentage from 0 to 100.
$35,000 to $50,000: Share of households with income of $35,000 to $49,999. A percentage from 0 to 100.
$50,000 to $75,000: Share of households with income of $50,000 to $74,999. A percentage from 0 to 100.
$75,000 to $100,000: Share of households with income of $75,000 to $99,999. A percentage from 0 to 100.
$100,000 to $150,000: Share of households with income of $100,000 to $149,999. A percentage from 0 to 100.
Over $150,000: Share of households with income of $150,000 or more. A percentage from 0 to 100.
Six-Figure Income: Share of households with income of $100,000 or more. A percentage from 0 to 100.
Median Individual Income: Median income of people 15 and over with income. In US dollars. The source caps this figure: 250001 means $250,000 or more, and 2499 means less than $2,500.
Median Home Value: Median value of owner-occupied housing units. In US dollars. The source caps this figure: 2000001 means $2,000,000 or more, and 9999 means less than $10,000.
Median Rent: Median gross rent of occupied units paying rent. In US dollars. The source caps this figure: 3501 means $3,500 or more, and 99 means less than $100.
Median Rent Burden: Median gross rent as a percentage of household income. A percentage from 0 to 100. The source caps this figure: 51 means 50% or more, and 9 means less than 10%.
Less Than a High School Education: Share of the population 25 and over without a high school diploma. A percentage from 0 to 100.
High School Diploma: Share of the population 25 and over whose highest attainment is a high school diploma or equivalent. A percentage from 0 to 100.
Some College Education: Share of the population 25 and over with some college or an associate’s degree. A percentage from 0 to 100.
Bachelor’s Degree: Share of the population 25 and over whose highest degree is a bachelor’s. A percentage from 0 to 100.
Graduate Degree: Share of the population 25 and over with a graduate or professional degree. A percentage from 0 to 100.
College Degree or Higher: Share of the population 25 and over with a bachelor’s degree or higher. A percentage from 0 to 100.
College Graduates With a STEM Degree: Share of bachelor’s degree holders whose degree is in a science, engineering or related field. A percentage from 0 to 100.
Labor Force Participation Rate: Share of the population 16 and over in the labor force. A percentage from 0 to 100.
Unemployment Rate: Unemployed share of the civilian labor force. A percentage from 0 to 100.
Self-Employment Income Returns: Share of IRS tax returns reporting self-employment tax. A percentage from 0 to 100.
Farm Income Returns: Share of IRS tax returns reporting farm income. A percentage from 0 to 100.
White Population: Share of the population reporting one race: White. A percentage from 0 to 100.
Black or African American Population: Share of the population reporting one race: Black or African American. A percentage from 0 to 100.
Asian Population: Share of the population reporting one race: Asian. A percentage from 0 to 100.
American Indian or Alaska Native Population: Share of the population reporting one race: American Indian or Alaska Native. A percentage from 0 to 100.
Native Hawaiian or Pacific Islander Population: Share of the population reporting one race: Native Hawaiian or Other Pacific Islander. A percentage from 0 to 100.
Population Reporting Another Race: Share of the population reporting some other single race. A percentage from 0 to 100.
Multiracial Population: Share of the population reporting two or more races. A percentage from 0 to 100.
Hispanic Population: Share of the population that is Hispanic or Latino, of any race. A percentage from 0 to 100.
Population With a Disability: Share of the civilian noninstitutionalized population with a disability. A percentage from 0 to 100.
Below the Federal Poverty Level: Share of all people with income below the federal poverty level. A percentage from 0 to 100.
Limited English Proficiency: Share of the population 5 and over who speak English less than very well. A percentage from 0 to 100.
Mean Commute Time: Mean travel time to work, in minutes, for workers 16 and over.
Uninsured Population: Share of the civilian noninstitutionalized population without health insurance. A percentage from 0 to 100.
Veteran Status: Share of the civilian population 18 and over who are veterans. A percentage from 0 to 100.
Requested codes that have no demographic data, such as ZIP codes the Census Bureau does not report on. These are not billed.
Examples
County demographics
{ "resolution": "county", "data_years": { "census_survey": 2024, "irs_tax_returns": 2022, "population_estimates": 2025 }, "results": [ { "id": "5f3c8e7a-9b1d-4e2c-8f3a-1d2e3f4a5b6c", "type": "county", "name": "Costilla", "state": "CO", "county_name": "Costilla", "fips": 8023, "demographics": { "demo_population": 3607, "demo_density": 2.94, "demo_pop_change_1yr": 0.16, "demo_pop_change_5yr": 5.14, "demo_median_age": 50.5, "demo_age_over_65": 28.5, "demo_housing_units": 1651, "demo_home_ownership": 79, "demo_income_household_median": 36861, "demo_home_value": 184700, "demo_rent_median": 927, "demo_edu_college_or_above": 24.9, "demo_unemployment_rate": 3.5, "demo_poverty": 21 } } ], "no_data": []}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": {} }}Demographics 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": {} }}