API Directory › 🎉 Fun & Random › Meme API
No authHTTPSCORS

Meme API

Random memes pulled from Reddit via a free, no-key JSON API.

Auth
No auth needed
HTTPS
Yes
CORS
Yes
Open Meme API docs ↗

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

https://meme-api.com

Authentication

None. /gimme (random), /gimme/{subreddit}, /gimme/{subreddit}/{count} (count up to 50), /gimme/{count}.

Code examples

curl
curl -s https://meme-api.com/gimme
curl -s https://meme-api.com/gimme/wholesomememes/3
JavaScript
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

postLinkURL of the original Reddit post
subreddit / title / author / upsSource and engagement
urlDirect image URL
nsfw / spoilerBooleans — 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 / codeUnknown or private subreddit.
500 / slowReddit 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.

🛠️ Handy LarzOS tools

Free tools to help you work with this API.

JSON Formatter

Related Fun & Random APIs

← Back

More Fun & Random APIs · All 196 APIs