all-about-apikey/iqair
Muhammad Daffa 2eba183f8b Added 13 templates 2022-08-18 14:40:21 +07:00
..
README.md Added 13 templates 2022-08-18 14:40:21 +07:00

README.md

IQAir

Description

Air quality and weather data

Example Request

  • Curl
curl "http://api.airvisual.com/v2/countries?key={{token}}"
  • Raw
GET /v2/countries?key={{token}} HTTP/1.1
Host: api.airvisual.com

Response

  • Success
{
    "status":"success",
    "data":[
        {"country":"Afghanistan"},
        {"country":"Albania"},
        {"country":"Algeria"},
        {"country":"Andorra"},
        {"country":"Angola"}
        ...
    ]
}
  • Error
{
    "status":"fail",
    "data":{
        "message":"Forbidden"
    }
}

Regex

[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}

Example API key

abcd1234-abcd-1234-abcd-abcd1234abcd