The coolest tricks you can do with cURL

Here is a collection of crazy things you can do with cURL.

Get weather reports

curl http://wttr.in/London

image-20240130114605387

Find your external identifier (IP address etc.)

curl ipinfo.io

image-20240130115306018

To get just the IP address, you can also use curl ifconfig.me.

Get a random number

curl "https://www.random.org/integers/?num=1&min=1&max=100&col=1&base=10&format=plain&rnd=new"

prints a random number, like 50 to the console output. You can change the parameters above like min, max, etc, as they are self-explanatory.

Get a cheatsheet

curl https://cht.sh

returns a dashboard with available cheatsheets:

image-20240130115946396

For instance, typing https://cheat.sh/ls returns:

image-20240130120054096

Generate a QR code

curl qrenco.de/12345

where 12345 is the value you want to embed in the code.

image-20240130120214682

Define a word

curl dict.org/d:artificial |less

prints definition for the word “artificial”:

image-20240130120421836

Get cryptocurrency rates

curl rate.sx

image-20240130120659714

Watch useless animation

curl ascii.live/nyan

Have more tricks? Add below in comments ;)


To contact me, send an email anytime or leave a comment below.