memecub

How do I search memes by keyword with an API to place in blog posts?

Use memecub's REST API to search memes by keyword: send a query with your blog topic and get matching memes back. Each search costs 1 credit, and you can try it keyless with 20 searches a day. For automatic placement, the AI meme placement endpoint (/match) takes your article and picks a fitting meme for each paragraph.

How the memecub API works for keyword search

The memecub REST API lets you search memes by keyword. You send a request with your search term, and it returns a list of memes that match. Each search call costs 1 credit.

You can try it without an API key: the keyless trial allows 20 searches per day. For regular use, sign up for a free plan that includes 1000 credits per month.

The API is part of memecub's developer tools, which also include a remote MCP server at https://memecub.com/mcp, a CLI (npx memecub), and a skill installable with npx skills add https://memecub.com into Claude Code, Codex, Cursor, and others.

Example: search and place a meme in a blog post

Here's a minimal example using curl to search for memes about 'debugging' and get the first result:

curl -X GET 'https://memecub.com/api/search?q=debugging' -H 'Authorization: Bearer YOUR_API_KEY'

The response includes meme IDs and URLs. You can then embed the meme in your blog post using the URL.

For automatic placement, use the /match endpoint: send your article text, and the AI picks a fitting meme for each paragraph. This is useful for long posts where you want memes to break up the text.

Licensing and tone: what to keep in mind

Most memes in the library are collected from the web, so they are free for personal chats but not for commercial use. Copyright stays with the original creators.

If your blog is commercial, use the filter that shows only openly licensed images (from Openverse, open-source emoji, and public-domain art). These can be used commercially.

Match the meme's tone to your article. A meme that's too silly might undermine a serious post, while a dry meme can fall flat in a humorous piece. The AI meme placement endpoint considers context, but you can always override its picks.

Alternatives and when to use them

If you can't find a suitable meme via search, you can use the AI meme maker at /generate. Describe a character, action, and caption, or start from any meme as a reference. It takes about 10 seconds per image and costs 500 credits each. It refuses real people.

For manual browsing, the memecub website lets you search, copy, and download memes for free without sign-up. This is good for one-off blog posts.

Other tools like Canva, Kapwing, and Supermeme offer meme generators, but they don't provide a keyword-search API for automatic placement. memecub's API is designed for developers who want to integrate meme search into their workflow.

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

How do I find fitting memes for a blog post with an API?

Use memecub's REST API to search by keyword related to your blog topic. You can also use the /match endpoint to automatically pick memes for each paragraph.

What meme API can I query by keyword for blog content?

memecub offers a REST API with keyword search. It costs 1 credit per search, and you can try it keyless with 20 searches a day.

How do I get relevant memes from an API for an article?

Send a search query with terms from your article to the memecub API. For automatic relevance, use the /match endpoint with your full article text.

Can I use memes from the API for commercial blog posts?

Most memes are collected from the web and are not for commercial use. Use the filter for openly licensed images if your blog is commercial.

Is there a free trial for the meme API?

Yes, you can make 20 searches per day without an API key. The free plan includes 1000 credits per month.