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, first sign in to your account and navigate to the API you want to use. From the API's Pricing section, choose a plan and complete the subscription process. Once subscribed, return to the API page and you will see your API Access Key displayed at the top of the documentation page. You can use this key 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.
The free trial lasts for 7 days and allows you to make up to 50 API requests.
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. If the API offers a free trial, you will see a "Free 7-Day Trial" option in its Pricing section. The trial lasts for 7 days and allows up to 50 API requests, enabling you to evaluate the API before subscribing to a paid plan.
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.
You can monitor your API usage through the response headers included with every request:
x-zyla-api-calls-monthly-used: Shows the total number of API requests you have used during the current billing period.
x-zyla-api-calls-monthly-remaining: Shows the number of API requests you have remaining for the current billing period.
Yes, you can cancel your subscription at any time. Simply go to the Pricing section of the API you're subscribed to and click the "Unsubscribe" button.
Please note that upgrades, downgrades, and cancellations take effect immediately. Once your subscription is canceled, access to the service will end immediately, regardless of any remaining API calls in your quota.
Please have a look at our Refund Policy: https://zylalabs.com/terms#refund
Service Level:
100%
Response Time:
2,559ms
Service Level:
100%
Response Time:
4,111ms
Service Level:
100%
Response Time:
321ms
Service Level:
100%
Response Time:
368ms
Service Level:
100%
Response Time:
544ms
Service Level:
100%
Response Time:
3,413ms
Service Level:
100%
Response Time:
598ms
Service Level:
100%
Response Time:
1,480ms
Service Level:
100%
Response Time:
544ms
Service Level:
100%
Response Time:
479ms