-
Notifications
You must be signed in to change notification settings - Fork 2
Home
This API is publicly hosted on Api.Sprax2013.de. The API uses its own cache and CloudFlare. For the best performance, you should pay attention to the expiry headers.
Route | Description |
---|---|
/mc | Like the original Mojang-API (for Minecraft) but with a cache to prevent rate limiting and more |
|
|
/status | The api's status (not cached) |
Please set a custom User-Agent! I don't want to block you for extensive use but I would love to see who or witch projects are using my API. Additionally, keep in mind that your User-Agent may be made public in the future to provide some fancy graphs and statistics.
This API always sends and receives JSON formatted bodies, unless specified. If your request was blocked by CloudFlare (non 200 status code), you're likely to get HTML instead of JSON.
Errors reported by the API currently consist of two parts: HTTP Status Code and an JSON-Body
Example:
{
"error": "Bad Request",
"message": "Missing or invalid url parameters",
"details": [
{
"param": "user",
"condition": "user.length > 0"
}
]
}
-
error
always is a string, normally containing an explanaition of the HTTP Status Code. -
message
tries to explain what is wrong -
details
(not always there) gives a more detailed explanation on how to fix this error
This API in generall is not rate limited. Please make sure to take a look on the other wiki pages for further information for this.
The API is protected by CloudFlare, to block bad behaving clients. If you are having trouble, don't hesitate to open an issue.