MrIvanPlays API

List of API requests available

It looks like you've hit a request which doesn't exist or typed only "api.mrivanplays.com". That's why we're listing all available requests down bellow


TEMPORARILY DISABLED

https://api.mrivanplays.com/spigot/download/[resource id] - downloads the spigot resource with the specified id (latest version). This is a thread-blocking request! Run it always on asynchronous threads.
A successful request will give you a input stream of the jar.
Error responses:
{"error": 404, "message": "Invalid resource id '[insert invalid resource id here]'"}
{"error": 404, "message": "Resource cannot be found on spigot"}
{"error": 403, "message": "Resource is premium"}
{"error": 403, "message": "Cannot download resource which has external download link."}
{"error": 403, "message": "Resource name invalid."}


DISCLAIMER: This API will be shut down at 1st of January, 2020

https://api.mrivanplays.com/trees - retrieves the count of trees that are being planted by https://teamtrees.org/

Examples of successful requests:

Example request url: https://api.mrivanplays.com/trees
The specified link will output this:
{"success":true,"trees":trees,"treesLeft":treesleft,"percentDone":percentdone,"daysLeft":daysleft,"lastDonation":{"nameFrom":"namefrom","treesDonated":treesdonated,"donatedAt":"donatedAt","message":"message"},"topDonation":{"nameFrom":"namefrom","treesDonated":treesdonated,"donatedAt":"donatedat","message":"message"}}

Example request url: https://api.mrivanplays.com/trees?prettyPrinting=true
The specified link will output pretty printed json response (easier to read for humans).
Error responses:
{"success": false, "error": 503, "message": "teamtrees.org is being overloaded with traffic"}
{"success": false, "error": 408, "message": "teamtrees.org timed out"}
{"success": false, "error": 400, "message": "Other error occurred while trying to retrieve data"}