API dla Sub to InterJava's Projects
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": null,
"domain": "mc.orange.run.place",
"id": 10658791,
"ip": "78.61.47.144",
"port": 25565,
"query": 25565,
"project_id": null,
"color": 0,
"city": "Kaunas",
"description": null,
"game": 9000034,
"owner": null,
"boosts": 1,
"last_offline": 1779013378,
"last_online": 1780870334,
"icon": null,
"name": "Sub to InterJava's Projects",
"connect": "mc.orange.run.place:25565",
"request": "78.61.47.144:25565",
"map": null,
"gamemode": null,
"version": "26.1.2",
"numplayers": 0,
"maxplayers": 50,
"bots": 0,
"secured": null,
"private": null,
"country": "LT",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1764543698,
"last_update": 1780870334,
"banned": false,
"wipe": null,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": null,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 3829,
"language": "lt",
"parked": false,
"app": {
"id": 169,
"steam_id": 9000034,
"name": "Minecraft",
"url": "minecraft"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/10658791");
$data = json_decode($json, true);
var_dump($data);