Images

Image-related endpoints

get
Get Image

https://api.muetab.xyz/getImage
This endpoint allows you to get an image. If ID or category aren't specified it will return a random image from all categories. Note that the category query works for both "Outdoors" and "outdoors", as an example.
Request
Response
Request
Path Parameters
id
optional
number
Returns information for specific image id
Query Parameters
category
optional
string
Returns random image from specific category
Response
200: OK
{"id":186,"category":"Outdoors","file":"https://cdn.derpyenterprises.org/mue/78ff331a7aa4bda3.jpg","photographer":"David Ralph","location":"Cotswold Wildlife Park"}
404: Not Found
{"message":"Category not found."}

get
Get Categories

https://api.muetab.xyz/getCategories
This endpoint returns all categories in an array.
Request
Response
Request
‚Äč
Response
200: OK
["Outdoors","Vehicles","Games"]