Rust
API для 【PVE】原倍仿官|突袭据点|NPC|死亡不掉落|萌新
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/9905754json
{
"response": {
"fps": 61,
"fps_avg": 62,
"entities_count": 106931,
"world_seed": 426212956,
"world_size": 4000,
"steam_id": "90285634297930771",
"domain": null,
"id": 9905754,
"ip": "103.217.192.121",
"port": 29018,
"query": 29029,
"color": 0,
"city": "Beijing",
"description": "\n本服是纯仿官又能抄家的PVE,专注于休闲又不爱打架的朋友\r\n 半月清,出门记得随手关门,箱子上锁,萌新较多\r\n萌新QQ交流群:1005221297 骂人开挂直接ban \r\n 禁止- -切偷、抢行为噢,禁止外露炮台,武直坦克先打的是谁的",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1778530382,
"score": 0,
"last_online": 1778598142,
"icon": null,
"name": "【PVE】原倍仿官|突袭据点|NPC|死亡不掉落|萌新",
"connect": "103.217.192.121:29018",
"request": "103.217.192.121:29029",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2625",
"numplayers": 6,
"maxplayers": 100,
"bots": 0,
"secured": true,
"private": false,
"country": "CN",
"status": true,
"votes": 0,
"points": 62,
"add_date": 1753909953,
"last_update": 1778598142,
"banned": false,
"wipe": 1778178292,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 1788,
"language": "zh",
"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/9905754");
$data = json_decode($json, true);
var_dump($data);