memecub

Where can I find a free meme API on GitHub?

You can find free meme APIs on GitHub by searching for repositories like D3vd/Meme_Api (random memes from Reddit) or jacebrowning/memegen (generate memes from templates). For a ready-to-use API with search and AI features, memecub offers a REST API with a keyless trial of 20 searches per day, plus an MCP server and CLI.

How to choose a free meme API on GitHub

Look for repositories with recent commits, clear documentation, and an open-source license. D3vd/Meme_Api is popular for random memes from Reddit, while jacebrowning/memegen lets you generate memes from templates via URL.

Check if the API requires authentication. Some free APIs have rate limits or require API keys. For a keyless trial, memecub's REST API offers 20 searches per day without a key.

Example: calling a meme API with Python

Using D3vd/Meme_Api: import requests; response = requests.get('https://meme-api.com/gimme'); data = response.json(); print(data['url']).

Using memecub's REST API (keyless trial): import requests; headers = {'Authorization': 'Bearer YOUR_API_KEY'}; response = requests.get('https://memecub.com/api/search', params={'q': 'drake'}, headers=headers); print(response.json()). Replace YOUR_API_KEY with your key from memecub.com.

When to use which

For quick random memes in a chat app, D3vd/Meme_Api is simple and free. For generating memes from text, jacebrowning/memegen or memecub's AI meme maker (/generate) are options.

If you need search, AI placement, or integration with AI assistants, memecub provides a REST API, MCP server, and CLI. The MCP server at https://memecub.com/mcp works with Claude Code, Codex, and Cursor.

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

Is there a completely free meme API on GitHub?

Yes, D3vd/Meme_Api and jacebrowning/memegen are open-source and free to use, though they may have rate limits. memecub offers a free tier with 1000 credits per month and a keyless trial of 20 searches per day.

How do I use a meme API in Python?

Install the requests library, then call the API endpoint and parse the JSON response. For example, requests.get('https://meme-api.com/gimme').json() returns a random meme.

What is the best free meme API?

It depends on your needs: D3vd/Meme_Api for random memes, jacebrowning/memegen for template-based generation, and memecub for search and AI features with a free tier.

Can I use meme APIs for commercial projects?

Check the license and terms of each API. Some APIs use memes from the web that are for personal use only. memecub has a filter for openly licensed images that can be used commercially.