How do I get a GIF search API key?
You get a GIF search API key by creating a developer account with a GIF provider (GIPHY, Tenor or KLIPY), registering an app in its dashboard, and copying the key it issues; you then send that key with each request, usually as an API key query parameter or an Authorization header. If you only need a few searches, memecub's REST API offers a keyless trial of 20 searches a day, so you can test before signing up anywhere.
Send when you are calmly waiting for your developer dashboard to approve the app.
The cautionary tale for anyone about to paste a fresh API key into a public repo.
Use it as a reply when a teammate commits a key in plain text.
For the moment a key leaks on someone's last day and the rotation ticket opens.
Fits the thread where someone asks why their key stopped working mid-demo.
Send when the API returns a strange status code instead of a clean 403.
For the developer who finally got a key and is burning through credits.
Relatable when the sign-up flow asks for more verification than expected.
Where GIF API keys come from
GIF search APIs are run by individual providers, so there is no single universal key. GIPHY, Tenor and KLIPY each have their own developer portal: you sign up, register an application, agree to the terms, and the dashboard shows a key tied to that app.
The key identifies your app for rate limits and attribution. Keep it out of client-side code and public repos; load it from an environment variable or a server-side secret store.
How authentication usually works
Most GIF APIs accept the key as a query parameter or header on every request. A typical call looks like GET https://api.example.com/v1/gifs/search?q=cat&api_key=YOUR_KEY, and the response is JSON with GIF URLs, widths and heights.
With memecub, the REST API is keyless for a trial of 20 searches a day, and each search costs 1 credit once you are on a plan. The same search is available through the remote MCP server at https://memecub.com/mcp, the CLI npx memecub, or a skill installed with npx skills add https://memecub.com into Claude Code, Codex or Cursor.
Choosing between providers
Pick based on what you are building: GIPHY and Tenor are general GIF and sticker libraries with search, trending and random endpoints; KLIPY markets GIFs, stickers and memes together. Check each provider's docs for current limits and attribution rules rather than assuming.
If your app is about memes and reaction images rather than generic GIFs, memecub is a fit: search returns memes with titles and descriptions, and the AI meme maker at /generate can create one from a character, action and caption when nothing in search fits. Note that most memecub memes are web-collected and fine for personal chats, not commercial use; a filter shows openly licensed images for commercial projects.
A minimal search example
1. Store your key: export MEMECUB_KEY=your_key (or use the keyless trial).
2. Call the search endpoint with your query and send the key in the header your provider documents.
3. Parse the JSON response and render the returned image URLs with their width and height.
4. Cache results you reuse so you do not spend a credit on the same search twice.
Let your AI find the memes
REST API, remote MCP, CLI and a skill. Try 20 searches a day without a key.
More that fit
FAQ
Do I need an API key for GIF search?
With most providers, yes: GIPHY, Tenor and KLIPY issue keys per registered app. memecub lets you run a keyless trial of 20 searches a day before you commit to a plan.
Where do I find my GIF API key?
In the developer dashboard of the provider you signed up with, usually under your app's settings or credentials page. If you lost it, the same dashboard lets you regenerate it.
How do I authenticate with a GIF search API?
Send the key with every request, either as a query parameter or an Authorization header, depending on the provider's docs. Never ship it in front-end code or commit it to a repository.
Is there a random GIF API?
GIPHY and Tenor both document random endpoints alongside search and trending. With memecub you can search a broad term and pick from the results, or use the AI meme maker when you want something new.
Can I use GIF search results commercially?
That depends on the provider's license terms and the individual GIF. On memecub, most memes are web-collected and meant for personal chats; use the openly licensed filter for commercial work.