randommlem - returns one random mlem image in JSON.
https://mlemtech.com/api/randommlemParameters:
https://mlemtech.com/api/randommlem
{ "id": 9762, "url": "https:\/\/mlemtech.com\/mlems\/1597452831699.jpg", "width": 2448, "height": 3264, "orientation": "portrait", "brightness": "dark", "tags": [ "Dog" ], "code": 200 }
https://mlemtech.com/api/randommlem?tag=Cat
{ "id": 3963, "url": "https:\/\/mlemtech.com\/mlems\/1585358658150.jpg", "width": 1536, "height": 2048, "orientation": "portrait", "brightness": "dark", "tags": [ "Cat" ], "code": 200 }
https://mlemtech.com/api/randommlem?minwidth=700&maxwidth=1000&minheight=700&maxheight=1000
{ "id": 59, "url": "https:\/\/mlemtech.com\/mlems\/1576083085206.jpg", "width": 736, "height": 736, "orientation": "square", "brightness": "dark", "tags": [ "Red panda" ], "code": 200 }
https://mlemtech.com/api/randommlem?orientation=square&brightness=dark
{ "id": 11192, "url": "https:\/\/mlemtech.com\/mlems\/1605370135805.jpg", "width": 960, "height": 960, "orientation": "square", "brightness": "dark", "tags": [ "Cat" ], "code": 200 }
newmlem - returns one most recently published mlem image in JSON.
https://mlemtech.com/api/newmlem
No parameters
https://mlemtech.com/api/newmlem
{ "id": 42675, "url": "https:\/\/mlemtech.com\/mlems\/1659408932519.jpg", "width": 800, "height": 533, "orientation": "landscape", "brightness": "bright", "tags": [ "Manul" ], "code": 200 }
mlemid - returns one mlem image by id in JSON.
https://mlemtech.com/api/randommlem?mlemid=[id]
Parameters:
mlemid - mlem id
https://mlemtech.com/api/randommlem?mlemid=1
{ "id": 1, "url": "https:\/\/mlemtech.com\/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://mlemtech.com/api/tags
No parameters
https://mlemtech.com/api/tags
[ "Aardvark", "Anteater", "Bat", "Bat-eared fox", "Bear" ]
Amount of tags in response example is limited to reduce length of the example.