API dla ShadowRust #3 [ X3 | SOLO/DUO/TRIO | LOOT+ ]
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 40,
"fps_avg": 39,
"entities_count": 59025,
"world_seed": 617885202,
"world_size": 3500,
"steam_id": "90286598549254156",
"domain": null,
"id": 10780726,
"ip": "176.212.127.83",
"port": 28600,
"query": 28601,
"color": 0,
"city": "Barnaul",
"description": "![ShadowRust #3 [ X3 | SOLO/DUO/TRIO | LOOT+ ]](https://i.postimg.cc/B60fcYfq/imgonline-com-ua-Resize-d1-WN0-QWoe5.png)\nWelcome to the ShadowRust project!\r\nOn our servers, we provide the best Rust gameplay.\r\nWe use many balanced plugins to enhance the quality of the game.\r\nOur servers maintain a huge uptime,\r\nto improve your gaming experience on our servers!\r\n - Recyclers in safe zone\r\n - Expanded workbench range\r\n - Blueprints for the entire team\r\n - Easy development\r\n - Constant innovations",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780583076,
"last_online": 1780584033,
"icon": null,
"name": "ShadowRust #3 [ X3 | SOLO/DUO/TRIO | LOOT+ ]",
"connect": "176.212.127.83:28600",
"request": "176.212.127.83:28601",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2625",
"numplayers": 0,
"maxplayers": 200,
"bots": 0,
"secured": true,
"private": false,
"country": "RU",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1766872439,
"last_update": 1780584033,
"banned": false,
"wipe": 1780535927,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 3932,
"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/10780726");
$data = json_decode($json, true);
var_dump($data);