Skip to content

Examples using CURL

Arjun Gadhia edited this page Feb 6, 2019 · 3 revisions

The curl commands allows you to get text from HTTP endpoints to output anything you like!

Here are some examples of how it can be used:

/yt!ds,curl(https://kboard-api.glitch.me/youtube/$0) An endpoint that searches the Youtube API, and returns the URL for the first video found.

/tweet!ds,curl(https://kboard-api.glitch.me/tweet/$0) An endpoint that gets a human-sounding tweet for the provided text.

/askreddit!ds,curl(https://kboard-api.glitch.me/reddit/AskReddit) Prints a random title from the trending posts on AskReddit (can be used with any subreddit)

/wolfram!ds,curl(https://api.wolframalpha.com/v1/result?appid=<APP_ID>&i=$0) Uses the Wolfram Short Answers API to retrieve answers to anything Wolfram Alpha can answer. (Requires API key, by registering on the API page. Note - the api key may take a while to be activated!)

/cat!curl(https://kboard-api.glitch.me/catfact) Outputs a cat fact from a Cat Fact API

/dad joke!curl(https://icanhazdadjoke.com/) Outputs a random lame joke.

Clone this wiki locally