|SEA| MALAYSIA X INDONESIA |SOLO|DUO|TRIO| 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"fps": 158,
"fps_avg": 147,
"entities_count": 104620,
"world_seed": 1462796836,
"world_size": 4250,
"steam_id": "90286907718728728",
"domain": null,
"id": 10605762,
"ip": "139.99.37.83",
"port": 19800,
"query": 19803,
"project_id": null,
"color": 0,
"city": "Singapore",
"description": "\nWelcome to the Server \r\n Pure Vanilla \r\n Weekly Map Wipe \r\n Blueprints Wipe Monthly \r\n Active Admins (silent and always watching) \r\n No Cheaters \r\n Toxic Free Community (teamwork or betrayal, your choice!) \r\n SURVIVE,HUNT,BUILD,DOMINATE \r\n No allies,No peace,Only RUST",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1781240033,
"last_online": 1781349626,
"icon": null,
"name": "|SEA| MALAYSIA X INDONESIA |SOLO|DUO|TRIO|",
"connect": "139.99.37.83:19800",
"request": "139.99.37.83:19803",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2627",
"numplayers": 3,
"maxplayers": 100,
"bots": 0,
"secured": true,
"private": false,
"country": "SG",
"status": true,
"votes": 0,
"points": 61,
"add_date": 1763321692,
"last_update": 1781349626,
"banned": false,
"wipe": 1781240245,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 2415,
"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.cn/servers/10605762");
$data = json_decode($json, true);
var_dump($data);