Skip to content

Latest commit

 

History

History
50 lines (45 loc) · 774 Bytes

README.md

File metadata and controls

50 lines (45 loc) · 774 Bytes

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