Rust
[EA] Facepunch 1 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/10025185json
{
"response": {
"fps": 188,
"fps_avg": 185,
"entities_count": 188449,
"world_seed": 1161352203,
"world_size": 4500,
"steam_id": "90284545537427471",
"domain": null,
"id": 10025185,
"ip": "103.194.164.42",
"port": 28015,
"query": 28016,
"color": 0,
"city": "Tokyo",
"description": "![[EA] Facepunch 1](https://files.facepunch.com/Alistair/124/07/2025/9593/fpos.png)\nThis is an official server owned and operated by Facepunch.\r\n\r\nPeople are free to speak whatever language they like. Don't be surprised if you get banned for being abusive.",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1776054711,
"score": 1,
"last_online": 1776401420,
"icon": null,
"name": "[EA] Facepunch 1",
"connect": "103.194.164.42:28015",
"request": "103.194.164.42:28016",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2623",
"numplayers": 20,
"maxplayers": 300,
"bots": 0,
"secured": true,
"private": false,
"country": "JP",
"status": true,
"votes": 0,
"points": 64,
"add_date": 1755037745,
"last_update": 1776401420,
"banned": false,
"wipe": 1775151046,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 937,
"language": "ja",
"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/10025185");
$data = json_decode($json, true);
var_dump($data);