API dla Komorebi Space
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": "90286589572479001",
"domain": null,
"id": 11670364,
"ip": "68.132.49.53",
"port": 29004,
"query": 29004,
"color": 0,
"city": "Huntington",
"description": null,
"game": 244850,
"owner": null,
"boosts": 1,
"last_offline": 1780368849,
"last_online": 1780583546,
"icon": null,
"name": "Komorebi Space",
"connect": "68.132.49.53:29004",
"request": "68.132.49.53:29004",
"map": null,
"gamemode": "Space Engineers",
"version": "1209024",
"numplayers": 9,
"maxplayers": 0,
"bots": 31,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1780180465,
"last_update": 1780583546,
"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": 2945,
"language": "en",
"parked": false,
"app": {
"id": 97,
"steam_id": 244850,
"name": "Space Engineers",
"url": "space-engineers"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/11670364");
$data = json_decode($json, true);
var_dump($data);