Docs/APIs/County Data Lookup

County Data Lookup

Get data about US counties

OperationalCredits 5 per callp50 846msGeographyStar

Overview

County Data works by analyzing the county name provided and getting data about the US county. It uses advanced algorithms to get data such as average income, area, and more based on the county name and returns the county data.

Endpoint

One host, one path per API. The block below shows this call in four languages; every one of them is the same HTTP request. Making requests covers the timeouts, retries and parameter rules that apply to all of them. The SDKs wrap the same call in a typed client.

GEThttps://api.apiverve.com/v1/countydata
curl "https://api.apiverve.com/v1/countydata?state=MO&county=Jackson" \
  -H "x-api-key: your_api_key_here"
const res = await fetch('https://api.apiverve.com/v1/countydata?state=MO&county=Jackson', {
  headers: { 'x-api-key': 'your_api_key_here' },
});

if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);

const { data } = await res.json();
console.log(data);
import requests

res = requests.get(
    "https://api.apiverve.com/v1/countydata?state=MO&county=Jackson",
    headers={"x-api-key": "your_api_key_here"},
    timeout=15,
)
res.raise_for_status()

print(res.json()["data"])
package main

import (
	"fmt"
	"io"
	"net/http"
)

func main() {
	req, _ := http.NewRequest("GET", "https://api.apiverve.com/v1/countydata?state=MO&county=Jackson", nil)
	req.Header.Set("x-api-key", "your_api_key_here")

	res, err := http.DefaultClient.Do(req)
	if err != nil {
		panic(err)
	}
	defer res.Body.Close()

	out, _ := io.ReadAll(res.Body)
	fmt.Println(string(out))
}

Replace your_api_key_here with the key from your dashboard. When the inputs arrive as a list rather than one at a time, batch requests run up to 200 of them through this same API in a single call.

Authentication

Send your key in the x-api-key header. That is the only auth step — there is no token exchange and no per-endpoint scope to configure. Authentication covers creating, rotating and revoking keys.

401 is the only auth verdict

A 401 means the key is missing, invalid or expired. A 403 means the key is valid but not permitted here — blocked by a key restriction or an IP allow-list. Running out of credits is a 429.

Parameters

Sent in the query string. Premium parameters are accepted on every plan but only take effect on plans that include them.

ParameterTypeDescription
stateRequiredstringThe two letter name of the US state the county is in (e.g., MO)
length 2–2
countyRequiredstringThe name of the US county to get data about (e.g. Jackson)

Response

Every API returns the same three top-level keys, so one response handler covers your whole integration: status, error and data. Only data changes shape. Response format covers the envelope, the other output formats and how premium fields are withheld.

Sample response
{
  "status": "ok",
  "error": null,
  "data": {
    "name": "jackson county",
    "state": "MO",
    "age": {
      "0-4": 0.0644100874666257,
      "5-9": 0.06532756955438819,
      "10-14": 0.06595060390235714,
      "15-19": 0.05967616438434107,
      "20-24": 0.059725950234064615,
      "25-29": 0.08192474939936928,
      "30-34": 0.07523353119652466,
      "35-39": 0.06868029092005673,
      "40-44": 0.05831060964906666,
      "45-49": 0.058805623240603636,
      "50-54": 0.05858087569042305,
      "55-59": 0.0674783182624454,
      "60-64": 0.06208437705811146,
      "65-69": 0.05099777955110233,
      "70-74": 0.03891546504962227,
      "75-79": 0.026437708656052324,
      "80-84": 0.01748905778145719,
      "85+": 0.01997123800338828
    },
    "male": 339932,
    "female": 363079,
    "health": {
      "poorhealth": 20.588989742,
      "physicallyunhealthydays": 4.247736361,
      "mentallyunhealthydays": 4.8111015035,
      "lowbirthweightpercent": 9.1518749808,
      "smokerspercent": 20.957241772,
      "obesitypercent": 31.5,
      "foodenvindex": 7.5,
      "physicallyinactivepercent": 23.2,
      "excessivedrinkingpercent": 18.940103365,
      "alcoholimpaireddrivingdeaths": 152,
      "teenbirthrate": 31.109351559,
      "uninsured": 12.486314662,
      "withannualmammogram": 45,
      "vaccinated": 51,
      "childreninpoverty": 19.6,
      "80thpercentileincome": 108296,
      "20thpercentileincome": 23275,
      "childreninsingleparenthouseholds": 33.224850811,
      "violentcrimerate": 941.43198334,
      "averagedailypm25": 9.1,
      "severehousingproblems": 15.347550638,
      "drivealonetowork": 83.470246386,
      "longcommutedrivesalone": 33.7
    },
    "longitude": -94.34749665503394,
    "latitude": 39.016701918102484,
    "education": {
      "lessthanhighschool": 9.4,
      "highschool": 28.3,
      "somecollege": 30.7,
      "bachelors": 31.6
    },
    "zipcodes": [
      "64137",
      "64111",
      "64053",
      "64055",
      "64064",
      "64029",
      "64106",
      "64108",
      "64034",
      "64118",
      "64136",
      "64139",
      "64125",
      "64030",
      "64014",
      "64066",
      "64080",
      "64123",
      "64131",
      "64145",
      "64128",
      "64121",
      "64170",
      "64050",
      "64057",
      "64133",
      "64109",
      "64130",
      "64134",
      "64129",
      "64158",
      "64163",
      "64070",
      "64102",
      "64105",
      "64086",
      "64101",
      "64124",
      "64157",
      "64088",
      "64061",
      "64051",
      "64002",
      "64081",
      "64013",
      "64016",
      "64112",
      "64114",
      "64110",
      "64152",
      "64127",
      "64147",
      "64120",
      "64146",
      "64199",
      "64058",
      "64054",
      "64074",
      "64119",
      "64138",
      "64149",
      "64156",
      "64132",
      "64171",
      "64148",
      "64141",
      "64999",
      "64052",
      "64015",
      "64063",
      "64075",
      "64056",
      "64082",
      "64113",
      "64155",
      "64126",
      "64197",
      "64065",
      "64198"
    ],
    "lifeexpectancy": 77.19,
    "avgincome": 47054,
    "povertyrate": 13.7,
    "costofliving": {
      "livingwage": 14.55,
      "foodcosts": 3246,
      "medicalcosts": 2681,
      "housingcosts": 8136,
      "taxcosts": 6263
    },
    "landareakm2": 1565.601892,
    "areakm2": 1596.319707
  }
}

Response fields

Paths are relative to data. Premium fields are absent rather than zeroed on plans that do not include them, so check for presence instead of comparing to 0.

FieldTypeExampleDescription
namestring"jackson county"County name in lowercase format
statestring"MO"Two-letter state code where county is located
agePremiumobject{...}Age distribution percentages by age groups
0-4Premiumnumber0.0644100874666257Percentage of population aged 0-4 years
5-9Premiumnumber0.06532756955438819Percentage of population aged 5-9 years
10-14Premiumnumber0.06595060390235714Percentage of population aged 10-14 years
15-19Premiumnumber0.05967616438434107Percentage of population aged 15-19 years
20-24Premiumnumber0.059725950234064615Percentage of population aged 20-24 years
25-29Premiumnumber0.08192474939936928Percentage of population aged 25-29 years
30-34Premiumnumber0.07523353119652466Percentage of population aged 30-34 years
35-39Premiumnumber0.06868029092005673Percentage of population aged 35-39 years
40-44Premiumnumber0.05831060964906666Percentage of population aged 40-44 years
45-49Premiumnumber0.058805623240603636Percentage of population aged 45-49 years
50-54Premiumnumber0.05858087569042305Percentage of population aged 50-54 years
55-59Premiumnumber0.0674783182624454Percentage of population aged 55-59 years
60-64Premiumnumber0.06208437705811146Percentage of population aged 60-64 years
65-69Premiumnumber0.05099777955110233Percentage of population aged 65-69 years
70-74Premiumnumber0.03891546504962227Percentage of population aged 70-74 years
75-79Premiumnumber0.026437708656052324Percentage of population aged 75-79 years
80-84Premiumnumber0.01748905778145719Percentage of population aged 80-84 years
85+Premiumnumber0.01997123800338828Percentage of population aged 85 years and older
malePremiumnumber339932Total male population count in county
femalePremiumnumber363079Total female population count in county
healthPremiumobject{...}Health metrics and indicators for the county
poorhealthPremiumnumber20.588989742Percentage of population reporting poor health status
physicallyunhealthydaysPremiumnumber4.247736361Average physically unhealthy days per month
mentallyunhealthydaysPremiumnumber4.8111015035Average mentally unhealthy days per month
lowbirthweightpercentPremiumnumber9.1518749808Percentage of low birth weight births
smokerspercentPremiumnumber20.957241772Percentage of population that smokes
obesitypercentPremiumnumber31.5Percentage of population classified as obese
foodenvindexPremiumnumber7.5Food environment index rating for county
physicallyinactivepercentPremiumnumber23.2Percentage of physically inactive population
excessivedrinkingpercentPremiumnumber18.940103365Percentage of excessive alcohol drinkers
alcoholimpaireddrivingdeathsPremiumnumber152Annual alcohol-impaired driving deaths in county
teenbirthratePremiumnumber31.109351559Birth rate among teenage population
uninsuredPremiumnumber12.486314662Percentage of uninsured population
withannualmammogramPremiumnumber45Percentage receiving annual mammogram screening
vaccinatedPremiumnumber51Percentage of vaccinated population
childreninpovertyPremiumnumber19.6Percentage of children living in poverty
80thpercentileincomePremiumnumber10829680th percentile income level in dollars
20thpercentileincomePremiumnumber2327520th percentile income level in dollars
childreninsingleparenthouseholdsPremiumnumber33.224850811Percentage of children in single-parent households
violentcrimeratePremiumnumber941.43198334Violent crime rate per 100,000 people
averagedailypm25Premiumnumber9.1Average daily PM2.5 air pollution level
severehousingproblemsPremiumnumber15.347550638Percentage with severe housing cost burden
drivealonetoworkPremiumnumber83.470246386Percentage driving alone to work
longcommutedrivesalonePremiumnumber33.7Percentage with long commute driving alone
longitudePremiumnumber-94.34749665503394Geographic longitude coordinate of county
latitudePremiumnumber39.016701918102484Geographic latitude coordinate of county
educationPremiumobject{...}Educational attainment distribution for county
lessthanhighschoolPremiumnumber9.4Percentage with less than high school education
highschoolPremiumnumber28.3Percentage with high school education
somecollegePremiumnumber30.7Percentage with some college education
bachelorsPremiumnumber31.6Percentage with bachelor's degree or higher
zipcodesPremiumarray[64137, ...]Array of all ZIP codes within the county
lifeexpectancynumber77.19Average life expectancy in years
avgincomenumber47054Average annual household income in dollars
povertyratenumber13.7Percentage of population below poverty line
costoflivingPremiumobject{...}Cost of living metrics for the county
livingwagePremiumnumber14.55Living wage per hour in dollars
foodcostsPremiumnumber3246Average annual food costs in dollars
medicalcostsPremiumnumber2681Average annual medical costs in dollars
housingcostsPremiumnumber8136Average annual housing costs in dollars
taxcostsPremiumnumber6263Average annual tax costs in dollars
landareakm2Premiumnumber1565.601892Land area of county in square kilometers
areakm2Premiumnumber1596.319707Total area of county in square kilometers

Errors

Read the HTTP status first, then error for the specific reason. The body names the parameter that has to change. Error handling covers the full status list and which of them are worth retrying.

StatusMeaningWhat to do
400Input was rejectedRead error; it names the parameter.
401Key missing or invalidCheck the header name and the key value.
403Key valid, but not permittedA key restriction or IP allow-list; see key scoping.
429Rate limited, or out of creditsRead error to tell them apart; see rate limits.

Use cases

Demographics
Use the County Data API to get data about US counties for demographics. Use the data to analyze population, income, education, and more
Real Estate
Get data about US counties by using the County Data API for real estate. Use the data to analyze property values, market trends, and investment opportunities
Economic Development
Use the County Data API to get data about US counties for economic development. Use the data to identify growth areas, attract businesses, and create jobs
Research & Analysis
Get data about US counties by using the County Data API for research and analysis. Use the data to study trends, conduct studies, and make informed decisions

Other ways to use County Data Lookup

Set up County Data Lookup on APIVerve, or reach the same source a different way. Your APIVerve account and credits work on all of them — one key, one balance.

Give it to an AI agentConnect over MCP and your agent calls it as a native tool — Claude, Cursor, ChatGPT.VerveKitReference →
Use it in Google Sheets or ExcelA =VERVE() formula fills a column — no script, no export, recalculates in place.VerveSheetsReference →
Ground an agent on itA cited, machine-checkable fact your model can't produce on its own.VerveContextReference →

More in Geography:

Was this page helpful?