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 250353Z 17009KT 10SM CLR 29/20 A2996 RMK AO2 SLP134 T02940200 $
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.