Random Meme API

Get a random meme out of over 300,000+ memes. To get the latest memes, you can use the max-age-days parameter.

This API wraps the random meme endpoint by Humor API. Check out the tutorial about writing a joke and meme app using this API.

GET
https://api.apileague.com/retrieve-random-meme
Example Request and Response
GET
https://api.apileague.com/{{ examples.getRandomMeme }}
{
    "description": "That's totally fine.",
    "url": "https://preview.redd.it/2wpfufhz8p751.jpg?width=640&crop=smart&auto=webp&s=dab7d5eba791f3a884b0c0614630c99e38c46c4d",
    "type": "image/jpeg",
    "width": 640,
    "height": 702,
    "ratio": 0.9116809116809117
}
cURL
Java
Javascript
Python
Go
C#
 {{ codeCopyText }}
 {{ codeCopyText }}
 {{ codeCopyText }}
 {{ codeCopyText }}
 {{ codeCopyText }}
 {{ codeCopyText }}

Frequently Asked Questions

Where do the memes come from?

The memes are aggregated from various popular sources on the internet, ensuring a fresh and diverse collection.

Can I filter memes by age?

Yes, you can use the `max-age-days` parameter to ensure you get recent memes that are currently trending.

What format are the memes in?

The API returns the URL of the meme image (usually JPEG, PNG, or GIF) along with its dimensions and aspect ratio.

How is the Random Meme API different from the Search Memes API?

The Random Meme API gives you a random meme from the database, while the Search Memes API allows you to find memes based on specific keywords.

Questions? Need Help? Ask Away