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 092353Z 18015G25KT 10SM FEW085 37/16 A2988 RMK AO2 SLP107 T03670156 10383 20350 56015 $
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.