Recently, when I was trying to download a gif file from Giphy, I noticed that when I went directly to the file, https://media.giphy.com/media/14kdiJUblbWBXy/giphy.gif for example, that it was actually loading a web page instead of the gif file. 😞

I figured that they were probably detecting that based on who/where the request was coming from, so I tried downloading the gif file by running a cURL command:

curl https://media.giphy.com/media/KXgJsSeOfvSgg/giphy.gif --output ~/Desktop/download.gif

This resulted in the actual gif file that I wanted being placed on my Desktop as download.gif. 💪

If you landed here, then hopefully you’ll find this little workaround helpful. 😄

One thought on “How to download a gif from Giphy

  1. Thanks for this. I dont know why Giphy just doesn’t allow you to get a GIF file as need, instead they force another format. The command worked as expected.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.