La API de Estadísticas de Contaminación Global es una API RESTful diseñada para proporcionar datos medioambientales centrados en los niveles de contaminación por país, obtenidos de conjuntos de datos globales como el Informe de Población Mundial. Permite a los usuarios recuperar una lista de países clasificados por niveles de contaminación y acceder a datos detallados sobre la contaminación de países individuales consultando con el nombre del país. La API permite una fácil integración en herramientas analíticas, paneles y recursos educativos que se centran en problemas medioambientales, sostenibilidad y salud.
{"countries":["Bangladesh","Pakistan","India","Tajikistan","Burkina Faso","Iraq","United Arab Emirates","Egypt","Nepal","DR Congo","Kuwait","Bahrain","Qatar","Indonesia","Rwanda","Zimbabwe","Kyrgyzstan","China","Ghana","Libya","Vietnam","Laos","Uzbekistan","Gambia","Myanmar","Senegal","Uganda","Ethiopia","Saudi Arabia","Armenia","North Macedonia","Zambia","Cameroon","Nigeria","Thailand","Cambodia","Malaysia","Mongolia","Kazakhstan","Madagascar","Serbia","Turkey","Taiwan","Mexico","South Africa","El Salvador","Sri Lanka","South Korea","Peru","Chile","Azerbaijan","Guatemala","Palestine","Israel","Greece","Guyana","Gabon","Albania","Ivory Coast","Georgia","Togo","Macau","Romania","Nicaragua","Moldova","Hong Kong","Maldives","Honduras","Italy","Slovenia","Cyprus","Colombia","Poland","Guinea","Croatia","Algeria","Philippines","Singapore","Bulgaria","Slovakia","Brazil","Bolivia","Hungary","Malta","Uruguay","Czech Republic","Kenya","Suriname","Lithuania","Canada","Russia","Spain","Japan","Austria","Panama","France","Belgium","Argentina","United States","Germany","Switzerland","Luxembourg","Netherlands","Ukraine","Belize","Latvia","Andorra","Angola","United Kingdom","Denmark","Ecuador","Anguilla","Liechtenstein","Jamaica","Portugal","Norway","Ireland","Costa Rica","Trinidad and Tobago","Bahamas","Sweden","Finland","Estonia","Australia","Puerto Rico","New Zealand","Grenada","Bermuda","Iceland","Mauritius","French Polynesia"]}
curl --location --request POST 'https://zylalabs.com/api/6560/global+pollution+stats+api/9565/get+all+countries+with+available+data' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json' --data-raw '{"continent":"Required"}'
{"country":"Argentina","average_pm25_concentration":9.2}
curl --location --request POST 'https://zylalabs.com/api/6560/global+pollution+stats+api/9566/get+pollution+data+by+country' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json' --data-raw '{"country":"Required"}'
[{"country":"Qatar","expected_pollution_index":106.1}]
curl --location --request POST 'https://zylalabs.com/api/6560/global+pollution+stats+api/9579/get+pollution+index+expectations+by+country' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json' --data-raw '{"country":"Required"}'
Encabezado | Descripción |
---|---|
Autorización
|
[Requerido] Debería ser Bearer access_key . Consulta "Tu Clave de Acceso a la API" arriba cuando estés suscrito. |
Sin compromiso a largo plazo. Mejora, reduce o cancela en cualquier momento. La Prueba Gratuita incluye hasta 50 solicitudes.
La API de Estadísticas de Contaminación Global proporciona datos completos sobre los niveles de contaminación del aire, centrando específicamente en las concentraciones de PM2.5 en diversos países.
Puedes recuperar datos de contaminación para un país específico consultando la API con el nombre del país, lo que devolverá estadísticas detalladas de contaminación para ese país.
Sí, los datos se obtienen de conjuntos de datos globales como el World Population Review, lo que garantiza que la información proporcionada sea confiable y precisa.
La API se puede integrar en herramientas analíticas, paneles de control y recursos educativos que se centran en cuestiones ambientales, sostenibilidad y salud, lo que la hace útil para investigadores, responsables de políticas y educadores.
El endpoint "obtener todos los países con datos disponibles" devuelve una lista de países incluidos en el conjunto de datos de contaminación. El endpoint "obtener datos de contaminación por país" proporciona estadísticas específicas de contaminación, incluida la concentración promedio de PM2.5 para el país consultado.
La respuesta del endpoint "obtener todos los países" incluye un campo "países", que es un arreglo de nombres de países. El endpoint "obtener datos de contaminación por país" devuelve los campos "país" y "concentración_media_pm25", que indican el nombre del país y su nivel promedio de PM2.5.
Los datos de respuesta están estructurados en formato JSON. Para la lista de países, es un objeto con un array de "countries". Para los datos de contaminación, es un objeto que contiene el nombre del "country" y su correspondiente valor de "average_pm25_concentration".
El primer endpoint proporciona una lista completa de países con datos de contaminación. El segundo endpoint ofrece estadísticas de contaminación detalladas, centrándose específicamente en las concentraciones de PM2.5 para países individuales, lo que permite un análisis ambiental específico.
Los usuarios pueden personalizar sus solicitudes especificando el nombre del país al usar el endpoint "obtener datos de contaminación por país". Esto permite realizar consultas adaptadas para recuperar estadísticas de contaminación específicas relevantes para sus necesidades.
Los datos provienen de bases de datos globales de buena reputación, incluido el Informe Mundial sobre la Población. Esto asegura que las estadísticas de contaminación proporcionadas sean confiables y reflejen condiciones ambientales precisas.
Los casos de uso típicos incluyen la investigación ambiental, la formulación de políticas, las evaluaciones de salud pública y los proyectos educativos. Los usuarios pueden analizar las tendencias de contaminación, comparar países e informar estrategias para la sostenibilidad y la mejora de la salud.
Los usuarios pueden integrar los datos devueltos en herramientas analíticas y paneles para visualizar tendencias de contaminación, realizar estudios comparativos o desarrollar contenido educativo. El formato JSON estructurado permite un fácil análisis y procesamiento en varios entornos de programación.
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.
Prices are listed in USD (United States Dollar), EUR (Euro), CAD (Canadian Dollar), AUD (Australian Dollar), and GBP (British Pound). We accept all major debit and credit cards. Our payment system uses the latest security technology and is powered by Stripe, one of the world's most reliable payment companies. If you have any trouble paying by card, just contact us at [email protected]
Additionally, if you already have an active subscription in any of these currencies (USD, EUR, CAD, AUD, GBP), that currency will remain for subsequent subscriptions. You can change the currency at any time as long as you don't have any active subscriptions.
The local currency shown on the pricing page is based on the country of your IP address and is provided for reference only. The actual prices are in USD (United States Dollar). When you make a payment, the charge will appear on your card statement in USD, even if you see the equivalent amount in your local currency on our website. This means you cannot pay directly with your local currency.
Occasionally, a bank may decline the charge due to its fraud protection settings. We suggest reaching out to your bank initially to check if they are blocking our charges. Also, you can access the Billing Portal and change the card associated to make the payment. If these does not work and you need further assistance, please contact our team at [email protected]
Prices are determined by a recurring monthly or yearly subscription, depending on the chosen plan.
API calls are deducted from your plan based on successful requests. Each plan comes with a specific number of calls that you can make per month. Only successful calls, indicated by a Status 200 response, will be counted against your total. This ensures that failed or incomplete requests do not impact your monthly quota.
Zyla API Hub works on a recurring monthly subscription system. Your billing cycle will start the day you purchase one of the paid plans, and it will renew the same day of the next month. So be aware to cancel your subscription beforehand if you want to avoid future charges.
To upgrade your current subscription plan, simply go to the pricing page of the API and select the plan you want to upgrade to. The upgrade will be instant, allowing you to immediately enjoy the features of the new plan. Please note that any remaining calls from your previous plan will not be carried over to the new plan, so be aware of this when upgrading. You will be charged the full amount of the new plan.
To check how many API calls you have left for the current month, refer to the 'X-Zyla-API-Calls-Monthly-Remaining' field in the response header. For example, if your plan allows 1.000 requests per month and you've used 100, this field in the response header will indicate 900 remaining calls.
To see the maximum number of API requests your plan allows, check the 'X-Zyla-RateLimit-Limit' response header. For instance, if your plan includes 1.000 requests per month, this header will display 1.000.
The 'X-Zyla-RateLimit-Reset' header shows the number of seconds until your rate limit resets. This tells you when your request count will start fresh. For example, if it displays 3.600, it means 3.600 seconds are left until the limit resets.
Yes, you can cancel your plan anytime by going to your account and selecting the cancellation option on the Billing page. Please note that upgrades, downgrades, and cancellations take effect immediately. Additionally, upon cancellation, you will no longer have access to the service, even if you have remaining calls left in your quota.
You can contact us through our chat channel to receive immediate assistance. We are always online from 8 am to 5 pm (EST). If you reach us after that time, we will get back to you as soon as possible. Additionally, you can contact us via email at [email protected]
To give you the opportunity to experience our APIs without any commitment, we offer a 7-day free trial that allows you to make up to 50 API calls at no cost. This trial can be used only once, so we recommend applying it to the API that interests you the most. While most of our APIs offer a free trial, some may not. The trial concludes after 7 days or once you've made 50 requests, whichever occurs first. If you reach the 50 request limit during the trial, you will need to "Start Your Paid Plan" to continue making requests. You can find the "Start Your Paid Plan" button in your profile under Subscription -> Choose the API you are subscribed to -> Pricing tab. Alternatively, if you don't cancel your subscription before the 7th day, your free trial will end, and your plan will automatically be billed, granting you access to all the API calls specified in your plan. Please keep this in mind to avoid unwanted charges.
After 7 days, you will be charged the full amount for the plan you were subscribed to during the trial. Therefore, it's important to cancel before the trial period ends. Refund requests for forgetting to cancel on time are not accepted.
When you subscribe to an API free trial, you can make up to 50 API calls. If you wish to make additional API calls beyond this limit, the API will prompt you to perform an "Start Your Paid Plan." You can find the "Start Your Paid Plan" button in your profile under Subscription -> Choose the API you are subscribed to -> Pricing tab.
Payout Orders are processed between the 20th and the 30th of each month. If you submit your request before the 20th, your payment will be processed within this timeframe.
Nivel de Servicio:
100%
Tiempo de Respuesta:
490,99ms
Nivel de Servicio:
100%
Tiempo de Respuesta:
0ms
Nivel de Servicio:
100%
Tiempo de Respuesta:
600,97ms
Nivel de Servicio:
90%
Tiempo de Respuesta:
980,59ms
Nivel de Servicio:
100%
Tiempo de Respuesta:
1.139,76ms
Nivel de Servicio:
100%
Tiempo de Respuesta:
427,44ms
Nivel de Servicio:
100%
Tiempo de Respuesta:
316,98ms
Nivel de Servicio:
100%
Tiempo de Respuesta:
125,44ms
Nivel de Servicio:
100%
Tiempo de Respuesta:
1.352,65ms
Nivel de Servicio:
100%
Tiempo de Respuesta:
1.068,81ms
Nivel de Servicio:
100%
Tiempo de Respuesta:
1.119,03ms
Nivel de Servicio:
100%
Tiempo de Respuesta:
1.114,57ms
Nivel de Servicio:
100%
Tiempo de Respuesta:
639,94ms
Nivel de Servicio:
100%
Tiempo de Respuesta:
2.074,45ms
Nivel de Servicio:
100%
Tiempo de Respuesta:
639,79ms
Nivel de Servicio:
100%
Tiempo de Respuesta:
527,39ms
Nivel de Servicio:
100%
Tiempo de Respuesta:
1.061,35ms
Nivel de Servicio:
100%
Tiempo de Respuesta:
1.479,75ms
Nivel de Servicio:
100%
Tiempo de Respuesta:
202,99ms
Nivel de Servicio:
100%
Tiempo de Respuesta:
0ms