Difference between revisions of "Minecraft.net"

From wiki.vg
Jump to navigation Jump to search
(Created page with "I googled "site:minecraft.net" trying to find some of the URLs that one can access Minecraft database info with. Here's what I found (I have also posted this info [http://www....")
 
m (fix)
 
(9 intermediate revisions by 4 users not shown)
Line 1: Line 1:
I googled "site:minecraft.net" trying to find some of the URLs that one can access Minecraft database info with. Here's what I found (I have also posted this info [http://www.minecraftforum.net/topic/90270-fact-urls-like-haspaidjsp/page__gopid__8545080#entry8545080 here]):
+
This page serves to document the various access mechanisms available to the Minecraft web services.
 
 
  
 
  <nowiki>http://www.minecraft.net/haspaid.jsp?user=<USERNAME></nowiki>
 
  <nowiki>http://www.minecraft.net/haspaid.jsp?user=<USERNAME></nowiki>
Used to check if an account is premium or not. Returns true if the username is a premium Minecraft account, returns false otherwise.
+
Used to check if an account is premium or not. Returns true if the username is a premium Minecraft account, returns false otherwise. This should be used with caution as it has been slated for removal by Mojang.
 
 
  
 
  <nowiki>http://session.minecraft.net/game/getversion.jsp?user=<USERNAME>&password=<PASSWORD>&version=12
 
  <nowiki>http://session.minecraft.net/game/getversion.jsp?user=<USERNAME>&password=<PASSWORD>&version=12
Line 11: Line 9:
 
OR
 
OR
 
https://login.minecraft.net/?user=<USERNAME>&password=<PASSWORD>&version=12</nowiki>
 
https://login.minecraft.net/?user=<USERNAME>&password=<PASSWORD>&version=12</nowiki>
The Minecraft launcher uses this to authenticate logins. If the username and password are valid for a premium account, returns "<[[wikipedia:Unix time|POSIX]] time>:<hash of password???>:<username with correct capitalization>:<freshly generated session id>:". If username and password are invalid, returns "Bad login". If the username and password are correct, but the account isn't premium, returns "User not premium". If the given version number is less than 12, returns "Old version". The username is not case-sensitive, but naturally, the password is.
+
The Minecraft launcher uses this to authenticate logins. If the username and password are valid for a premium account, returns "<[[wikipedia:Unix time|POSIX]] time>:<hash of password???>:<username with correct capitalization>:<freshly generated session id>:<UID (Presently unused)>". If username and password are invalid, returns "Bad login". If the username and password are correct, but the account isn't premium, returns "User not premium". If the given version number is less than 12, returns "Old version". The username is not case-sensitive, but naturally, the password is. Both GET and POST methods are supported.
 
 
It is also possible to cause an error that breaks this page. See [[User:Oxguy3/Minecraft.net API/Breaking getversion.jsp|Breaking getversion.jsp]] for more info.
 
 
 
  
 
  <nowiki>http://session.minecraft.net/game/joinserver.jsp?user=<USERNAME>&sessionId=<SESSION ID></nowiki>
 
  <nowiki>http://session.minecraft.net/game/joinserver.jsp?user=<USERNAME>&sessionId=<SESSION ID></nowiki>
 
This link seems to be called when a server with online-mode=true checks if it should allow a player to join the game. The session ID is generated by the launcher when you log in (you can also generate them with the "getversion.jsp" link above). This URL will return "OK" if the given session ID is the last one to have been generated for that username; otherwise it will return "Bad login".
 
This link seems to be called when a server with online-mode=true checks if it should allow a player to join the game. The session ID is generated by the launcher when you log in (you can also generate them with the "getversion.jsp" link above). This URL will return "OK" if the given session ID is the last one to have been generated for that username; otherwise it will return "Bad login".
 
  
 
  <nowiki>http://skins.minecraft.net/MinecraftSkins/<USERNAME>.png</nowiki>
 
  <nowiki>http://skins.minecraft.net/MinecraftSkins/<USERNAME>.png</nowiki>
Returns the skin for a given username. Case-sensitive, returns an XML access denied page if the skin doesn't exist.
+
Returns the skin for a given username. Case-sensitive, returns an HTTP 404 error if the skin doesn't exist.
  
 
  <nowiki>http://skins.minecraft.net/MinecraftCloaks/<USERNAME>.png</nowiki>
 
  <nowiki>http://skins.minecraft.net/MinecraftCloaks/<USERNAME>.png</nowiki>
Returns the skin for a given username. Case-sensitive, returns an XML access denied page if the skin doesn't exist.
+
Returns the cape for a given username. Case-sensitive, returns an HTTP 404 error if the user does not have a cape.
 
 
  
 
  <nowiki>http://www.minecraft.net/heartbeat.jsp?port=27015&users=0&max=0&name=blah&public=false&version=7&salt=1234123412341234</nowiki>
 
  <nowiki>http://www.minecraft.net/heartbeat.jsp?port=27015&users=0&max=0&name=blah&public=false&version=7&salt=1234123412341234</nowiki>
I think this is used to create the classic server list. I have no idea how all the parameters work (which is why I didn't change them from what I found on the Google page), though some of them you could figure out. Returns a link to a classic server page (have not investigated the effects of the params on the link fully)
+
This is used to create the classic server list. It is documented properly on [[Classic Protocol]]
 
 
  
 
  <nowiki>http://launch.minecraft.net/test.html</nowiki>
 
  <nowiki>http://launch.minecraft.net/test.html</nowiki>
A test page that Mojang asked people to use as they worked on a new launcher for Minecraft. Runs a few processes in the bwoser, then starts a new version of the launcher, which will be downloaded to /.minecraft/launcher as launcher.jar (only known difference between this launcher and the normal one - this launcher has the new logo)
+
A test page that Mojang asked people to use as they worked on a new launcher for Minecraft. Runs a few processes in the browser, then starts a new version of the launcher, which will be downloaded to /.minecraft/launcher as launcher.jar (only known difference between this launcher and the normal one - this launcher has the new logo)
 
 
  
 
  <nowiki>http://launch.minecraft.net/join.html?serverip=<SERVER IP></nowiki>
 
  <nowiki>http://launch.minecraft.net/join.html?serverip=<SERVER IP></nowiki>
 
This link gives a glimpse at a future feature to Minecraft. This page says that, in the future, it will be possible to have Minecraft open and connect to the server IP specified in the URL when you access this link. See it for yourself!
 
This link gives a glimpse at a future feature to Minecraft. This page says that, in the future, it will be possible to have Minecraft open and connect to the server IP specified in the URL when you access this link. See it for yourself!
  
 +
<nowiki>https://login.minecraft.net/benchmark.jsp</nowiki>
 +
Apparently some sort of joke page. It says it is triangulating a satellite and sending benchmark data back to Mojang or whatever, but a look at the source shows it is just an animation. This page no longer functions.
  
<nowiki>https://login.minecraft.net/benchmark.jsp</nowiki>
+
== See also ==
Apparently some sort of joke page. It says it is triangulating a satellite and sending benchmark data back to Mojang or whatever, but a look at the source shows it is just an animation.
+
 
 +
* [[Mojang API]] for newer endpoints located at mojang.com

Latest revision as of 20:49, 11 November 2015

This page serves to document the various access mechanisms available to the Minecraft web services.

http://www.minecraft.net/haspaid.jsp?user=<USERNAME>

Used to check if an account is premium or not. Returns true if the username is a premium Minecraft account, returns false otherwise. This should be used with caution as it has been slated for removal by Mojang.

http://session.minecraft.net/game/getversion.jsp?user=<USERNAME>&password=<PASSWORD>&version=12
OR
http://login.minecraft.net/?user=<USERNAME>&password=<PASSWORD>&version=12
OR
https://login.minecraft.net/?user=<USERNAME>&password=<PASSWORD>&version=12

The Minecraft launcher uses this to authenticate logins. If the username and password are valid for a premium account, returns "<POSIX time>:<hash of password???>:<username with correct capitalization>:<freshly generated session id>:<UID (Presently unused)>". If username and password are invalid, returns "Bad login". If the username and password are correct, but the account isn't premium, returns "User not premium". If the given version number is less than 12, returns "Old version". The username is not case-sensitive, but naturally, the password is. Both GET and POST methods are supported.

http://session.minecraft.net/game/joinserver.jsp?user=<USERNAME>&sessionId=<SESSION ID>

This link seems to be called when a server with online-mode=true checks if it should allow a player to join the game. The session ID is generated by the launcher when you log in (you can also generate them with the "getversion.jsp" link above). This URL will return "OK" if the given session ID is the last one to have been generated for that username; otherwise it will return "Bad login".

http://skins.minecraft.net/MinecraftSkins/<USERNAME>.png

Returns the skin for a given username. Case-sensitive, returns an HTTP 404 error if the skin doesn't exist.

http://skins.minecraft.net/MinecraftCloaks/<USERNAME>.png

Returns the cape for a given username. Case-sensitive, returns an HTTP 404 error if the user does not have a cape.

http://www.minecraft.net/heartbeat.jsp?port=27015&users=0&max=0&name=blah&public=false&version=7&salt=1234123412341234

This is used to create the classic server list. It is documented properly on Classic Protocol

http://launch.minecraft.net/test.html

A test page that Mojang asked people to use as they worked on a new launcher for Minecraft. Runs a few processes in the browser, then starts a new version of the launcher, which will be downloaded to /.minecraft/launcher as launcher.jar (only known difference between this launcher and the normal one - this launcher has the new logo)

http://launch.minecraft.net/join.html?serverip=<SERVER IP>

This link gives a glimpse at a future feature to Minecraft. This page says that, in the future, it will be possible to have Minecraft open and connect to the server IP specified in the URL when you access this link. See it for yourself!

https://login.minecraft.net/benchmark.jsp

Apparently some sort of joke page. It says it is triangulating a satellite and sending benchmark data back to Mojang or whatever, but a look at the source shows it is just an animation. This page no longer functions.

See also

  • Mojang API for newer endpoints located at mojang.com