Player Information
-
PLEASE NOTE: The contents of this page are intended to be used by developers only. While you are more than welcome to experiment and create amazing stuff with these APIs, we can't guarantee we'll be able to support you in doing so. Anything made with our APIs must adhere to the EMC Terms & Conditions and API Rules.The Player Information APIs can be used to show information about a specified player, including first login, last seen, vote bonus, and more.
View the API Reference page for information concerning the use of EMC's APIs.
Endpoint(top)
You can access this API by performing a GET request on the URL https://empireminecraft.com/api/pinfo.php?name=Username. You should replace the 'Username' with the name of the player you want the information of.
Response(top)
Example Response:
Code:
{"user_id":"164784","uuid":"91e42f39-0419-4fa3-bf2e-47963075eccf","name":"ContributionTeam","first_login":"1405417248","last_seen":"2147483647","votebonus":"249","lastvote":"2147483647","votemax":"259","max_res":"2","texp_month":"0","texp_life":"14","derelict_protection":"1","user_group":"1","server_id":"2","banned":"0","banned_by":null,"last_votes":{"minecraftmpcom":2147483647,"serverpactcom":2147483647,"topgorg":2147483647}}
Decoding(top)
The results are given in name-value pairs, meaning each data point is listed as "attribute":"value". A spoiler below lists each of the Attributes, and what their values mean.
Did we miss something?