Rust
API для » ProjectGaming.gg | 3X Vanilla | Solo/Duo/Trio/Quad | 5/11
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/11305681json
{
"response": {
"fps": 229,
"fps_avg": 227,
"entities_count": 41437,
"world_seed": 1337,
"world_size": 3000,
"steam_id": "90285649787624466",
"domain": null,
"id": 11305681,
"ip": "91.229.114.188",
"port": 28015,
"query": 28014,
"color": 0,
"city": "Chicago",
"description": "\nJoin us on Discord! Discord.gg/ProjectGaming\n- Map Wipes Every Monday and Friday @ 2PM ET\n- Blueprint Wipes Every 2 Weeks\n- 3x Server Rates.\n- Max 4 Per Group.\n- Lvl 1 BPs Unlocked.\n- Long Days, Short Nights.\n- More Monument Recyclers.\n- Blueprint Sharing Between Team\n- Custom Maps with High FPS.\n- Active Professional Staff Team.\n- Kits, BGrade, Skinbox, Remove, and Furnace Splitter for everyone.",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1778340785,
"score": 0,
"last_online": 1778591422,
"icon": null,
"name": "» ProjectGaming.gg | 3X Vanilla | Solo/Duo/Trio/Quad | 5/11",
"connect": "91.229.114.188:28015",
"request": "91.229.114.188:28014",
"map": "Wiped 19 Hours Ago",
"gamemode": "Survival",
"version": "2625",
"numplayers": 1,
"maxplayers": 150,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1774592896,
"last_update": 1778591422,
"banned": false,
"wipe": 1778522546,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 4644,
"language": "en",
"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/11305681");
$data = json_decode($json, true);
var_dump($data);