Skip to content

Instantly share code, notes, and snippets.

@gstf
Last active January 2, 2022 11:48
Show Gist options
  • Save gstf/9682165 to your computer and use it in GitHub Desktop.
Save gstf/9682165 to your computer and use it in GitHub Desktop.
CLI script to upload image to imgur.com. (Please don't abuse the API key, create your own at http://api.imgur.com/)
#!/bin/sh
curl -X POST -H "Authorization: Client-ID 0db8b3c3e10d89b" -F "image=@$1" https://api.imgur.com/3/upload \
| jq '.data.link' \
| tr -d '"' \
| pbcopy
@crangsten
Copy link

Thanks for the great information.
It was really helpful for me.
I also made my blog from your help.
https://www.anandnawal.com

@vizvasrj
Copy link

vizvasrj commented Jan 2, 2022

Why did you leave your api key here ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment