{"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://pr213-testing.zylalabs.com/api/6020/us+state+population+data+api/8086/obtain+us+states' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json' --data-raw '{}'
{"state":"California","year":2024,"population":38889800}
curl --location --request POST 'https://pr213-testing.zylalabs.com/api/6020/us+state+population+data+api/8087/get+2024+population+data' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json' --data-raw '{"state":"Required"}'
{"state":"California","year":2020,"population":39503200,"change_rate":"-1.55%"}
curl --location --request POST 'https://pr213-testing.zylalabs.com/api/6020/us+state+population+data+api/8088/get+previous+population+by+state' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json' --data-raw '{"state":"Required","year":"Required"}'
{"population_density":250,"percent_of_us":11.58}
curl --location --request POST 'https://pr213-testing.zylalabs.com/api/6020/us+state+population+data+api/8089/get+population+density+metrics' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json' --data-raw '{"state":"Required"}'
After signing up, every developer is assigned a personal API access key, a unique combination of letters and digits provided to access to our API endpoint. To authenticate with the US State Population Data API simply include your bearer token in the Authorization header.
| 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.
(Save 2 months with annual billing 🎉)
Trusted by leading companies
The US State Population Data API provides detailed population statistics for all 50 US states, including current and historical population figures, growth rates, population ranks, and density metrics.
The population data is sourced from the US Census Bureau, ensuring high accuracy and reliability in the projections and statistics provided by the API.
The API's data response includes fields such as 'State,' 'Rank,' '2024 Pop,' '2023 Pop,' 'Change,' and 'Density (/mi²),' allowing users to easily access and integrate demographic information.
The API delivers data in standard JSON format, providing structured responses that can be easily integrated into applications for various demographic analysis and planning purposes.
The "obtain US states" endpoint returns a list of all U.S. states along with their abbreviations. This allows users to easily reference states in subsequent API calls.
Users can customize their requests by specifying the state name as a parameter when using the "get 2024 population data" or "get previous population by state" endpoints, allowing targeted data retrieval.
The response for population density metrics is structured as a JSON object containing fields like "population_density" and "percent_of_us," providing clear insights into a state's demographic standing.
Typical use cases include demographic analysis, urban planning, policy formulation, and academic research, where understanding population trends and densities is crucial for decision-making.
Data accuracy is maintained by sourcing information directly from the US Census Bureau, which conducts regular surveys and updates, ensuring the statistics reflect the most reliable demographic information.
The "get previous population by state" endpoint accepts the state name as a parameter, allowing users to retrieve population data for specific years, such as 2023 or 2020.
The response data is organized in JSON format, with each endpoint returning structured objects that include relevant fields, making it easy for users to parse and utilize the information.
The "get population density metrics" endpoint provides information on a state's population density and its percentage of the total U.S. population, offering insights into demographic distribution.
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