Rust
API для RUSTLAB | Solo/Duo | Vanilla | Just Wiped 18/04 10:00 CET
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/11131049json
{
"response": {
"fps": 157,
"fps_avg": 165,
"entities_count": 110768,
"world_seed": 1,
"world_size": 3750,
"steam_id": "90284797674703885",
"domain": null,
"id": 11131049,
"ip": "157.85.95.53",
"port": 28015,
"query": 28016,
"color": 0,
"city": "Frankfurt am Main",
"description": "\nMap - Monthly @ Force\r\nBPs - Monthly @ FacePunch Update, \r\n→ Group limit: 2\r\n→ 50% upkeep\r\n→ Mini's spawn on roads\r\n→ Map size: 3750+FPS, \r\nRules:\r\n- No hacking / scripting\r\n- No intentional bug abuse\r\n- No EAC / FP banned alt\r\n- No ban evading\r\n- No racism, \r\nActive non playing admins",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1776833598,
"score": 0,
"last_online": 1776840617,
"icon": null,
"name": "RUSTLAB | Solo/Duo | Vanilla | Just Wiped 18/04 10:00 CET",
"connect": "157.85.95.53:28015",
"request": "157.85.95.53:28016",
"map": "Custom Map",
"gamemode": "Survival",
"version": "2623",
"numplayers": 3,
"maxplayers": 75,
"bots": 0,
"secured": true,
"private": false,
"country": "DE",
"status": true,
"votes": 0,
"points": 61,
"add_date": 1770397331,
"last_update": 1776840617,
"banned": false,
"wipe": 1776497522,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 1894,
"language": "de",
"parked": false,
"app": {
"id": 12,
"steam_id": 252490,
"name": "Rust",
"url": "rust"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/11131049");
$data = json_decode($json, true);
var_dump($data);