randommlem - returns one random mlem image in JSON.
https://mlemtech.com/api/randommlemParameters:
https://mlemtech.com/api/randommlem
{ "id": 7454, "url": "https:\/\/mlemtech.com\/mlems\/1589095702170.jpg", "width": 750, "height": 1071, "orientation": "portrait", "brightness": "dark", "tags": [ "Cat" ], "code": 200 }
https://mlemtech.com/api/randommlem?tag=Cat
{ "id": 5568, "url": "https:\/\/mlemtech.com\/mlems\/1587009155629.jpg", "width": 3024, "height": 4032, "orientation": "portrait", "brightness": "bright", "tags": [ "Cat" ], "code": 200 }
https://mlemtech.com/api/randommlem?minwidth=700&maxwidth=1000&minheight=700&maxheight=1000
{ "id": 348, "url": "https:\/\/mlemtech.com\/mlems\/1578543211461.jpg", "width": 700, "height": 826, "orientation": "portrait", "brightness": "bright", "tags": [ "Ferret" ], "code": 200 }
https://mlemtech.com/api/randommlem?orientation=square&brightness=dark
{ "id": 12259, "url": "https:\/\/mlemtech.com\/mlems\/1608369460600.jpg", "width": 720, "height": 720, "orientation": "square", "brightness": "dark", "tags": [ "Dog" ], "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.