Search GIPHY's GIF and sticker library, fetch trending and random picks, translate a phrase into a GIF, and look up GIFs by id.
GIPHY ships in the w6w first-party pack. It declares 12 actions, 1 health check, and the host runs its code in a sandbox that never sees the credential.
io.w6w.giphyGIPHY is the GIF and sticker library most chat and social products embed, and its public API is a read-only, key-authenticated search surface over that library.
This app covers it end to end: search GIFs and stickers by phrase, list what is trending, pull a random pick, translate a phrase into the single best GIF GIPHY can find, look up one GIF by id or up to a hundred by id at once, and read the category tree. Every response is GIPHY’s own envelope — data, plus meta (which is where GIPHY states its real status) and pagination on the list endpoints.
The API key travels as a required query-string parameter, api_key — GIPHY has no header-based auth option at all — so the connection’s sign hook merges it into each request’s existing query string rather than stamping a header. That is why the key is signed in one place and never enters an action.
One response-code quirk is worth knowing before you use it: GIPHY echoes its own status into the body’s meta.status, so a call can answer HTTP 200 while the body says 401. Every success/failure decision in this app reads the body, never the status line. A health check reads GIPHY’s real Statuspage feed, so a vendor incident and an expired key are reported as the different problems they are.
Three routes to the same 12 actions. The Workflow tab is generated from GIPHY's own manifest and carries its real ids, so it is copy-pasteable; the Code and CLI examples are the same call for any action on any app, so every app-specific value in them is a blank you fill in.
get-gif-by-id Fetch one GIF by its GIPHY id. An unknown id is reported in `meta.status` with an empty `data`, not as a failed step.
get-gifs-by-id Fetch up to 100 GIFs by their GIPHY ids in a single call. Pass the ids comma-separated.
get-random-gif Fetch one random GIF, optionally restricted to a tag. Returns a single GIF object.
get-random-sticker Fetch one random sticker, optionally restricted to a tag. Returns a single object.
get-trending-gifs List the GIFs GIPHY is currently trending, with GIPHY's pagination object. Needs no parameters.
get-trending-stickers List the stickers GIPHY is currently trending, with GIPHY's pagination object. Needs no parameters.
search-gifs Search GIPHY's GIF library for a phrase. Returns matching GIFs plus GIPHY's pagination object.
search-stickers Search GIPHY's sticker library for a phrase. Returns matching stickers plus GIPHY's pagination object.
translate-gif Translate a phrase into the single GIF GIPHY thinks best matches it. Returns one GIF object.
translate-sticker Translate a phrase into the single sticker GIPHY thinks best matches it. Returns one object.
A workflow step names the app and the action, and the editor fills in the
connection when you pick one. This is the Step shape from the
workflow spec, carrying GIPHY's real ids.
{
"manifestVersion": "2",
"name": "giphy-example",
"steps": [
{
"id": "get-gif-by-id",
"uses": {
"app": "io.w6w.giphy",
"action": "get-gif-by-id",
"connection": "conn_YOUR_CONNECTION_ID"
},
"with": {
"gifId": "<gifId>"
}
}
]
}get-gif-by-id get-categories get-gifs-by-id get-random-gif get-random-id +7 more actions available
Every app-specific value here is a blank you have to fill in. An
app action is reached through the connection that authenticates it, so the
address is a connection id, not the app id — and connections belong to your account,
so a public page cannot know yours. Create one for GIPHY, then fill in
the three blanks: conn_YOUR_CONNECTION_ID, the action key, and the
parameters that action declares. The call itself is real — the shape is transcribed
from the studio's own snippet builder, which prints the same kind of blanks — but
nothing in it is specific to GIPHY. The Workflow tab is where this app's
real ids are.
npm install @w6w/sdkyarn add @w6w/sdkpnpm add @w6w/sdkdeno add npm:@w6w/sdkimport { W6wClient, isActionRun } from "@w6w/sdk";
// Reads W6W_BASE_URL and W6W_TOKEN from the environment when omitted.
const client = new W6wClient();
const envelope = await client.run({
urn: "conn_YOUR_CONNECTION_ID",
action: "get-gif-by-id",
payload: {
gifId: "<value>",
// rating: "<value>",
},
});
if (isActionRun(envelope)) console.log(envelope.value); npm install -g @w6w/cli w6w run conn_YOUR_CONNECTION_ID --action get-gif-by-id --payload '{"gifId":"<value>"}' Give an AI agent GIPHY — without giving it GIPHY's credentials. One MCP endpoint exposes every app, function and workflow the caller is entitled to, as tools it can discover and run. Access is granted per team while we onboard.
One tool call{
"name": "w6w_invoke",
"arguments": {
"ref": "app:io.w6w.giphy#get-gif-by-id",
"input": {
"gifId": "<gifId>"
}
}
}
Every tool names its target with a single ref. The
app: form above doesn't name a connection at all — the
host resolves which of the caller's GIPHY connections to sign
with, and refuses rather than guesses when the answer is ambiguous.
The token is attached host-side, at the moment of the call. It is never a tool argument, never in the model's context, and never in a transcript — so a prompt injection has nothing to exfiltrate.
Tools are derived per end user from what that person has actually connected and is entitled to — not one shared bot identity carrying the union of everyone's access.
Multi-step work runs on the workflow engine and returns a run handle the agent can poll — retries, branching and state survive the conversation that started them.
GIPHY's declared health checks are on the surface too, so an agent can tell "the vendor is down" from "your credential expired" before it burns a retry on either.
The MCP surface is part of the hosted platform. GIPHY itself is MIT, and the runtime that executes it is source-available (FSL).
GIPHY declares its own checks, so its health is a property of the app rather than something the host guesses at.
Component status from status.giphy.com. Reports the API group — Search, Trending, Translate, Random, Media, Upload, Developers and API — not the Web & Mobile group, which describes giphy.com rather than api.giphy.com.