Skip to content

Get demographics for a list of regions

POST
/api/public/v1/markets-stats/demographics/query/
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).

Media type application/json

Demographics for a list of regions.

object
resolution
required

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.
string
Allowed values: county zip state
regions
required

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.

Array<string>
>= 1 items <= 50 items
Examples

Three Colorado counties

{
"resolution": "county",
"regions": [
8023,
8003,
8109
]
}
Media type application/json

Demographics for the requested regions.

object
resolution
required
  • county - Counties, identified by 5-digit FIPS code.
  • zip - ZIP codes.
  • state - States, identified by two-letter code.
string
Allowed values: county zip state
data_years
required

The year each data source covers.

object
census_survey
required

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.

integer
irs_tax_returns
required

Tax year of the IRS return data behind demo_self_employed and demo_farmer.

integer
population_estimates
required

Latest year of the Census Bureau annual population estimates behind demo_pop_change_1yr, demo_pop_change_3yr and demo_pop_change_5yr.

integer
results
required

One entry per requested region that has demographic data, in request order.

Array<object>

One region’s demographics.

object
id
required

Internal region identifier.

string format: uuid
type
required

Region type: ‘county’, ‘zip’ or ‘state’.

  • county - Whole county.
  • zip - Single ZIP code.
  • state - Whole state.
string
Allowed values: county zip state
name
required

County name (when type=‘county’), ZIP code (when type=‘zip’) or state name (when type=‘state’).

string
state
required

Two-letter US state code (e.g., ‘CA’).

string
county_name
required

Primary county name. For ZIP regions, the county the ZIP falls into. Empty for states.

string
fips
required

5-digit county FIPS code. Empty for ZIP codes and states.

string
nullable
demographics
required

Demographic figures for the region. A figure is null when the source does not publish it for that region.

object
demo_population
required

Population: Total population (ACS 5-year estimate).

integer
nullable
demo_density
required

Population Density: People per square mile of land area.

number format: double
nullable
demo_pop_change_1yr
required

Population Growth 1yr: Percent change in total population over the past year, from Census annual population estimates. Counties and states only.

number format: double
nullable
demo_pop_change_3yr
required

Population Growth 3yr: Percent change in total population over the past 3 years, from Census annual population estimates. Counties and states only.

number format: double
nullable
demo_pop_change_5yr
required

Population Growth 5yr: Percent change in total population over the past 5 years, from Census annual population estimates. Counties and states only.

number format: double
nullable
demo_median_age
required

Median Age: Median age in years.

number format: double
nullable
demo_age_under_10
required

Population Under Age 10: Share of the population under 10. A percentage from 0 to 100.

number format: double
nullable
demo_age_10_19
required

Ages 10 to 19: Share of the population aged 10 to 19. A percentage from 0 to 100.

number format: double
nullable
demo_age_20s
required

Ages 20 to 29: Share of the population aged 20 to 29. A percentage from 0 to 100.

number format: double
nullable
demo_age_30s
required

Ages 30 to 39: Share of the population aged 30 to 39. A percentage from 0 to 100.

number format: double
nullable
demo_age_40s
required

Ages 40 to 49: Share of the population aged 40 to 49. A percentage from 0 to 100.

number format: double
nullable
demo_age_50s
required

Ages 50 to 59: Share of the population aged 50 to 59. A percentage from 0 to 100.

number format: double
nullable
demo_age_60s
required

Ages 60 to 69: Share of the population aged 60 to 69. A percentage from 0 to 100.

number format: double
nullable
demo_age_70s
required

Ages 70 to 79: Share of the population aged 70 to 79. A percentage from 0 to 100.

number format: double
nullable
demo_age_over_80
required

Over Age 80: Share of the population aged 80 and over. A percentage from 0 to 100.

number format: double
nullable
demo_age_over_65
required

Over Age 65: Share of the population aged 65 and over. A percentage from 0 to 100.

number format: double
nullable
demo_age_18_24
required

Ages 18 to 24: Share of the population aged 18 to 24. A percentage from 0 to 100.

number format: double
nullable
demo_age_over_18
required

Adult Population Over Age 18: Share of the population aged 18 and over. A percentage from 0 to 100.

number format: double
nullable
demo_male
required

Male Population: Share of the population that is male. A percentage from 0 to 100.

number format: double
nullable
demo_female
required

Female Population: Share of the population that is female. A percentage from 0 to 100.

number format: double
nullable
demo_married
required

Married Population: Share of the population 15 and over who are married (not separated). A percentage from 0 to 100.

number format: double
nullable
demo_divorced
required

Divorced Population: Share of the population 15 and over who are divorced. A percentage from 0 to 100.

number format: double
nullable
demo_never_married
required

Never-Married Population: Share of the population 15 and over who have never married. A percentage from 0 to 100.

number format: double
nullable
demo_widowed
required

Widowed Population: Share of the population 15 and over who are widowed. A percentage from 0 to 100.

number format: double
nullable
demo_family_size
required

Average Family Size: Average number of people per family.

number format: double
nullable
demo_family_dual_income
required

Dual-Income Families: Share of families with two or more earners. A percentage from 0 to 100.

number format: double
nullable
demo_housing_units
required

Occupied Housing Units: Occupied housing units.

integer
nullable
demo_home_ownership
required

Homeownership Rate: Share of occupied housing units that are owner-occupied. A percentage from 0 to 100.

number format: double
nullable
demo_income_household_median
required

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.

number format: double
nullable
demo_income_under_10k
required

Under $10,000: Share of households with income under $10,000. A percentage from 0 to 100.

number format: double
nullable
demo_income_10_15k
required

$10,000 to $15,000: Share of households with income of $10,000 to $14,999. A percentage from 0 to 100.

number format: double
nullable
demo_income_15_20k
required

$15,000 to $20,000: Share of households with income of $15,000 to $19,999. A percentage from 0 to 100.

number format: double
nullable
demo_income_20_25k
required

$20,000 to $25,000: Share of households with income of $20,000 to $24,999. A percentage from 0 to 100.

number format: double
nullable
demo_income_25_35k
required

$25,000 to $35,000: Share of households with income of $25,000 to $34,999. A percentage from 0 to 100.

number format: double
nullable
demo_income_35_50k
required

$35,000 to $50,000: Share of households with income of $35,000 to $49,999. A percentage from 0 to 100.

number format: double
nullable
demo_income_50_75k
required

$50,000 to $75,000: Share of households with income of $50,000 to $74,999. A percentage from 0 to 100.

number format: double
nullable
demo_income_75_100k
required

$75,000 to $100,000: Share of households with income of $75,000 to $99,999. A percentage from 0 to 100.

number format: double
nullable
demo_income_100_150k
required

$100,000 to $150,000: Share of households with income of $100,000 to $149,999. A percentage from 0 to 100.

number format: double
nullable
demo_income_over_150k
required

Over $150,000: Share of households with income of $150,000 or more. A percentage from 0 to 100.

number format: double
nullable
demo_income_six_figure
required

Six-Figure Income: Share of households with income of $100,000 or more. A percentage from 0 to 100.

number format: double
nullable
demo_income_individual_median
required

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.

number format: double
nullable
demo_home_value
required

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.

number format: double
nullable
demo_rent_median
required

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.

number format: double
nullable
demo_rent_burden
required

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%.

number format: double
nullable
demo_edu_less_highschool
required

Less Than a High School Education: Share of the population 25 and over without a high school diploma. A percentage from 0 to 100.

number format: double
nullable
demo_edu_highschool
required

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.

number format: double
nullable
demo_edu_some_college
required

Some College Education: Share of the population 25 and over with some college or an associate’s degree. A percentage from 0 to 100.

number format: double
nullable
demo_edu_bachelors
required

Bachelor’s Degree: Share of the population 25 and over whose highest degree is a bachelor’s. A percentage from 0 to 100.

number format: double
nullable
demo_edu_graduate
required

Graduate Degree: Share of the population 25 and over with a graduate or professional degree. A percentage from 0 to 100.

number format: double
nullable
demo_edu_college_or_above
required

College Degree or Higher: Share of the population 25 and over with a bachelor’s degree or higher. A percentage from 0 to 100.

number format: double
nullable
demo_edu_stem
required

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.

number format: double
nullable
demo_labor_force_participation
required

Labor Force Participation Rate: Share of the population 16 and over in the labor force. A percentage from 0 to 100.

number format: double
nullable
demo_unemployment_rate
required

Unemployment Rate: Unemployed share of the civilian labor force. A percentage from 0 to 100.

number format: double
nullable
demo_self_employed
required

Self-Employment Income Returns: Share of IRS tax returns reporting self-employment tax. A percentage from 0 to 100.

number format: double
nullable
demo_farmer
required

Farm Income Returns: Share of IRS tax returns reporting farm income. A percentage from 0 to 100.

number format: double
nullable
demo_race_white
required

White Population: Share of the population reporting one race: White. A percentage from 0 to 100.

number format: double
nullable
demo_race_black
required

Black or African American Population: Share of the population reporting one race: Black or African American. A percentage from 0 to 100.

number format: double
nullable
demo_race_asian
required

Asian Population: Share of the population reporting one race: Asian. A percentage from 0 to 100.

number format: double
nullable
demo_race_native
required

American Indian or Alaska Native Population: Share of the population reporting one race: American Indian or Alaska Native. A percentage from 0 to 100.

number format: double
nullable
demo_race_pacific
required

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.

number format: double
nullable
demo_race_other
required

Population Reporting Another Race: Share of the population reporting some other single race. A percentage from 0 to 100.

number format: double
nullable
demo_race_multiple
required

Multiracial Population: Share of the population reporting two or more races. A percentage from 0 to 100.

number format: double
nullable
demo_hispanic
required

Hispanic Population: Share of the population that is Hispanic or Latino, of any race. A percentage from 0 to 100.

number format: double
nullable
demo_disabled
required

Population With a Disability: Share of the civilian noninstitutionalized population with a disability. A percentage from 0 to 100.

number format: double
nullable
demo_poverty
required

Below the Federal Poverty Level: Share of all people with income below the federal poverty level. A percentage from 0 to 100.

number format: double
nullable
demo_limited_english
required

Limited English Proficiency: Share of the population 5 and over who speak English less than very well. A percentage from 0 to 100.

number format: double
nullable
demo_commute_mean
required

Mean Commute Time: Mean travel time to work, in minutes, for workers 16 and over.

number format: double
nullable
demo_health_uninsured
required

Uninsured Population: Share of the civilian noninstitutionalized population without health insurance. A percentage from 0 to 100.

number format: double
nullable
demo_veteran
required

Veteran Status: Share of the civilian population 18 and over who are veterans. A percentage from 0 to 100.

number format: double
nullable
no_data
required

Requested codes that have no demographic data, such as ZIP codes the Census Bureau does not report on. These are not billed.

Array<string>
Examples
Example CountyDemographics

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.

Media type application/json
object
error
required
object
code
required

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.

string
message
required

Human-readable description of the error.

string
request_id
required

Echoes the request’s X-Request-Id (or a server-issued id). Quote it in support requests.

string
details

Present on validation errors only: maps each rejected field to its list of messages.

object
key
additional properties
any
Example generated
{
"error": {
"code": "example",
"message": "example",
"request_id": "example",
"details": {}
}
}

Missing or invalid credentials.

Media type application/json
object
error
required
object
code
required

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.

string
message
required

Human-readable description of the error.

string
request_id
required

Echoes the request’s X-Request-Id (or a server-issued id). Quote it in support requests.

string
details

Present on validation errors only: maps each rejected field to its list of messages.

object
key
additional properties
any
Example generated
{
"error": {
"code": "example",
"message": "example",
"request_id": "example",
"details": {}
}
}

A Pro subscription or higher API tier is required.

Media type application/json
object
error
required
object
code
required

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.

string
message
required

Human-readable description of the error.

string
request_id
required

Echoes the request’s X-Request-Id (or a server-issued id). Quote it in support requests.

string
details

Present on validation errors only: maps each rejected field to its list of messages.

object
key
additional properties
any
Example generated
{
"error": {
"code": "example",
"message": "example",
"request_id": "example",
"details": {}
}
}

Authenticated but not permitted.

Media type application/json
object
error
required
object
code
required

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.

string
message
required

Human-readable description of the error.

string
request_id
required

Echoes the request’s X-Request-Id (or a server-issued id). Quote it in support requests.

string
details

Present on validation errors only: maps each rejected field to its list of messages.

object
key
additional properties
any
Example generated
{
"error": {
"code": "example",
"message": "example",
"request_id": "example",
"details": {}
}
}

Resource not found.

Media type application/json
object
error
required
object
code
required

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.

string
message
required

Human-readable description of the error.

string
request_id
required

Echoes the request’s X-Request-Id (or a server-issued id). Quote it in support requests.

string
details

Present on validation errors only: maps each rejected field to its list of messages.

object
key
additional properties
any
Example generated
{
"error": {
"code": "example",
"message": "example",
"request_id": "example",
"details": {}
}
}

Rate limit exceeded.

Media type application/json
object
error
required
object
code
required

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.

string
message
required

Human-readable description of the error.

string
request_id
required

Echoes the request’s X-Request-Id (or a server-issued id). Quote it in support requests.

string
details

Present on validation errors only: maps each rejected field to its list of messages.

object
key
additional properties
any
Example generated
{
"error": {
"code": "example",
"message": "example",
"request_id": "example",
"details": {}
}
}

Internal error.

Media type application/json
object
error
required
object
code
required

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.

string
message
required

Human-readable description of the error.

string
request_id
required

Echoes the request’s X-Request-Id (or a server-issued id). Quote it in support requests.

string
details

Present on validation errors only: maps each rejected field to its list of messages.

object
key
additional properties
any
Example generated
{
"error": {
"code": "example",
"message": "example",
"request_id": "example",
"details": {}
}
}

Demographics temporarily unavailable; retry in a few seconds.

Media type application/json
object
error
required
object
code
required

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.

string
message
required

Human-readable description of the error.

string
request_id
required

Echoes the request’s X-Request-Id (or a server-issued id). Quote it in support requests.

string
details

Present on validation errors only: maps each rejected field to its list of messages.

object
key
additional properties
any
Example generated
{
"error": {
"code": "example",
"message": "example",
"request_id": "example",
"details": {}
}
}