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 090053Z 36004KT 10SM FEW120 SCT200 BKN250 17/10 A3017 RMK AO2 SLP212 T01720100 $
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.