Índice de Calidad del Aire API

Esta API recuperará el índice de calidad del aire actual, histórico y pronosticado de cualquier ubicación en el mundo.

Acerca de la API:

Un índice de calidad del aire (AQI) es utilizado por las agencias gubernamentales para comunicar al público cuán contaminado está actualmente el aire o cuán contaminado se prevé que se convierta. La información del AQI se obtiene promediando las lecturas de un sensor de calidad del aire, que puede aumentar debido al tráfico vehicular, incendios forestales o cualquier cosa que pueda aumentar la contaminación del aire. Los contaminantes analizados incluyen ozono, dióxido de nitrógeno y dióxido de azufre, entre otros.

Los riesgos para la salud pública aumentan a medida que sube el AQI, afectando especialmente a los niños, los ancianos y las personas con problemas respiratorios o cardiovasculares. Durante estos períodos, los organismos gubernamentales generalmente alientan a las personas a reducir la actividad física al aire libre, o incluso a evitar salir por completo.

Esta API te proporcionará el AQI de cualquier lugar del mundo.

 

¿Qué recibe tu API y qué proporciona (entrada/salida)?

Simplemente pasa las  coordenadas de la ubicación de la que deseas obtener su AQI. 

Recibe datos como:

  • AQI.
  • Concentración de O3 en la superficie
  • Concentración de SO2 en la superficie
  • La concentración de material particulado < 2.5 micrones
  • Más...

 

¿Cuáles son los casos de uso más comunes de esta API?

El beneficio clave de usar un AQI es la capacidad de comunicar datos al público, de manera fácil y conveniente. El AQI puede desmitificar los datos: no necesitas ser un experto para entender los valores del AQI; son fácilmente escalables y codificados por colores; no hay necesidad de entender unidades y concentraciones. A menudo, los datos se comunican en relación con un estándar, pero este enfoque asume que las personas entienden que no existen límites seguros para las concentraciones y que solo porque las concentraciones estén por debajo de una guía no significa que no haya impactos en la salud.

Transformar tus datos en algo que el público pueda entender es realmente valioso; mantienes tu conjunto de datos tradicional, y con un esfuerzo y cálculo mínimos puedes presentarlo en una forma comprensible y reconocible para todos.

Los cálculos del AQI son muy sencillos; a menudo son tan simples como evaluar en qué rango de valores se encuentra una concentración. En consecuencia, son muy fáciles de mostrar en sitios web o en tiempo real en una pantalla. Dado que muchos AQI se calculan en función de la concentración del contaminante más alto, puedes calcular un AQI usando un solo contaminante; así que si tu red de sitios tiene un poco de variación, no es un problema: aún puedes crear un AQI útil a partir de los datos que tienes.

 

¿Existen limitaciones en tus planes?

Además del número de llamadas a la API por mes, hay una limitación de 25 llamadas por día en los planes GRATIS, BÁSICO y PRO. 

Documentación de la API

Endpoints


Recuperar la calidad del aire actual de una ciudad o estado. 



                                                                            
GET https://zylalabs.com/api/761/air+quality+index+api/2942/current+air+quality
                                                                            
                                                                        

Calidad del aire actual. - Características del Endpoint

Objeto Descripción
country [Requerido]
state [Requerido]
city [Requerido]
Probar Endpoint

RESPUESTA DE EJEMPLO DE LA API

       
                                                                                                        
                                                                                                                                                                                                                            {"status":200,"success":true,"date":"2023-10-25","AirQuality":{"AirPollutionLevel":"Good","AirQualityIndex":"28 US AQI","MainPollutant":"PM2.5"},"Pollutants":{"PM25":{"Concentration":"6.8\u00b5g\/m\u00b3"},"PM10":{"Concentration":"29.3\u00b5g\/m\u00b3"}}}
                                                                                                                                                                                                                    
                                                                                                    

Current Air Quality - CÓDIGOS DE EJEMPLO


curl --location --request GET 'https://zylalabs.com/api/761/air+quality+index+api/2942/current+air+quality?country=usa&state=new york&city=new york' --header 'Authorization: Bearer YOUR_API_KEY' 


    

Recuperar un estado pronosticado para la Calidad del Aire de una ubicación dada. 



                                                                            
GET https://zylalabs.com/api/761/air+quality+index+api/2943/air+quality+forecast
                                                                            
                                                                        

Pronóstico de Calidad del Aire. - Características del Endpoint

Objeto Descripción
country [Requerido]
state [Requerido]
city [Requerido]
Probar Endpoint

RESPUESTA DE EJEMPLO DE LA API

       
                                                                                                        
                                                                                                                                                                                                                            {"status":200,"success":true,"data":{"Sunday, Oct 22":{"PollutionLevel":"Good","AQI":"49","Weather":{"Temperature":"82.4\u00b0  77\u00b0","Wind":"Wind rotating 65 degree 13.4 mp\/h"}},"Monday, Oct 23":{"PollutionLevel":"Good","AQI":"35","Weather":{"Temperature":"78.8\u00b0  78.8\u00b0","Wind":"Wind rotating 58 degree 22.4 mp\/h"}},"Tuesday, Oct 24":{"PollutionLevel":"Good","AQI":"27","Weather":{"Temperature":"80.6\u00b0  77\u00b0","Wind":"Wind rotating 70 degree 20.1 mp\/h"}},"Today":{"PollutionLevel":"Good","AQI":"28","Weather":{"Temperature":"80.6\u00b0  77\u00b0","Wind":"Wind rotating 66 degree 20.1 mp\/h"}},"Thursday, Oct 26":{"PollutionLevel":"Good","AQI":"7","Weather":{"Temperature":"80.6\u00b0  77\u00b0","Wind":"Wind rotating 68 degree 17.9 mp\/h"}},"Friday, Oct 27":{"PollutionLevel":"Good","AQI":"13","Weather":{"Temperature":"82.4\u00b0  78.8\u00b0","Wind":"Wind rotating 67 degree 17.9 mp\/h"}},"Saturday, Oct 28":{"PollutionLevel":"Good","AQI":"15","Weather":{"Temperature":"80.6\u00b0  77\u00b0","Wind":"Wind rotating 61 degree 15.7 mp\/h"}},"Sunday, Oct 29":{"PollutionLevel":"Good","AQI":"24","Weather":{"Temperature":"80.6\u00b0  77\u00b0","Wind":"Wind rotating 67 degree 13.4 mp\/h"}},"Monday, Oct 30":{"PollutionLevel":"Moderate","AQI":"68","Weather":{"Temperature":"80.6\u00b0  78.8\u00b0","Wind":"Wind rotating 47 degree 15.7 mp\/h"}}}}
                                                                                                                                                                                                                    
                                                                                                    

Air Quality Forecast - CÓDIGOS DE EJEMPLO


curl --location --request GET 'https://zylalabs.com/api/761/air+quality+index+api/2943/air+quality+forecast?country=usa&state=florida&city=miami' --header 'Authorization: Bearer YOUR_API_KEY' 


    

Clave de Acceso a la API y Autenticación

Después de registrarte, a cada desarrollador se le asigna una clave de acceso a la API personal, una combinación única de letras y dígitos proporcionada para acceder a nuestro endpoint de la API. Para autenticarte con el Índice de Calidad del Aire API simplemente incluye tu token de portador en el encabezado de Autorización.
Encabezados
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.

Precios Simples y Transparentes

Sin compromiso a largo plazo. Mejora, reduce o cancela en cualquier momento. La Prueba Gratuita incluye hasta 50 solicitudes.

🚀 PLAN CORPORATIVO A MEDIDA

Comienza en
$ 10.000/Año


  • Volumen Personalizado
  • Límite de solicitudes personalizado
  • Soporte al Cliente Especializado
  • Monitoreo de API en Tiempo Real

Funciones favoritas de los clientes

  • ✔︎ Paga Solo por Solicitudes Exitosas
  • ✔︎ Prueba Gratuita de 7 Días
  • ✔︎ Soporte Multilenguaje
  • ✔︎ Una Clave API, Todas las APIs.
  • ✔︎ Panel de Control Intuitivo
  • ✔︎ Manejo de Errores Integral
  • ✔︎ Documentación Amigable para Desarrolladores
  • ✔︎ Integración con Postman
  • ✔︎ Conexiones HTTPS Seguras
  • ✔︎ Tiempo de Actividad Fiable

Índice de Calidad del Aire API FAQs

El endpoint "GET Current Air Quality" devuelve el AQI actual, el principal contaminante y las concentraciones de PM2.5 y PM10. El endpoint "GET Air Quality Forecast" proporciona el AQI pronosticado, los niveles de contaminación y las condiciones climáticas como la temperatura y el viento.

Los campos clave incluyen "Índice de Calidad del Aire," "Contaminante Principal," "Concentración de PM2.5," y "Temperatura del Clima." Estos campos ayudan a los usuarios a comprender la calidad del aire actual y las condiciones pronosticadas.

Los datos de respuesta están estructurados en formato JSON, con un indicador de "estado" y "éxito" en el nivel superior, seguido de secciones de datos específicas para la calidad del aire y los contaminantes, lo que facilita su análisis y uso.

El endpoint "GET Current Air Quality" proporciona datos en tiempo real del AQI y las concentraciones de contaminantes, mientras que el endpoint "GET Air Quality Forecast" ofrece predicciones futuras del AQI y datos meteorológicos asociados.

La API agrega datos de varios sensores de calidad del aire y estaciones de monitoreo en todo el mundo, asegurando una visión integral de la calidad del aire en diferentes regiones.

Los usuarios pueden personalizar las solicitudes especificando coordenadas geográficas (latitud y longitud) para recuperar datos de AQI para cualquier ubicación deseada a nivel mundial.

Los casos de uso típicos incluyen avisos de salud pública, monitoreo ambiental y seguimiento de la salud personal, lo que permite a los usuarios tomar decisiones informadas sobre actividades al aire libre basadas en la calidad del aire.

Si la API devuelve resultados parciales o vacíos, los usuarios deben verificar la precisión de los parámetros de entrada y asegurarse de que la ubicación solicitada tenga datos de calidad del aire disponibles.

General FAQs

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.


APIs Relacionadas


También te puede interesar