Google has announced that the Tenor GIF API will be fully discontinued on June 30, 2026.
- January 13, 2026: New API key registrations and new integrations are no longer being accepted as of this date.
- June 30, 2026: All existing API and Ads Distribution Agreements will be terminated, and API requests will start returning errors.
Solution
Switch to an alternative GIF API before the cutoff date. Options include:
- Giphy API: Popular but heavily curated content.
- Klipy API: Offers free access, monetization features, and a quick migration path by swapping the base URL.
Example migration from Tenor to Klipy
import requests
# Old Tenor API endpoint
# url = "https://g.tenor.com/v1/search?q=funny&key=YOUR_TENOR_KEY"
# New Klipy API endpoint
url = "https://api.klipy.com/v1/search?q=funny&key=YOUR_KLIPY_KEY"
response = requests.get(url)
if response.status_code == 200:
gifs = response.json().get("results", [])
for gif in gifs:
print(gif["media_formats"]["gif"]["url"])
else:
print("Error fetching GIFs:", response.status_code)
From June 30, 2026 onwards, all Tenor API requests will fail, breaking the GIF commands. As such the code will need to be updated to use either Giphy API, Klipy API, or some other source that would work for use with Master Bot.
Google has announced that the Tenor GIF API will be fully discontinued on June 30, 2026.
Solution
Switch to an alternative GIF API before the cutoff date. Options include:
Example migration from Tenor to Klipy
From June 30, 2026 onwards, all Tenor API requests will fail, breaking the GIF commands. As such the code will need to be updated to use either Giphy API, Klipy API, or some other source that would work for use with Master Bot.