Memes API

The Memes API allows you to fetch meme data, including random memes.

Base URL

"https://openapi-idk8.onrender.com"

Endpoints

  1. GET `/memes`: Fetches a list of available memes.
  2. GET `/memes/random`: Fetches a random meme.

Sample Requests

GET `https://openapi-idk8.onrender.com/memes`
GET `https://openapi-idk8.onrender.com/memes/random`

Sample Response for `/memes`

[
    {
        "id": "80707627",
        "name": "Random Meme",
        "url": "https://i.imgflip.com/1c1uej.jpg",
        "width": 720,
        "height": 709,
        "box_count": 3,
        "captions": 199250
    },
    // More memes here...
]

Sample Response for `/memes/random`

{
    "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."
}

Error Handling

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"
}