我的世界服务器信息查询api,Minecraft API

All requests should be sent to /server/status or /server/query.

You may add two parameters, an ip and a port.

JSONP is not supported as CORS is enabled.

Please do not send more than one request per client per minute as data is cached server side for one

minute.

An example request would look like https://mcapi.us/server/status?ip=s.nerd.nu. If you

are

using a non-standard 25565 port, you may include the port too, like this:

https://mcapi.us/server/status?ip=s.nerd.nu&port=25565.

Alternatively, you can use our JavaScript library. Here's a small example of it in use.

My awesome server is currently !

MinecraftAPI.getServerStatus('s.nerd.nu', {

port: 25565 // optional, only if you need a custom port

}, function (err, status) {

你可能感兴趣的:(我的世界服务器信息查询api)