randommlem - returns one random mlem image in JSON.
https://mlemtech.com/api/randommlemParameters:
https://mlemtech.com/api/randommlem
{ "id": 3764, "url": "https:\/\/mlemtech.com\/mlems\/1585184661458.jpg", "width": 1200, "height": 1600, "orientation": "portrait", "brightness": "dark", "tags": [ "Cat" ], "code": 200 }
https://mlemtech.com/api/randommlem?tag=Cat
{ "id": 5712, "url": "https:\/\/mlemtech.com\/mlems\/1587173823714.jpg", "width": 3024, "height": 4032, "orientation": "portrait", "brightness": "dark", "tags": [ "Cat" ], "code": 200 }
https://mlemtech.com/api/randommlem?minwidth=700&maxwidth=1000&minheight=700&maxheight=1000
{ "id": 12741, "url": "https:\/\/mlemtech.com\/mlems\/1609032538727.jpg", "width": 806, "height": 908, "orientation": "portrait", "brightness": "dark", "tags": [ "Cat" ], "code": 200 }
https://mlemtech.com/api/randommlem?orientation=square&brightness=dark
{ "id": 7969, "url": "https:\/\/mlemtech.com\/mlems\/1589683573888.jpg", "width": 1440, "height": 1440, "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.