Skip to content

Giphy API

by giphy.com

API keyHTTPSPhotography
Open documentation ↗

Overview

The GIPHY Developer Portal is how you integrate the world's best GIF API into your business, app or project.

Giphy is a photography API from giphy.com. Requests are authenticated with an API key. It is served over HTTPS. Its OpenAPI description documents 10 endpoints.

At a glance

Authentication
API key
HTTPS
Yes
CORS
Unknown
Category
Photography
Base URL
https://api.giphy.com/v1
Version
1.0
Endpoints
10
Spec updated
2021-06-21

Make a first request

Replace the placeholders; the documentation says exactly where credentials go.

cURL
curl -X GET "https://api.giphy.com/v1/gifs" \
  -H "Accept: application/json" \
  -H "X-API-Key: YOUR_API_KEY"
JavaScript
const response = await fetch("https://api.giphy.com/v1/gifs", {
  method: "GET",
  headers: {
    "Accept": "application/json",
    "X-API-Key": "YOUR_API_KEY",
  },
});
const data = await response.json();
console.log(data);
Python
import requests

response = requests.request(
    "GET",
    "https://api.giphy.com/v1/gifs",
    headers={
    "Accept": "application/json",
    "X-API-Key": "YOUR_API_KEY",
    },
    timeout=30,
)
print(response.json())

Endpoints

MethodPathWhat it does
GET/gifsGet GIFs by ID
GET/gifs/randomRandom GIF
GET/gifs/searchSearch GIFs
GET/gifs/translateTranslate phrase to GIF
GET/gifs/trendingTrending GIFs
GET/gifs/{gifId}Get GIF by Id
GET/stickers/randomRandom Sticker
GET/stickers/searchSearch Stickers
GET/stickers/translateTranslate phrase to Sticker
GET/stickers/trendingTrending Stickers

Questions

Does the Giphy API need an API key?

Yes. The Giphy API uses API key authentication; the documentation explains how to get credentials.

Does the Giphy API support HTTPS?

Yes, the Giphy API is served over HTTPS.

How many endpoints does the Giphy API have?

Its OpenAPI description lists 10 endpoints in version 1.0. All of them are shown on this page.

What are alternatives to the Giphy API?

Other Photography APIs include Remove.bg, Getty Images, Unsplash, Imgur, shutterstock.

Compare alternatives →

Listed from public-apis (MIT), public-apis database (MIT), APIs.guru (CC0).