Giphy API
giphy · Media
Giphy API
Authentication
Sample Requests
A multiget version of the get GIF by ID endpoint.
Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/giphy.com/1.0/gifs?ids=example"
import requests
params = {
"ids": "example"
}
response = requests.get(
"https://api.apis.guru/v2/specs/giphy.com/1.0/gifs",
params=params,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/giphy.com/1.0/gifs');
url.searchParams.set('ids', 'example');
const response = await fetch(url);
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
"net/url"
)
func main() {
baseURL, _ := url.Parse("https://api.apis.guru/v2/specs/giphy.com/1.0/gifs")
q := baseURL.Query()
q.Set("ids", "example")
baseURL.RawQuery = q.Encode()
targetURL := baseURL.String()
req, _ := http.NewRequest("GET", targetURL, nil)
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/giphy.com/1.0/gifs")
uri.query = URI.encode_www_form({
"ids" => "example"
})
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/giphy.com/1.0/gifs?" . http_build_query([
"ids" => "example"
]);
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Returns a random GIF, limited by tag. Excluding the tag parameter will return a random GIF from the GIPHY catalog.
Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/giphy.com/1.0/gifs/random?tag=example&rating=example"
import requests
params = {
"tag": "example",
"rating": "example"
}
response = requests.get(
"https://api.apis.guru/v2/specs/giphy.com/1.0/gifs/random",
params=params,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/giphy.com/1.0/gifs/random');
url.searchParams.set('tag', 'example');
url.searchParams.set('rating', 'example');
const response = await fetch(url);
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
"net/url"
)
func main() {
baseURL, _ := url.Parse("https://api.apis.guru/v2/specs/giphy.com/1.0/gifs/random")
q := baseURL.Query()
q.Set("tag", "example")
q.Set("rating", "example")
baseURL.RawQuery = q.Encode()
targetURL := baseURL.String()
req, _ := http.NewRequest("GET", targetURL, nil)
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/giphy.com/1.0/gifs/random")
uri.query = URI.encode_www_form({
"tag" => "example",
"rating" => "example"
})
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/giphy.com/1.0/gifs/random?" . http_build_query([
"tag" => "example",
"rating" => "example"
]);
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Search all GIPHY GIFs for a word or phrase. Punctuation will be stripped and ignored. Use a plus or url encode for phrases. Example paul+rudd, ryan+gosling or american+psycho.
Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/giphy.com/1.0/gifs/search?q=test&lang=en&limit=25&offset=0&rating=example"
import requests
params = {
"q": "test",
"lang": "en",
"limit": "25",
"offset": "0",
"rating": "example"
}
response = requests.get(
"https://api.apis.guru/v2/specs/giphy.com/1.0/gifs/search",
params=params,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/giphy.com/1.0/gifs/search');
url.searchParams.set('q', 'test');
url.searchParams.set('lang', 'en');
url.searchParams.set('limit', '25');
url.searchParams.set('offset', '0');
url.searchParams.set('rating', 'example');
const response = await fetch(url);
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
"net/url"
)
func main() {
baseURL, _ := url.Parse("https://api.apis.guru/v2/specs/giphy.com/1.0/gifs/search")
q := baseURL.Query()
q.Set("q", "test")
q.Set("lang", "en")
q.Set("limit", "25")
q.Set("offset", "0")
q.Set("rating", "example")
baseURL.RawQuery = q.Encode()
targetURL := baseURL.String()
req, _ := http.NewRequest("GET", targetURL, nil)
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/giphy.com/1.0/gifs/search")
uri.query = URI.encode_www_form({
"q" => "test",
"lang" => "en",
"limit" => "25",
"offset" => "0",
"rating" => "example"
})
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/giphy.com/1.0/gifs/search?" . http_build_query([
"q" => "test",
"lang" => "en",
"limit" => "25",
"offset" => "0",
"rating" => "example"
]);
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Postman Setup Guide
- See official documentation for authentication and setup.
What can you build with Giphy API?
Giphy API is a Media API. Developers commonly use media APIs for:
- storing and delivering images, video, and audio
- building digital asset management and media libraries
- transcoding and optimising media for the web
- adding video streaming and playback to your app
- automating content tagging and metadata extraction
No authentication required. This API is open — no signup or key needed. Ideal for quick prototypes and public-facing features. Giphy API is free to use, making it a low-risk choice to experiment with.
New to APIs? Read our beginner's guide