4
4
< meta charset ="UTF-8 " />
5
5
< link rel ="icon " type ="image/png " href ="/icon.png " />
6
6
< link rel ="stylesheet " href ="/index.css " />
7
- < link
8
- rel ="stylesheet "
9
- href ="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/default.min.css "
10
- />
11
7
< meta name ="viewport " content ="width=device-width " />
12
8
< meta
13
9
property ="og:title "
@@ -45,7 +41,19 @@ <h1>MCping API</h1>
45
41
Bedrock API response is the same, with the caveat of never returning the
46
42
icon. The bedrock player list may also be synthetic.
47
43
</ p >
48
- < pre > < code id ="examplePingResponse " class ="language-json "> </ code > </ pre >
44
+ < pre > < code id ="examplePingResponse "> {
45
+ "latency": 47,
46
+ "players": {
47
+ "online": 0,
48
+ "maximum": 20,
49
+ "sample": []
50
+ },
51
+ "motd": "Minecraft Support Discord Testing Server",
52
+ "version": {
53
+ "protocol": 765,
54
+ "broadcast": "1.20.4"
55
+ }
56
+ }</ code > </ pre >
49
57
< p >
50
58
There is also a Mojang Services API, at
51
59
< a href ="/api/services "> /api/services</ a > . This is useful for checking if
@@ -54,7 +62,11 @@ <h1>MCping API</h1>
54
62
< code > DefiniteProblems</ code > , < code > PossibleProblems</ code > , and
55
63
< code > Operational</ code > .
56
64
</ p >
57
- < pre > < code id ="exampleServicesResponse " class ="language-json "> </ code > </ pre >
58
- < script src ="/api.js " type ="module "> </ script >
65
+ < pre > < code class ="language-json "> {
66
+ "Xbox services": "Operational",
67
+ "SessionServer": "Operational",
68
+ "Mojang API": "Operational",
69
+ "Minecraft API": "Operational"
70
+ }</ code > </ pre >
59
71
</ body >
60
72
</ html >
0 commit comments