The Memes API allows you to fetch meme data, including random memes.
"https://openapi-idk8.onrender.com"
GET `/memes`
: Fetches a list of available memes.GET `/memes/random`
: Fetches a random meme.GET `https://openapi-idk8.onrender.com/memes`
GET `https://openapi-idk8.onrender.com/memes/random`
[
{
"id": "80707627",
"name": "Random Meme",
"url": "https://i.imgflip.com/1c1uej.jpg",
"width": 720,
"height": 709,
"box_count": 3,
"captions": 199250
},
// More memes here...
]
{
"id": "80707627",
"name": "Random Meme",
"url": "https://i.imgflip.com/1c1uej.jpg",
"width": 720,
"height": 709,
"box_count": 3,
"captions": 199250,
"author": "OpenAPI",
"description": "Get a random meme."
}
500 Internal Server Error: Returned when there's an issue fetching meme data using the API.
Response Body:
{
"error": "Failed to fetch memes data"
}
Response Body for `/memes/random`:
{
"error": "Failed to fetch random meme"
}