Giphy

FREE
By serg.osipchuk
Updated 5 months ago
Search
5/10
Popularity Score
109ms
Latency
-
Success Rate

Giphy API Documentation

Embed the world's largest GIF library into your app.

View API Details
POSTgetGif
POSTgetGifs
POSTgetRandomGif
POSTgetRandomSticker
POSTgetTrendingGifs
POSTgetTrendingStickers
POSTsearchGifs
POSTsearchStickers
POSTtranslateTextToGif
POSTtranslateTextToSticker
POSTuploadGif
POSTgetGif

Returns meta data about a GIF, by GIF id. In the below example, the GIF ID is 'feqkVgjJpYtjy'

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
gifIdSTRING
REQUIREDthe GIF ID
apiKeyCREDENTIALS
REQUIREDThe access_token obtained from Giphy.
Code Snippet
unirest.post("https://Giphyserg-osipchukV1.p.rapidapi.com/getGif")
.header("X-RapidAPI-Host", "Giphyserg-osipchukV1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://Giphyserg-osipchukV1.p.rapidapi.com/getGif
Request Method: POST
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.post("https://Giphyserg-osipchukV1.p.rapidapi.com/getGif")
.header("X-RapidAPI-Host", "Giphyserg-osipchukV1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication