randommlem - returns one random mlem image in JSON.
https://mlem.tech/api/randommlemParameters:
https://mlem.tech/api/randommlem
{ "id": 3400, "url": "https:\/\/mlem.tech\/mlems\/1584837961131.jpg", "width": 3024, "height": 4032, "orientation": "portrait", "brightness": "bright", "tags": [ "Cat" ], "code": 200 }
https://mlem.tech/api/randommlem?tag=Cat
{ "id": 2216, "url": "https:\/\/mlem.tech\/mlems\/1583574130231.jpg", "width": 3024, "height": 4032, "orientation": "portrait", "brightness": "dark", "tags": [ "Cat" ], "code": 200 }
https://mlem.tech/api/randommlem?minwidth=700&maxwidth=1000&minheight=700&maxheight=1000
{ "id": 377, "url": "https:\/\/mlem.tech\/mlems\/1578588663314.jpg", "width": 700, "height": 700, "orientation": "square", "brightness": "dark", "tags": [ "Cat" ], "code": 200 }
https://mlem.tech/api/randommlem?orientation=square&brightness=dark
{ "id": 2891, "url": "https:\/\/mlem.tech\/mlems\/1584323105776.jpg", "width": 3024, "height": 3024, "orientation": "square", "brightness": "dark", "tags": [ "Cat", "Kitten" ], "code": 200 }
newmlem - returns one most recently published mlem image in JSON.
https://mlem.tech/api/newmlem
No parameters
https://mlem.tech/api/newmlem
{ "id": 40685, "url": "https:\/\/mlem.tech\/mlems\/1651394423691.jpg", "width": 962, "height": 551, "orientation": "landscape", "brightness": "bright", "tags": [ "Bear" ], "code": 200 }
mlemid - returns one mlem image by id in JSON.
https://mlem.tech/api/randommlem?mlemid=[id]
Parameters:
mlemid - mlem id
https://mlem.tech/api/randommlem?mlemid=1
{ "id": 1, "url": "https:\/\/mlem.tech\/mlems\/1575713370775.jpg", "width": 608, "height": 960, "orientation": "portrait", "brightness": "dark", "tags": [ "Lamb", "Valais blacknose sheep", "Sheep" ], "code": 200 }
tags - returns all tags in JSON.
https://mlem.tech/api/tags
No parameters
https://mlem.tech/api/tags
[ "Aardvark", "Anteater", "Bat", "Bat-eared fox", "Bear" ]
Amount of tags in response example is limited to reduce length of the example.