Skip to content
This repository has been archived by the owner on Nov 8, 2019. It is now read-only.
/ HasPaid Public archive

Rest API for bypassing Mojang's API ratelimits

License

Notifications You must be signed in to change notification settings

crejk/HasPaid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HasPaid

Check if the player owns a premium minecraft account purchased from mojang.

Limitations

Because of the Mojang API ratelimit, we can send only 600 requests every 10 minutes.

How it works

Every second, up to 100 usernames will be verified using the mojang api in a single request.

why every second?

600 requests / 10 minutes = 60 requests per minute -> request per second.

Why max 100 nicknames per request

Can't send more than that.

TODO

  • key (must have key to get response from api)

Endpoints

Method Query parameters Success status codes Error status codes
GET /haspaid?name={name} name 200 404

Response samples

GET /haspaid?name=crejk

true

Usage

URL url = new URL("http://localhost:8080/haspaid?name=crejk");
BufferedReader reader = new BufferedReader(new InputStreamReader(url.openStream()));
System.out.println("Player is: " + (Boolean.valueOf(reader.readLine()) ? "cool" : "vocan"));

About

Rest API for bypassing Mojang's API ratelimits

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages