The US Quality Of Life API delivers structured data from World Population Review’s "Quality of Life by State" dataset, offering a reliable and accessible way to explore and analyze the quality of life across the 50 U.S. states. Each metric—such as healthcare, education, economy, and public safety—is exposed through dedicated endpoints, allowing users to request data for a specific state or rank states based on individual metrics. This API is useful for developers building applications in social research, policy analysis, regional planning, and public health.
{"states":["Massachusetts","Florida","New Jersey","Utah","New Hampshire","Idaho","Pennsylvania","Wisconsin","New York","Wyoming","Virginia","Iowa","Minnesota","Maine","Montana","Illinois","North Dakota","South Dakota","Vermont","Kansas","Colorado","Connecticut","North Carolina","Nebraska","Georgia","Maryland","Indiana","Rhode Island","California","Ohio","Missouri","Michigan","Tennessee","Delaware","Washington","Texas","Kentucky","Alabama","Hawaii","West Virginia","Arizona","Oregon","South Carolina","Oklahoma","Mississippi","Nevada","Alaska","Arkansas","New Mexico","Louisiana"]}
curl --location --request POST 'https://zylalabs.com/api/6729/us+quality+of+life+api/10046/us+states' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json' --data-raw '{}'
{"state":"Florida","quality_of_life_rank":4}
curl --location --request POST 'https://zylalabs.com/api/6729/us+quality+of+life+api/10047/get+quality+of+life+rank+by+state' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json' --data-raw '{"state":"Required"}'
{"state":"Florida","economy_rank":11}
curl --location --request POST 'https://zylalabs.com/api/6729/us+quality+of+life+api/10048/get+economy+rank+by+state' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json' --data-raw '{"state":"Required"}'
{"state":"Florida","educational_rank":24,"health_rank":10}
curl --location --request POST 'https://zylalabs.com/api/6729/us+quality+of+life+api/10049/get+educational+and+health+rank+by+state' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json' --data-raw '{"state":"Required"}'
{"state":"Florida","safety_rank":10}
curl --location --request POST 'https://zylalabs.com/api/6729/us+quality+of+life+api/10050/get+safety+rank+by+state' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json' --data-raw '{"state":"Required"}'
{"state":"Florida","quality_of_life_total_score":59.8}
curl --location --request POST 'https://zylalabs.com/api/6729/us+quality+of+life+api/10051/get+quality+of+life+total+score+by+state' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json' --data-raw '{"state":"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 Quality Of Life API provides data on various quality of life metrics across U.S. states, including healthcare, education rankings, economy, and public safety.
You can request data for a specific state by using the dedicated endpoint for that state, which allows you to retrieve metrics related to quality of life for the chosen state.
Yes, the API allows you to rank states based on individual metrics, enabling you to compare different states' quality of life across various categories.
Developers, researchers, policymakers, and public health officials can benefit from this API for applications in social research, policy analysis, regional planning, and public health initiatives.
Each endpoint returns specific quality of life metrics for U.S. states. For example, the "get quality of life rank by state" endpoint returns the quality of life rank, while the "get economy rank by state" endpoint provides the economy score for the specified state.
Key fields in the response data include "state," "quality_of_life_rank," "economy_rank," "educational_rank," "health_rank," "safety_rank," and "quality_of_life_total_score," depending on the endpoint used.
The response data is structured in JSON format, with each response containing the state name and the corresponding metric value. For example, a response from the "get safety rank by state" endpoint includes the state and its safety rank.
Each endpoint provides distinct information: the "us states" endpoint lists all states, while others provide specific rankings for quality of life, economy, education, health, and safety for a given state.
The primary parameter required is the state name, which must be specified when using endpoints like "get quality of life rank by state" or "get economy rank by state" to retrieve relevant data.
Typical use cases include comparing states for relocation decisions, analyzing regional disparities in quality of life, and informing policy decisions in areas like public health and education.
The data is sourced from the World Population Review’s "Quality of Life by State" dataset, which undergoes regular updates and quality checks to ensure accuracy and reliability.
Users can leverage the returned data to create visualizations, generate reports, or integrate it into applications that require insights into quality of life metrics across different states.
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:
3,471ms
Service Level:
100%
Response Time:
238ms
Service Level:
100%
Response Time:
1,000ms
Service Level:
100%
Response Time:
991ms
Service Level:
100%
Response Time:
423ms
Service Level:
100%
Response Time:
1,075ms
Service Level:
100%
Response Time:
1,045ms
Service Level:
100%
Response Time:
443ms
Service Level:
100%
Response Time:
1,069ms
Service Level:
100%
Response Time:
868ms
Service Level:
100%
Response Time:
67ms
Service Level:
100%
Response Time:
12,889ms
Service Level:
100%
Response Time:
801ms
Service Level:
100%
Response Time:
219ms
Service Level:
100%
Response Time:
11,787ms
Service Level:
100%
Response Time:
338ms
Service Level:
100%
Response Time:
73ms
Service Level:
100%
Response Time:
1,241ms
Service Level:
100%
Response Time:
799ms
Service Level:
100%
Response Time:
134ms