BOT
BOT is a specialized API endpoint that returns a plain text response instead of JSON.
It’s designed for integrations such as chatbots, live stream chat overlays, home automation systems, and other environments where JSON parsing is impractical or unnecessary.
Any application that requires a simple, single-line text response from a REST API—or cannot decode JSON—should use the BOT endpoint.
Authentication
BOT only accepts your API key as a query parameter as shown in the examples.
Plain Text Response
Example:
https://api.checkwx.com/v2/bot/metar/kdfw?x-api-key=YOUR_API_KEY
Response:
KDFW METAR 240053Z 19017G30KT 10SM BKN080TCU BKN120 BKN250 30/20 A3004 RMK AO2 PK WND 21030/0045 WSHFT 0031 SLP162 TCU SE-SW-NW T03000200
Nightbot Example
Nightbot is a chat bot for Twitch, YouTube, and Trovo that allows you to automate your live stream's chat.
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/v2/bot/metar/$(query)?x-api-key=YOUR_API_KEY)
Visit https://nightbot.tv for more information.