API для Rust
JSON для программ, сайтов и прочего
text
json
{
"response": {
"fps": 60,
"fps_avg": 59,
"map_url": null,
"map_kind": "procedural",
"map_name": "Procedural Map",
"map_seed": 1005026026,
"map_size": 3000,
"map_revision": 288,
"entities_count": 45467,
"steam_id": "90292228698417157",
"domain": null,
"id": 15256133,
"ip": "85.175.6.244",
"port": 28400,
"query": 28401,
"project_id": null,
"color": 0,
"city": "Омск",
"description": null,
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1788648357,
"last_online": 1788656598,
"icon": null,
"name": "Rust",
"connect": "85.175.6.244:28400",
"request": "85.175.6.244:28401",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2633",
"numplayers": 1,
"maxplayers": 100,
"bots": 0,
"secured": true,
"private": false,
"country": "RU",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1788648357,
"last_update": 1788656598,
"ban_reason": null,
"banned": false,
"hidden": false,
"wipe": 1788647298,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 11854,
"language": "ru",
"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/15256133");
$data = json_decode($json, true);
var_dump($data);