County Data LookupCounty Data Lookup

Token Usage:5 per call

County Data is a simple tool for getting data about US counties. It returns information such as average income, area, and more based on the county name provided.

This API provides reliable and fast access to county data lookup data through a simple REST interface. Built for developers who need consistent, high-quality results with minimal setup time.

To use this API, you need an API key. You can get one by creating a free account and visiting your dashboard.

View API in Directory

Endpoint

GET Request
GET https://api.apiverve.com/v1/countydata

Code Examples

Here are examples of how to call this API in different programming languages:

cURL Request
curl -X GET \
  "https://api.apiverve.com/v1/countydata?county=Jackson&state=MO" \
  -H "X-API-Key: your_api_key_here"
JavaScript (Fetch API)
const response = await fetch('https://api.apiverve.com/v1/countydata', {
  method: 'GET',
  headers: {
    'X-API-Key': 'your_api_key_here',
    'Content-Type': 'application/json'
  }
});

const data = await response.json();
console.log(data);
Python (Requests)
import requests

headers = {
    'X-API-Key': 'your_api_key_here',
    'Content-Type': 'application/json'
}

response = requests.get('https://api.apiverve.com/v1/countydata', headers=headers)

data = response.json()
print(data)
Node.js (Native HTTPS)
const https = require('https');
const url = require('url');

const options = {
  method: 'GET',
  headers: {
    'X-API-Key': 'your_api_key_here',
    'Content-Type': 'application/json'
  }
};

const req = https.request('https://api.apiverve.com/v1/countydata', options, (res) => {
  let data = '';
  res.on('data', (chunk) => data += chunk);
  res.on('end', () => console.log(JSON.parse(data)));
});

req.end();
PHP (cURL)
<?php

$ch = curl_init();

curl_setopt($ch, CURLOPT_URL, 'https://api.apiverve.com/v1/countydata');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'X-API-Key: your_api_key_here',
    'Content-Type: application/json'
]);

$response = curl_exec($ch);
curl_close($ch);

$data = json_decode($response, true);
print_r($data);

?>
Go (net/http)
package main

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

)

func main() {
    req, _ := http.NewRequest("GET", "https://api.apiverve.com/v1/countydata", nil)

    req.Header.Set("X-API-Key", "your_api_key_here")
    req.Header.Set("Content-Type", "application/json")

    client := &http.Client{}
    resp, err := client.Do(req)
    if err != nil {
        panic(err)
    }
    defer resp.Body.Close()

    body, _ := io.ReadAll(resp.Body)
    fmt.Println(string(body))
}
Ruby (Net::HTTP)
require 'net/http'
require 'json'

uri = URI('https://api.apiverve.com/v1/countydata')
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true

request = Net::HTTP::Get.new(uri)
request['X-API-Key'] = 'your_api_key_here'
request['Content-Type'] = 'application/json'

response = http.request(request)
puts JSON.pretty_generate(JSON.parse(response.body))

Authentication

This API requires authentication via API key. Include your API key in the request header:

Required Header
X-API-Key: your_api_key_here

GraphQL AccessBETA

Most APIVerve APIs support GraphQL queries, allowing you to combine multiple API calls into a single request and retrieve only the data you need. This powerful feature enables you to orchestrate complex data fetching with precise field selection.

Not all APIs support GraphQL. Check the API schema or test in the GraphQL Explorer to confirm availability for this specific endpoint.

Token Cost: GraphQL requests cost 1 token for orchestration, plus the standard token cost for each API called in your query. For example, querying 3 APIs in a single GraphQL request would cost 1 + 3 = 4 tokens total.

GraphQL Endpoint
POST https://api.apiverve.com/v1/graphql
GraphQL Query Example
query {
  countydata(
    input: { state: "MO", county: "Jackson" }
  ) {
    name
    state
    age
    male
    female
  }
}

Note: Authentication is handled via the x-api-key header in your GraphQL request, not as a query parameter.

Parameters

The following parameters are available for this API endpoint:

ParameterTypeRequiredLocationDescriptionExample
statestringYesqueryThe two letter name of the US state the county is in (e.g., MO)MO
countystringYesqueryThe name of the US county to get data about (e.g. Jackson)Jackson

Response

The API returns responses in JSON, XML, and YAML formats:

Example Responses

JSON Response
200 OK
{
  "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,
    "deaths": {
      "suicides": 106.71428571428571,
      "homicides": 115.42857142857143,
      "vehicle": 93,
      "firearmsuicides": 55.095238095238095
    },
    "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
  }
}
XML Response
200 OK
<Root>
  <status>ok</status>
  <error />
  <data>
    <name>jackson county</name>
    <state>MO</state>
    <age>
      <_x0030_-4>0.0644100874666257</_x0030_-4>
      <_x0035_-9>0.06532756955438819</_x0035_-9>
      <_x0031_0-14>0.065950603902357144</_x0031_0-14>
      <_x0031_5-19>0.05967616438434107</_x0031_5-19>
      <_x0032_0-24>0.059725950234064615</_x0032_0-24>
      <_x0032_5-29>0.081924749399369279</_x0032_5-29>
      <_x0033_0-34>0.075233531196524664</_x0033_0-34>
      <_x0033_5-39>0.06868029092005673</_x0033_5-39>
      <_x0034_0-44>0.058310609649066661</_x0034_0-44>
      <_x0034_5-49>0.058805623240603636</_x0034_5-49>
      <_x0035_0-54>0.05858087569042305</_x0035_0-54>
      <_x0035_5-59>0.0674783182624454</_x0035_5-59>
      <_x0036_0-64>0.062084377058111463</_x0036_0-64>
      <_x0036_5-69>0.05099777955110233</_x0036_5-69>
      <_x0037_0-74>0.038915465049622268</_x0037_0-74>
      <_x0037_5-79>0.026437708656052324</_x0037_5-79>
      <_x0038_0-84>0.017489057781457189</_x0038_0-84>
      <_x0038_5_x002B_>0.019971238003388282</_x0038_5_x002B_>
    </age>
    <male>339932</male>
    <female>363079</female>
    <deaths>
      <suicides>106.71428571428571</suicides>
      <homicides>115.42857142857143</homicides>
      <vehicle>93</vehicle>
      <firearmsuicides>55.095238095238095</firearmsuicides>
    </deaths>
    <health>
      <poorhealth>20.588989742</poorhealth>
      <physicallyunhealthydays>4.247736361</physicallyunhealthydays>
      <mentallyunhealthydays>4.8111015035</mentallyunhealthydays>
      <lowbirthweightpercent>9.1518749808</lowbirthweightpercent>
      <smokerspercent>20.957241772</smokerspercent>
      <obesitypercent>31.5</obesitypercent>
      <foodenvindex>7.5</foodenvindex>
      <physicallyinactivepercent>23.2</physicallyinactivepercent>
      <excessivedrinkingpercent>18.940103365</excessivedrinkingpercent>
      <alcoholimpaireddrivingdeaths>152</alcoholimpaireddrivingdeaths>
      <teenbirthrate>31.109351559</teenbirthrate>
      <uninsured>12.486314662</uninsured>
      <withannualmammogram>45</withannualmammogram>
      <vaccinated>51</vaccinated>
      <childreninpoverty>19.6</childreninpoverty>
      <_x0038_0thpercentileincome>108296</_x0038_0thpercentileincome>
      <_x0032_0thpercentileincome>23275</_x0032_0thpercentileincome>
      <childreninsingleparenthouseholds>33.224850811</childreninsingleparenthouseholds>
      <violentcrimerate>941.43198334</violentcrimerate>
      <averagedailypm25>9.1</averagedailypm25>
      <severehousingproblems>15.347550638</severehousingproblems>
      <drivealonetowork>83.470246386</drivealonetowork>
      <longcommutedrivesalone>33.7</longcommutedrivesalone>
    </health>
    <longitude>-94.347496655033936</longitude>
    <latitude>39.016701918102484</latitude>
    <education>
      <lessthanhighschool>9.4</lessthanhighschool>
      <highschool>28.3</highschool>
      <somecollege>30.7</somecollege>
      <bachelors>31.6</bachelors>
    </education>
    <zipcodes>64137</zipcodes>
    <zipcodes>64111</zipcodes>
    <zipcodes>64053</zipcodes>
    <zipcodes>64055</zipcodes>
    <zipcodes>64064</zipcodes>
    <zipcodes>64029</zipcodes>
    <zipcodes>64106</zipcodes>
    <zipcodes>64108</zipcodes>
    <zipcodes>64034</zipcodes>
    <zipcodes>64118</zipcodes>
    <zipcodes>64136</zipcodes>
    <zipcodes>64139</zipcodes>
    <zipcodes>64125</zipcodes>
    <zipcodes>64030</zipcodes>
    <zipcodes>64014</zipcodes>
    <zipcodes>64066</zipcodes>
    <zipcodes>64080</zipcodes>
    <zipcodes>64123</zipcodes>
    <zipcodes>64131</zipcodes>
    <zipcodes>64145</zipcodes>
    <zipcodes>64128</zipcodes>
    <zipcodes>64121</zipcodes>
    <zipcodes>64170</zipcodes>
    <zipcodes>64050</zipcodes>
    <zipcodes>64057</zipcodes>
    <zipcodes>64133</zipcodes>
    <zipcodes>64109</zipcodes>
    <zipcodes>64130</zipcodes>
    <zipcodes>64134</zipcodes>
    <zipcodes>64129</zipcodes>
    <zipcodes>64158</zipcodes>
    <zipcodes>64163</zipcodes>
    <zipcodes>64070</zipcodes>
    <zipcodes>64102</zipcodes>
    <zipcodes>64105</zipcodes>
    <zipcodes>64086</zipcodes>
    <zipcodes>64101</zipcodes>
    <zipcodes>64124</zipcodes>
    <zipcodes>64157</zipcodes>
    <zipcodes>64088</zipcodes>
    <zipcodes>64061</zipcodes>
    <zipcodes>64051</zipcodes>
    <zipcodes>64002</zipcodes>
    <zipcodes>64081</zipcodes>
    <zipcodes>64013</zipcodes>
    <zipcodes>64016</zipcodes>
    <zipcodes>64112</zipcodes>
    <zipcodes>64114</zipcodes>
    <zipcodes>64110</zipcodes>
    <zipcodes>64152</zipcodes>
    <zipcodes>64127</zipcodes>
    <zipcodes>64147</zipcodes>
    <zipcodes>64120</zipcodes>
    <zipcodes>64146</zipcodes>
    <zipcodes>64199</zipcodes>
    <zipcodes>64058</zipcodes>
    <zipcodes>64054</zipcodes>
    <zipcodes>64074</zipcodes>
    <zipcodes>64119</zipcodes>
    <zipcodes>64138</zipcodes>
    <zipcodes>64149</zipcodes>
    <zipcodes>64156</zipcodes>
    <zipcodes>64132</zipcodes>
    <zipcodes>64171</zipcodes>
    <zipcodes>64148</zipcodes>
    <zipcodes>64141</zipcodes>
    <zipcodes>64999</zipcodes>
    <zipcodes>64052</zipcodes>
    <zipcodes>64015</zipcodes>
    <zipcodes>64063</zipcodes>
    <zipcodes>64075</zipcodes>
    <zipcodes>64056</zipcodes>
    <zipcodes>64082</zipcodes>
    <zipcodes>64113</zipcodes>
    <zipcodes>64155</zipcodes>
    <zipcodes>64126</zipcodes>
    <zipcodes>64197</zipcodes>
    <zipcodes>64065</zipcodes>
    <zipcodes>64198</zipcodes>
    <lifeexpectancy>77.19</lifeexpectancy>
    <avgincome>47054</avgincome>
    <povertyrate>13.7</povertyrate>
    <costofliving>
      <livingwage>14.55</livingwage>
      <foodcosts>3246</foodcosts>
      <medicalcosts>2681</medicalcosts>
      <housingcosts>8136</housingcosts>
      <taxcosts>6263</taxcosts>
    </costofliving>
    <landareakm2>1565.601892</landareakm2>
    <areakm2>1596.319707</areakm2>
  </data>
</Root>
YAML Response
200 OK
status: ok
error: 
data:
  name: jackson county
  state: MO
  age:
    0-4: 0.0644100874666257
    5-9: 0.0653275695543882
    10-14: 0.0659506039023571
    15-19: 0.0596761643843411
    20-24: 0.0597259502340646
    25-29: 0.0819247493993693
    30-34: 0.0752335311965247
    35-39: 0.0686802909200567
    40-44: 0.0583106096490667
    45-49: 0.0588056232406036
    50-54: 0.0585808756904231
    55-59: 0.0674783182624454
    60-64: 0.0620843770581115
    65-69: 0.0509977795511023
    70-74: 0.0389154650496223
    75-79: 0.0264377086560523
    80-84: 0.0174890577814572
    85+: 0.0199712380033883
  male: 339932
  female: 363079
  deaths:
    suicides: 106.714285714286
    homicides: 115.428571428571
    vehicle: 93
    firearmsuicides: 55.0952380952381
  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.3474966550339
  latitude: 39.0167019181025
  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 Structure

All API responses follow a consistent structure with the following fields:

FieldTypeDescriptionExample
statusstringIndicates whether the request was successful ("ok") or failed ("error")ok
errorstring | nullContains error message if status is "error", otherwise nullnull
dataobject | nullContains the API response data if successful, otherwise null{...}

Response Data Fields

When the request is successful, the data object contains the following fields:

FieldTypeSample Value
namestring"jackson county"
statestring"MO"
ageobject{...}
age.0-4number0.0644100874666257
age.5-9number0.06532756955438819
age.10-14number0.06595060390235714
age.15-19number0.05967616438434107
age.20-24number0.059725950234064615
age.25-29number0.08192474939936928
age.30-34number0.07523353119652466
age.35-39number0.06868029092005673
age.40-44number0.05831060964906666
age.45-49number0.058805623240603636
age.50-54number0.05858087569042305
age.55-59number0.0674783182624454
age.60-64number0.06208437705811146
age.65-69number0.05099777955110233
age.70-74number0.03891546504962227
age.75-79number0.026437708656052324
age.80-84number0.01748905778145719

Headers

Required and optional headers for API requests:

Header NameRequiredExample ValueDescription
X-API-KeyYesyour_api_key_hereYour APIVerve API key. Found in your dashboard under API Keys.
AcceptNoapplication/jsonSpecify response format: application/json (default), application/xml, or application/yaml
User-AgentNoMyApp/1.0Identifies your application for analytics and debugging purposes
X-Request-IDNoreq_123456789Custom request identifier for tracking and debugging requests
Cache-ControlNono-cacheControl caching behavior for the request and response

Client Libraries

To get started with minimal code, most of our APIs are available through client libraries and clients:

Run in PostmanNPMPyPINuGetSwagger

Error Codes

The API uses standard HTTP status codes to indicate success or failure:

Status CodeMessageDescription
200OKRequest successful, data returned
400Bad RequestInvalid request parameters or malformed request
401UnauthorizedMissing or invalid API key
403ForbiddenAPI key does not have permission for this endpoint
429Too Many RequestsRate limit exceeded, please slow down requests
500Internal Server ErrorServer error, please try again later

What's Next?

Continue your journey with these recommended resources

Was this page helpful?

Help us improve our documentation