Air Quality Index API
The free global air quality index (AQI) api service
FREE
API Docs (4 results)
Error Code
By city name
By geographic coordinates
By IP address
Search by name
By city name
https://global.juheapi.com/aqi/v1/city
json
POST
https://global.juheapi.com/aqi/v1/city?q=beijing&apikey=xxxx
Call by city/station name or id

JUHEAPI Explorer - API testing tools

JUHEAPI Explorer allows you to call an API through its web interface , and view the entire process

Test
Request Parameter
NameMandatoryTypeDescription
apikey yes string the API KEY
q yes string Name of the city or station , for example: beijing london
Request Example
CURL
curl -i -k "https://global.juheapi.com/aqi/v1/city?q=beijing&apikey=xxxx"
Return Parameter
NameTypeDescription
code string the error code
msg string the response description
data array the data
city string City Name or Station Name
aqi string The AQI value
co string The Co value
no2 string The No2 value
o3 string The O3 value
pm10 string The pm10 value
pm25 string The pm25 value
so2 string The SO2 value
Return Example
JSON
{ "code": "0", "msg": "success", "data": { "city": "Dongcheng Dongsi, Beijing (东城东四)", "aqi": "117", "co": "4.6", "no2": "14.7", "o3": "10.6", "pm10": "44", "pm25": "117", "so2": "2.6", "geo": { "lat": "39.929", "lon": "116.417" } }