Meme API
Random memes pulled from Reddit via a free, no-key JSON API.
What it does
meme-api.com returns a random meme scraped from popular meme subreddits — title, image URL, source post link, subreddit, author, upvotes and NSFW/spoiler flags. You can target a specific subreddit and request several at once.
Base URL
Authentication
None. /gimme (random), /gimme/{subreddit}, /gimme/{subreddit}/{count} (count up to 50), /gimme/{count}.
Code examples
curl -s https://meme-api.com/gimme curl -s https://meme-api.com/gimme/wholesomememes/3
const m = await fetch("https://meme-api.com/gimme").then(r => r.json());
if (!m.nsfw && !m.spoiler) img.src = m.url;Rate limits & quotas
No key and no documented hard rate limit, but it scrapes Reddit live, so responses can be a little slow — cache. When you request multiple, the response has a memes array instead of top-level fields.
Key response fields
| postLink | URL of the original Reddit post |
| subreddit / title / author / ups | Source and engagement |
| url | Direct image URL |
| nsfw / spoiler | Booleans — always check these before displaying |
| preview[] | Progressively larger preview image URLs |
Common errors
| (nsfw content) | Not an error — the API can return NSFW memes; filter on nsfw/spoiler or restrict to safe subreddits like wholesomememes. |
| 404 / code | Unknown or private subreddit. |
| 500 / slow | Reddit rate-limited the scraper — retry with backoff and cache. |
When to use it (and alternatives)
A quick meme feed for a Discord bot, a fun 404, or a ‘refresh for a laugh’ widget. Because content is user-generated, always filter nsfw/spoiler and prefer curated subreddits for anything public-facing.
FAQ
How do I keep it safe for work?
Restrict to known-clean subreddits (/gimme/wholesomememes, /gimme/memes) and drop any result where nsfw or spoiler is true.
Why is the response shape different when I ask for several?
A single request has the meme fields at the top level; /gimme/{subreddit}/{count} wraps them in a memes array.
Can I rely on it being fast?
No — it fetches from Reddit on demand. Cache results for a few minutes and pre-fetch a batch if you need snappy responses.
New to APIs?
Short guides for working with this API — and any other.