Search Memes API

Search over 300,000 memes by keyword, rating, and age. Most memes are stills (images) but using the media-type you can also get videos. You can even search for text within memes. You'll surely find something funny.

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

Example meme returned by the Search Memes APIAnother example meme returned by the Search Memes API

GET
https://api.apileague.com/search-memes

Parameters

NameExampleDescription
keywords
s o q
rocketA comma-separated list of words that must occur in the meme.
keywords-in-image
b o q
trueWhether the keywords must occur in the image.
media-type
s o q
imageThe media type (either 'image', 'video' or even specific format such as 'jpg', 'png', or 'gif').
min-rating
n o q
0The minimum rating in range [0.0,1.0] of the meme.
max-age-days
n o q
30The maximum age of the meme in days.
offset
n o q
0The number of memes to skip, between 0 and 1000.
number
n o q
3The number of memes, between 1 and 10.
api-key
s r q
abcd1234Your API key.
Example Request and Response
GET
https://api.apileague.com/search-memes?keywords=rocket&number=3
{
    "memes": [
        {
            "description": "Hey, you want a light show?: Edit: Thank you for getting the joke. I didn’t think a joke about gloving would land, but I appreciate your sense of humor Imgur. Let me know what shows you are going to or went to this year. DM me if you want to team up on Rocket League.",
            "url": "https://i.imgur.com/4msjS5E.mp4",
            "type": "video/mp4"
        },
        {
            "description": "Rocket Money is a scam.: Prevented a $30 charge of something I don't use anymore. Feels good.",
            "url": "https://i.imgur.com/q3cZlpv.png",
            "type": "image/png"
        },
        {
            "description": "Rocket Money is a scam.: Cat tax.",
            "url": "https://i.imgur.com/yaZoCFP.jpg",
            "type": "image/jpeg"
        }
    ],
    "available": 156
}
 Copy Codecurl -X GET 'https://api.apileague.com/search-memes?keywords=rocket&number=3' \ -H 'x-api-key: myapikey'

Headers

Response Headers:

  • Content-Type: application/json
  • X-API-Quota-Request: The number of tokens used by the request
  • X-API-Quota-Used: The number of tokens used in total today
  • X-API-Quota-Left: The number of tokens left today (depends on your plan)

Frequently Asked Questions

Can I search for memes by text?

Yes, the API allows you to search for memes based on the text contained within the image or its description.

Does it support video memes?

Yes, by using the `media-type` parameter, you can choose to search for images, videos, or both.

How fresh are the memes?

The database is updated regularly with new memes. You can also filter by `min-rating` to find the most popular ones.

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

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

Questions? Need Help? Ask Away

Quotas

Calling this endpoint costs
1 token