User:Eleanorthesow/API research

From MinecraftOnline
Jump to navigation Jump to search

MCO has an "API" ; the main endpoint is https://minecraftonline.com/cgi-bin/. This API has no documentation, and this page is meant to fetch some. Feel free to add content.

Player related

Note: None of these are case sensitive.

Time connected

First seen

Last seen

Ban reason

General information

Other

Other

Output of the getnearestplace API
  • Get nearest place : https://minecraftonline.com/cgi-bin/getnearestplace, returns a json output (see picture). The input works as follow :
      • If there is 1 number, it will assumed to be both the x and z coordinate.
      • If there are 2 numbers, the first number will be the x coordinate and the 2nd the z coordinate (the 2 numbers are separated by commas)
      • If there are 3 numbers, the first number will be the x coordinate, the 2nd the y coordinate and the 3rd the z coordinate (the 3 numbers are separated by commas)
    • The system doesn't accept decimal numbers. If you put a . after a number and then another number, the 2 numbers will be multiplied. It do accepts negative number however (of course).
    • Example URL : https://minecraftonline.com/cgi-bin/getnearestplace?-6145,40,-18060
  • Get map tile : https://minecraftonline.com/cgi-bin/getmaptile, returns a 384 by 384 PNG image
    • Arguments are as follow : <x coordinate>,<y coordinate>,<z coordinate>,<zoom>,<*Day*/*Nether*/*End*>
    • Note : the map won't slide up a bit if you change only 1 block of the coordinate. It must be a significant number, which changes for every zoom (might do a list on it soon)
    • Example URL : https://minecraftonline.com/cgi-bin/getmaptile?4,34,7,2,*End*

Notes

If any player related request is asked with an unknown player, it'll return NOTFOUND. If the player only had 1 session, all but the first seen will fail with the error UNKNOWN.