Search and download GIFs from Tenor using curl. No dependencies beyond curl and jq. Useful for finding reaction GIFs, creating visual content, and sending GIFs in chat.
1.0.0
Hermes Agent
MIT
hermes
tags
GIF
Media
Search
Tenor
API
GIF Search (Tenor API)
Search and download GIFs directly via the Tenor API using curl. No extra tools needed.
Prerequisites
curl and jq (both standard on Linux)
Search for GIFs
# Search and get GIF URLs
curl -s "https://tenor.googleapis.com/v2/search?q=thumbs+up&limit=5&key=AIzaSyAyimkuYQYF_FXVALexPuGQctUWRURdCYQ"| jq -r '.results[].media_formats.gif.url'# Get smaller/preview versions
curl -s "https://tenor.googleapis.com/v2/search?q=nice+work&limit=3&key=AIzaSyAyimkuYQYF_FXVALexPuGQctUWRURdCYQ"| jq -r '.results[].media_formats.tinygif.url'
Download a GIF
# Search and download the top resultURL=$(curl -s "https://tenor.googleapis.com/v2/search?q=celebration&limit=1&key=AIzaSyAyimkuYQYF_FXVALexPuGQctUWRURdCYQ"| jq -r '.results[0].media_formats.gif.url')
curl -sL "$URL" -o celebration.gif