rmeme

The rmeme API

Plain JSON over HTTP. Getting a random meme needs no sign-up, so you can try it right now:

$ curl https://api.rmeme.me/rmeme

Base URL https://api.rmeme.me. There is also an interactive reference where you can send requests from your browser.

Open to everyone

GET/rmeme

Get a random meme, including its tags.

Response

{
  "meme_id": 42,
  "filename": "0b6c1f0e-…",
  "extension": "png",
  "format": "image",
  "score": 7,
  "tags": "cat,funny",
  "url": "https://…/0b6c1f0e-….png"
}

GET/rmeme/total

Get how many memes there are.

Response

{ "total": 1204 }

GET/meme/:id

Get a meme by its ID. Negative IDs count back from the newest meme, so -1 is the second newest.

Response

{
  "meme_id": 42,
  "filename": "0b6c1f0e-…",
  "extension": "png",
  "format": "image",
  "score": 7,
  "url": "https://…/0b6c1f0e-….png"
}

GET/health

Check that the API is up. Responds with plain text.

Response

APP UP

Needs an API key

Send your key in the x-api-key header. Each key has a daily request limit, and the x-rate-limit response header tells you how many requests you have left today. Going over the limit returns a 429.

POST/meme

Add a meme from a link to a png, jpg, jpeg, apng, webp, gif, mp4, webm or mov file.

Request body

{ "url": "https://example.com/meme.png" }

Response

{
  "meme_id": 42,
  "filename": "0b6c1f0e-…",
  "extension": "png",
  "format": "image",
  "score": 0,
  "url": "https://…/0b6c1f0e-….png"
}

PUT/meme/:id

Add votes to a meme's score. Use a negative number to downvote.

Request body

{ "votes": 1 }

Response

{
  "message": "Updated score for meme 42",
  "meme_id": 42,
  "score": 8
}

DELETE/meme/:id

Delete a meme and its tags.

Response

{ "message": "Deleted meme with id: 42" }