Rust
API для Server Moved -> connect duo.rustgaming.net
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/10412583json
{
"response": {
"steam_id": null,
"domain": null,
"id": 10412583,
"ip": null,
"port": null,
"query": null,
"color": 0,
"city": "London",
"description": "\nWelcome to RustGaming.net Solo/Duo Vanilla \r\n \r\n → Group Limit: 2 \r\n → Map Size: 3200 (w Launch Site) \r\n → Minicopters spawn on roads \r\n → Merged Outpost & Extra recyclers \r\n \r\n Wipe Schedule: \r\n - Full every Sunday \r\n - Map every Thursday \r\n 2 PM BST (UTC+1) \r\n \r\n Active non playing admins \r\n \r\n Rules: https://rustgaming.net/rules \r\n Discord: https://rustgaming.net/discord \r\n Store: https://rustgaming.net/store \r\n\r\n gm.link/u140140",
"game": 252490,
"owner": 140140,
"boosts": 1,
"last_offline": 1771048267,
"score": 0,
"last_online": 1770111613,
"icon": null,
"name": "Server Moved -> connect duo.rustgaming.net",
"connect": null,
"request": null,
"map": "Wiped 44 Hours ago",
"gamemode": "Survival",
"version": null,
"numplayers": 0,
"maxplayers": 100,
"bots": 0,
"secured": false,
"private": false,
"country": "GB",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1759823746,
"last_update": 1771048267,
"banned": false,
"wipe": null,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 8214,
"language": "en",
"parked": true,
"app": {
"id": 12,
"steam_id": 252490,
"name": "Rust",
"url": "rust"
},
"server_owner": {
"username": "Seko",
"avatar": "451b07b5-cf01-4936-9867-2e6c549ac84c.jpg",
"last_online": 1762378110
},
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/10412583");
$data = json_decode($json, true);
var_dump($data);