GithubHelp home page GithubHelp logo

arcticzeroo / mineplexapi Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gamilelmalek/mineplexapi

0.0 2.0 1.0 1.7 MB

Documentation for the Mineplex Public API

JavaScript 13.04% TypeScript 8.88% HTML 78.08%

mineplexapi's Introduction

Mineplex Public API

Welcome to the Mineplex Public API! We provide PC and PE oriented endpoints for gathering information on players, network status, and more.

General

All API endpoints utilize the HTTP GET method. Authorization & rate-limiting are handled via an API key.

The base URL for our API is https://api.mineplex.com.

PC/PE APIs are avaiable under the base at /pc and /pe respectively.

Documentation

All documentation is written following the OpenAPI 2.0 Specification.

Contributing: Make changes to our docs here by submitting a pull request containing changes to the underlying data files. Not the markdown files themself!

For convenience you may also view the swagger-ui documentation for PC and PE. (Provides an interface to interact with our API instead of just reading boring docs)

PC API

The PC API is hosted at https://api.mineplex.com/pc, and corresponds to the Mineplex Network on Minecraft PC/Mac Edition. (us.mineplex.com/eu.mineplex.com)

Authorization

We use API keys, similar to the majority of RESTful APIs, when authorizing your request.

Obtaining a key:
Each one of these keys is bound to a Minecraft account. As of now, you must be apart of the early access program to obtain a key; once we're out of that phase you'll be able to grab these in-game via /api.

Using your key:
API keys are passed in through the query string apiKey. (we'll also be adding support for a request header to hold your key as well shortly)

Note: Please do not share your key with anyone. You will be held responsible for anything that happens from your key, so keep it in check!

Caching

We implement server & client side caching for specific high traffic endpoints. Take note of the Cache-Control header for client sided caching.

Rate Limiting

All keys have a starting limit of 3000 requests per hour (almost one request per second). We use the following HTTP headers to specify rate data in each request:

HTTP Header Meaning
X-RateLimit-Limit Your total requests allowed per hour
X-RateLimit-Remaining The amount of requests you have remaining in this time period
X-RateLimit-Reset The time at which your current rate limit period resets (in UTC epoch seconds)

If you have exceeded your rate limit, the API will respond with HTTP 429 Too Many Requests.

Maybe what you're building makes a bit more requests than what we allow normally? Send an email our way including a brief explanation of what requires a slack on the rate-limiting.

PE API

Soon™

mineplexapi's People

Contributors

shaunbennett avatar williamburns avatar outdatedversion avatar deswurstes avatar

Watchers

James Cloos avatar  avatar

Forkers

t3hero

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.