The US Cities Data API specializes in delivering detailed population statistics and demographic information for major urban areas across the United States. It processes various data fields including city name, state, population figures for the years 2020 and 2024, percentage change in population, population density per square mile, total area in square miles, and city type.
{"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/6024/us+cities+data+api/8107/get+us+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/6024/us+cities+data+api/8108/get+us+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/6024/us+cities+data+api/8109/get+population+data+by+city' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json' --data-raw '{"city":"Required"}'
[{"City":"New York City","Density (\/mi\u00b2)":26950,"Area (mi\u00b2)":300.5,"Type":"City"}]
curl --location --request POST 'https://zylalabs.com/api/6024/us+cities+data+api/8110/get+us+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 US Cities Data API provides comprehensive population data and statistics for the largest cities in the United States, including demographic changes, population figures for the years 2020 and 2024, percentage change in population, population density per square mile, total area in square miles, and city type.
To access population statistics for a specific city, you can make a request to the API using the city name and state as parameters. The API will return detailed demographic information for that city.
The percentage change in population data indicates how much the population of a city has increased or decreased over a specified period, which can help in analyzing demographic trends and urban growth.
Yes, the US Cities Data API provides data on population density per square mile and total area in square miles for each city, allowing users to understand the spatial distribution and urban planning aspects of the cities.
The US Cities Data API provides comprehensive population data and statistics for major cities in the United States, including 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 type.
Each endpoint returns specific data types: the states list endpoint returns state names and abbreviations; the cities by state endpoint returns major cities for a specified state; the population data endpoint provides population figures and changes for a city; and the city details endpoint offers demographic metrics like density and area.
Key fields include "state" and "abbreviation" for the states list; "state" and "cities" for cities by state; "City," "Rank," "2024 Pop," "2020 Pop," and "Change" for population data; and "City," "Density (\/mi²)," "Area (mi²)," and "Type" for city details.
The states list endpoint requires no parameters. The cities by state and population data endpoints require a specific state or city name, respectively, while the city details endpoint also requires a city name to retrieve demographic information.
Response data is organized in JSON format. For example, the states list returns an array of state objects, while the population data returns a single object with city-specific metrics, making it easy to parse and utilize in applications.
Typical use cases include urban planning, demographic analysis, market research, and academic studies. Users can analyze population trends, compare city metrics, or visualize demographic changes over time using the provided data.
Data accuracy is maintained through regular updates from reliable sources, such as census data and demographic studies. Quality checks ensure that the information is current and reflects real-world changes in population and demographics.
Users can customize requests by specifying parameters such as state or city names when calling the relevant endpoints. This allows for targeted data retrieval based on specific geographic interests.
Standard data patterns include consistent naming conventions for cities and states, structured population figures, and clear demographic metrics. Users can expect to see trends in population changes and density metrics across different cities.
Please have a look at our Refund Policy: https://zylalabs.com/terms#refund
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,557ms
Service Level:
100%
Response Time:
4,111ms
Service Level:
100%
Response Time:
8,001ms
Service Level:
100%
Response Time:
368ms
Service Level:
100%
Response Time:
321ms
Service Level:
100%
Response Time:
544ms
Service Level:
100%
Response Time:
598ms
Service Level:
100%
Response Time:
2,489ms
Service Level:
100%
Response Time:
381ms
Service Level:
100%
Response Time:
70ms
Service Level:
100%
Response Time:
799ms
Service Level:
100%
Response Time:
252ms
Service Level:
100%
Response Time:
50ms
Service Level:
100%
Response Time:
159ms
Service Level:
100%
Response Time:
143ms
Service Level:
100%
Response Time:
749ms
Service Level:
100%
Response Time:
962ms
Service Level:
100%
Response Time:
811ms
Service Level:
100%
Response Time:
415ms
Service Level:
100%
Response Time:
744ms