randommlem - returns one random mlem image in JSON.
https://mlem.tech/api/randommlemParameters:
https://mlem.tech/api/randommlem
{ "id": 6903, "url": "https:\/\/mlem.tech\/mlems\/1588432882947.jpg", "width": 844, "height": 1492, "orientation": "portrait", "brightness": "bright", "tags": [ "Dog" ], "code": 200 }
https://mlem.tech/api/randommlem?tag=Cat
{ "id": 3575, "url": "https:\/\/mlem.tech\/mlems\/1585013210436.jpg", "width": 4032, "height": 3024, "orientation": "landscape", "brightness": "bright", "tags": [ "Cat" ], "code": 200 }
https://mlem.tech/api/randommlem?minwidth=700&maxwidth=1000&minheight=700&maxheight=1000
{ "id": 514, "url": "https:\/\/mlem.tech\/mlems\/1580440611606.jpg", "width": 720, "height": 960, "orientation": "portrait", "brightness": "dark", "tags": [ "Cat", "Kitten" ], "code": 200 }
https://mlem.tech/api/randommlem?orientation=square&brightness=dark
{ "id": 3567, "url": "https:\/\/mlem.tech\/mlems\/1585013503257.jpg", "width": 960, "height": 960, "orientation": "square", "brightness": "dark", "tags": [ "Cat" ], "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": 13535, "url": "https:\/\/mlem.tech\/mlems\/1614866698804.jpg", "width": 658, "height": 1179, "orientation": "portrait", "brightness": "bright", "tags": [ "Cat" ], "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.