API для OL'Farts Gaming - Rust PVP Vanilla
JSON для программ, сайтов и прочего
text
json
{
"response": {
"fps": 41,
"fps_avg": 36,
"entities_count": 132775,
"world_seed": 1337,
"world_size": 4800,
"steam_id": "90286603903379456",
"domain": null,
"id": 2330567,
"ip": "216.105.171.133",
"port": 28221,
"query": 28224,
"color": 0,
"city": "Chicago",
"description": "\nWelcome to OL'Farts Gamings Rust Absolutely No Racist Comments in chat or mic. Do not cry hacks in chat. Report them by pressing F7 and reporting it to facepunch. and report it to us through PM in Discord.",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780595663,
"last_online": 1780639226,
"icon": null,
"name": "OL'Farts Gaming - Rust PVP Vanilla",
"connect": "216.105.171.133:28221",
"request": "216.105.171.133:28224",
"map": "Custom Map",
"gamemode": "Survival",
"version": "2627",
"numplayers": 2,
"maxplayers": 100,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 61,
"add_date": 1703792350,
"last_update": 1780639226,
"banned": false,
"wipe": 1780595689,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 1694,
"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/2330567");
$data = json_decode($json, true);
var_dump($data);