Rust
Survivors.gg #2 [ 2x Vanilla ] WIPED 21.04 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/10661512json
{
"response": {
"fps": 51,
"fps_avg": 51,
"entities_count": 178070,
"world_seed": 11973,
"world_size": 3750,
"steam_id": 90284740682649630,
"domain": null,
"id": 10661512,
"ip": "185.248.134.194",
"port": 28014,
"query": 28015,
"color": 0,
"city": "London",
"description": "![Survivors.gg #2 [ 2x Vanilla ] WIPED 21.04](https://www.survivors.gg/temp/server2.png)\nJoin Us: www.discord.survivors.gg \r\n\r\n - Map wipes every Tuesday 16:00 CEST \r\n - Fullwipes every Saturday 12:00 CEST \r\n - Max Team: 8 \r\n - 2x Gather Rates. \r\n - Half smelt and crafting speeds \r\n - 5min nights \r\n - Fishing Village and Large Barn with Recycler",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1776744798,
"score": 0,
"last_online": 1776801013,
"icon": null,
"name": "Survivors.gg #2 [ 2x Vanilla ] WIPED 21.04",
"connect": "185.248.134.194:28014",
"request": "185.248.134.194:28015",
"map": "www.discord.gg/survivors",
"gamemode": "Survival",
"version": "2623",
"numplayers": 555,
"maxplayers": 575,
"bots": 0,
"secured": true,
"private": false,
"country": "GB",
"status": true,
"votes": 1,
"points": 124,
"add_date": 1764544752,
"last_update": 1776801013,
"banned": false,
"wipe": 1776780026,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 40,
"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/10661512");
$data = json_decode($json, true);
var_dump($data);