API dla #10 DevilRust TEST SERVER
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 171,
"fps_avg": 165,
"entities_count": 105367,
"world_seed": 426582388,
"world_size": 4500,
"steam_id": 90286544826647580,
"domain": null,
"id": 11511191,
"ip": "62.122.213.183",
"port": 20510,
"query": 20511,
"color": 0,
"city": "Moscow",
"description": null,
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780605205,
"last_online": 1780489959,
"icon": null,
"name": "#10 DevilRust TEST SERVER",
"connect": "62.122.213.183:20510",
"request": "62.122.213.183:20511",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2625",
"numplayers": 0,
"maxplayers": 1,
"bots": 0,
"secured": true,
"private": false,
"country": "RU",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1779353839,
"last_update": 1780605205,
"banned": false,
"wipe": 1779317097,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 11389,
"language": "ru",
"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/11511191");
$data = json_decode($json, true);
var_dump($data);