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"
}Plain JSON over HTTP. Getting a random meme needs no sign-up, so you can try it right now:
$ curl https://api.rmeme.me/rmemeBase URL https://api.rmeme.me. There is also an interactive reference where you can send requests from your browser.
/rmemeGet 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"
}/rmeme/totalGet how many memes there are.
Response
{ "total": 1204 }/meme/:idGet 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"
}/healthCheck that the API is up. Responds with plain text.
Response
APP UP
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.
/memeAdd 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"
}/meme/:idAdd 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
}/meme/:idDelete a meme and its tags.
Response
{ "message": "Deleted meme with id: 42" }