Giphy

FREE
By giphy
Updated 5 months ago
Media
8/10
Popularity Score
114ms
Latency
92%
Success Rate

Giphy API Documentation

Giphy is an animated GIF search engine.

The Giphy API implements a REST-like interface. Connections can be made with any HTTP enabled programming language. The Giphy API also implements CORS, allowing you to connect to Giphy from JavaScript / Web browsers on your own domain.

View API Details
Giphy
GETSearch
GETGet GIF by ID
GETGet GIFs by ID
GETTranslate
GETRandom
GETTrending GIFs
Sticker
GETSticker Search
GETSTICKER Roulette
GETSTICKER Trending
GETSTICKER Translate
GETSearch

Search all Giphy GIFs for a word or phrase. Punctuation will be stripped and ignored. Use a plus or url encode for phrases.

Authorization:

The Giphy API is open to the public. We have instituted a simple, single public beta key system to let anyone try it out.

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
qSTRING
REQUIREDsearch query term or phrase
api_keyQUERY
REQUIREDThe public beta key is "dc6zaTOxFJmzC". Please use this key while you develop your application and experiment with your integrations.
Optional Parameters
limitSTRING
OPTIONALnumber of results to return, maximum 100. Default 25.
offsetSTRING
OPTIONALresults offset, defaults to 0.
ratingSTRING
OPTIONALlimit results to those rated (y,g, pg, pg-13 or r)
Code Snippet
unirest.get("https://giphy.p.rapidapi.com/v1/gifs/search?q=funny+cat")
.header("X-RapidAPI-Host", "giphy.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://giphy.p.rapidapi.com/v1/gifs/search
Request Method: GET
Response Headers
Response Body

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.get("https://giphy.p.rapidapi.com/v1/gifs/search?q=funny+cat")
.header("X-RapidAPI-Host", "giphy.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication