BOT
BOT is a special endpoint, designed to return a plain TEXT response rather than JSON.
This API endpoint can be used for Chatbots, Live Stream Chats, Home Automation, etc.
Any application that cannot decode JSON or just needs a single line of TEXT returned from a REST API should use this endpoint.
BOT will only accept your API Key as a querystring parameter.
METAR Response
KPIE 011057Z 00000KT 5SM BR SCT010 SCT060 17/17 A3019 RMK AO2 T01720172
TAF Response
KPIE 011123Z 0112/0212 VRB02KT 1/4SM FG BKN004 BKN060 TEMPO 0112/0114 1SM BR BKN008 FM011500 20005KT P6SM BKN050 BKN250
Nightbot Example
Nightbot is a chat bot for Twitch, YouTube, and Trovo that allows you to automate your live stream's chat. Visit Nightbot
Adding the following command to Nightbot will allow a user to type !metar {icao} into chat to get the current METAR.
Nightbot Setup
!command add !metar $(urlfetch https://api.checkwx.com/bot/metar/$(querystring)?x-api-key=)
bot/metar/:icao
Returns the latest METAR for a single ICAO code.
# Single ICAO
$ curl "https://api.checkwx.com/bot/metar/KJFK?x-api-key="
URL Parameters | Description | |
---|---|---|
icao | A single ICAO code. Multiple ICAO codes are not allowed for this endpoint. |
Required |
bot/taf/:icao
Returns the latest TAF for a single ICAO code.
# Single ICAO
$ curl "https://api.checkwx.com/bot/taf/KJFK?x-api-key="
URL Parameters | Description | |
---|---|---|
icao | A single ICAO code. Multiple ICAO codes are not allowed for this endpoint. |
Required |