The USA Cities Info API provides structured access to comprehensive demographic and population statistics for key urban areas in the U.S. It processes data fields such as city name, state, population figures for 2020 and 2024, percentage change in population, population density per square mile, total area in square miles, and city classification. This API is ideal for urban planning, research, and data-driven applications.
[{"states":[{"state":"California","abbreviation":"CA"},{"state":"Texas","abbreviation":"TX"},{"state":"Florida","abbreviation":"FL"},{"state":"New York","abbreviation":"NY"},{"state":"Pennsylvania","abbreviation":"PA"},{"state":"Illinois","abbreviation":"IL"},{"state":"Ohio","abbreviation":"OH"},{"state":"Georgia","abbreviation":"GA"},{"state":"North Carolina","abbreviation":"NC"},{"state":"Michigan","abbreviation":"MI"},{"state":"New Jersey","abbreviation":"NJ"},{"state":"Virginia","abbreviation":"VA"},{"state":"Washington","abbreviation":"WA"},{"state":"Arizona","abbreviation":"AZ"},{"state":"Tennessee","abbreviation":"TN"},{"state":"Massachusetts","abbreviation":"MA"},{"state":"Indiana","abbreviation":"IN"},{"state":"Missouri","abbreviation":"MO"},{"state":"Maryland","abbreviation":"MD"},{"state":"Wisconsin","abbreviation":"WI"},{"state":"Colorado","abbreviation":"CO"},{"state":"Minnesota","abbreviation":"MN"},{"state":"South Carolina","abbreviation":"SC"},{"state":"Alabama","abbreviation":"AL"},{"state":"Louisiana","abbreviation":"LA"},{"state":"Kentucky","abbreviation":"KY"},{"state":"Oregon","abbreviation":"OR"},{"state":"Oklahoma","abbreviation":"OK"},{"state":"Connecticut","abbreviation":"CT"},{"state":"Utah","abbreviation":"UT"},{"state":"Iowa","abbreviation":"IA"},{"state":"Nevada","abbreviation":"NV"},{"state":"Arkansas","abbreviation":"AR"},{"state":"Kansas","abbreviation":"KS"},{"state":"Mississippi","abbreviation":"MS"},{"state":"New Mexico","abbreviation":"NM"},{"state":"Idaho","abbreviation":"ID"},{"state":"Nebraska","abbreviation":"NE"},{"state":"West Virginia","abbreviation":"WV"},{"state":"Hawaii","abbreviation":"HI"},{"state":"New Hampshire","abbreviation":"NH"},{"state":"Maine","abbreviation":"ME"},{"state":"Montana","abbreviation":"MT"},{"state":"Rhode Island","abbreviation":"RI"},{"state":"Delaware","abbreviation":"DE"},{"state":"South Dakota","abbreviation":"SD"},{"state":"North Dakota","abbreviation":"ND"},{"state":"Alaska","abbreviation":"AK"},{"state":"Vermont","abbreviation":"VT"},{"state":"Wyoming","abbreviation":"WY"}]}]
curl --location --request POST 'https://zylalabs.com/api/6063/usa+cities+info+api/8211/get+usa+states+list' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json' --data-raw '{}'
[{"state":"New York","cities":["New York City","Buffalo","Yonkers","Rochester","Syracuse","Albany"]}]
curl --location --request POST 'https://zylalabs.com/api/6063/usa+cities+info+api/8212/get+usa+cities+by+state' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json' --data-raw '{"state":"Required"}'
[{"City":"New York City","Rank":1,"State":"New York","2024 Pop":8097282,"2020 Pop":8740292,"Change":-1.95}]
curl --location --request POST 'https://zylalabs.com/api/6063/usa+cities+info+api/8213/obtain+population+data+by+city' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json' --data-raw '{"city":"Required"}'
[{"density":"26,950","area":"300.5","type":"City"}]
curl --location --request POST 'https://zylalabs.com/api/6063/usa+cities+info+api/8214/get+usa+city+details' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json' --data-raw '{"city":"Required"}'
| Header | Description |
|---|---|
Authorization
|
[Required] Should be Bearer access_key. See "Your API Access Key" above when you are subscribed. |
No long-term commitment. Upgrade, downgrade, or cancel anytime. Free Trial includes up to 50 requests.
The USA Cities Info API provides detailed population data and demographic insights for major cities in the U.S., including population figures for 2020 and 2024, percentage change in population, population density per square mile, total area in square miles, and city classification.
You can use the USA Cities Info API for urban planning by accessing comprehensive demographic statistics that help analyze population trends, density metrics, and city classifications, allowing for informed decision-making in urban development and resource allocation.
Key features of the USA Cities Info API include structured access to population statistics, demographic insights, the ability to track population trends over time, and metrics such as population density and total area, making it suitable for research and data-driven applications.
Yes, the USA Cities Info API includes population figures for both 2020 and 2024, ensuring that users have access to the most current demographic information available for major U.S. cities.
Each endpoint returns specific demographic and population data. The "get USA states list" returns state names and abbreviations. The "get USA Cities by state" provides major cities for a specified state. The "obtain population data by city" returns population figures and changes for a city, while the "get USA city details" offers demographic details like density and area.
Key fields include "state" and "abbreviation" in the states list, "cities" in the cities by state response, "City," "Rank," "2024 Pop," "2020 Pop," and "Change" in the population data, and "density," "area," and "type" in city details.
The response data is structured in JSON format. Each endpoint returns an array of objects, with each object containing relevant fields. For example, the population data includes city-specific metrics, while the states list provides state names and abbreviations in a nested structure.
The "get USA Cities by state" and "obtain population data by city" endpoints require a state or city parameter, respectively. Users must specify valid U.S. state names or city names obtained from previous endpoints to retrieve accurate data.
The "get USA states list" provides state names and abbreviations. The "get USA Cities by state" returns major cities for a specified state. The "obtain population data by city" offers population figures and changes, while the "get USA city details" includes demographic metrics like density and area.
Users can analyze population trends, compare city demographics, and assess urban density using the returned data. For instance, urban planners can use population changes to forecast resource needs, while researchers can study demographic shifts over time.
Typical use cases include urban planning, demographic research, market analysis, and policy-making. For example, businesses can use population density data to identify potential locations for new stores, while researchers can analyze trends for academic studies.
Data accuracy is maintained through regular updates from reliable sources, such as census data and demographic studies. Quality checks are implemented to ensure the integrity of the data, allowing users to trust the information provided by the API.
To obtain your API key, you first need to sign in to your account and subscribe to the API you want to use. Once subscribed, go to your Profile, open the Subscription section, and select the specific API. Your API key will be available there and can be used to authenticate your requests.
You can’t switch APIs during the free trial. If you subscribe to a different API, your trial will end and the new subscription will start as a paid plan.
If you don’t cancel before the 7th day, your free trial will end automatically and your subscription will switch to a paid plan under the same plan you originally subscribed to, meaning you will be charged and gain access to the API calls included in that plan.
The free trial ends when you reach 50 API requests or after 7 days, whichever comes first.
No, the free trial is available only once, so we recommend using it on the API that interests you the most. Most of our APIs offer a free trial, but some may not include this option.
Yes, we offer a 7-day free trial that allows you to make up to 50 API calls at no cost, so you can test our APIs without any commitment.
Zyla API Hub is like a big store for APIs, where you can find thousands of them all in one place. We also offer dedicated support and real-time monitoring of all APIs. Once you sign up, you can pick and choose which APIs you want to use. Just remember, each API needs its own subscription. But if you subscribe to multiple ones, you'll use the same key for all of them, making things easier for you.
Service Level:
100%
Response Time:
2,553ms
Service Level:
100%
Response Time:
4,111ms
Service Level:
100%
Response Time:
368ms
Service Level:
100%
Response Time:
321ms
Service Level:
100%
Response Time:
598ms
Service Level:
100%
Response Time:
1,480ms
Service Level:
100%
Response Time:
544ms
Service Level:
100%
Response Time:
544ms
Service Level:
100%
Response Time:
479ms
Service Level:
100%
Response Time:
80ms
Service Level:
100%
Response Time:
2,530ms
Service Level:
100%
Response Time:
2,719ms
Service Level:
100%
Response Time:
2,850ms
Service Level:
100%
Response Time:
3,374ms
Service Level:
100%
Response Time:
3,651ms
Service Level:
100%
Response Time:
2,463ms
Service Level:
100%
Response Time:
4,304ms
Service Level:
50%
Response Time:
5,391ms
Service Level:
100%
Response Time:
2,265ms
Service Level:
100%
Response Time:
3,817ms