HTTP

Send a GET request to an endpoint and provide the result to this bot.

Options

Counter allows you to specify URL of an endpoint it's going to receive answer from, as well as specifying response lifetime (cache) in seconds. Data path is a path to get the desired value when the response's content type is JSON, the syntax is similar to one used by JS to access properties and array items.

For more information on how to use this counter, refer to More on complex counters.

Example usage

You can discover more APIs to use here.

Air quality endpoint using IQAir (free, api key after signing up).

https://api.airvisual.com/v2/city?city=Los%20Angeles&state=California&country=USA&key={{YOUR_API_KEY}}

Last updated