Rust
Facepunch Release CraggyIsland 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/11130983json
{
"response": {
"fps": 238,
"fps_avg": 237,
"entities_count": 3639,
"world_seed": 341324388,
"world_size": 1024,
"steam_id": "90284807831641115",
"domain": null,
"id": 11130983,
"ip": "57.128.211.49",
"port": 28015,
"query": 28016,
"color": 0,
"city": "Warsaw",
"description": "\nThis is an official development test server owned and operated by Facepunch. Testing may interrupt gameplay and progress could be lost at any time.\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": 1772982736,
"score": 0,
"last_online": 1776871225,
"icon": null,
"name": "Facepunch Release CraggyIsland",
"connect": "57.128.211.49:28015",
"request": "57.128.211.49:28016",
"map": "CraggyIsland",
"gamemode": "Survival",
"version": "2603",
"numplayers": 0,
"maxplayers": 0,
"bots": 0,
"secured": true,
"private": false,
"country": "PL",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1770397328,
"last_update": 1776871225,
"banned": false,
"wipe": 1759317669,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 4640,
"language": "pl",
"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/11130983");
$data = json_decode($json, true);
var_dump($data);