API dla Debug server
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 212,
"fps_avg": 212,
"entities_count": 23016,
"world_seed": 100816564,
"world_size": 2200,
"steam_id": "90286719557010445",
"domain": null,
"id": 11759452,
"ip": "5.57.35.91",
"port": 28015,
"query": 28017,
"project_id": null,
"color": 0,
"city": "Tehran",
"description": null,
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780931715,
"last_online": 1780959114,
"icon": null,
"name": "Debug server",
"connect": "5.57.35.91:28015",
"request": "5.57.35.91:28017",
"map": "Procedural Map",
"gamemode": "Vanilla",
"version": "2627",
"numplayers": 0,
"maxplayers": 2,
"bots": 0,
"secured": true,
"private": false,
"country": "IR",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1780931715,
"last_update": 1780959114,
"banned": false,
"wipe": 1780602984,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 10035,
"language": "fa",
"parked": false,
"app": {
"id": 12,
"steam_id": 252490,
"name": "Rust",
"url": "rust"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/11759452");
$data = json_decode($json, true);
var_dump($data);