Hurtworld
新开服/10倍/矿弓/流星/宝箱 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/11394229json
{
"response": {
"steam_id": null,
"domain": null,
"id": 11394229,
"ip": null,
"port": null,
"query": null,
"color": 0,
"city": "Beijing",
"description": null,
"game": 393420,
"owner": 183962,
"boosts": 1,
"last_offline": 1775800286,
"score": 0,
"last_online": 1774928415,
"icon": null,
"name": "新开服/10倍/矿弓/流星/宝箱",
"connect": null,
"request": null,
"map": "群1073116496",
"gamemode": "Hurtworld",
"version": null,
"numplayers": 0,
"maxplayers": 100,
"bots": 0,
"secured": true,
"private": true,
"country": "CN",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1774596921,
"last_update": 1775800286,
"banned": false,
"wipe": null,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": null,
"pvp": 1,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 63,
"language": "zh",
"parked": true,
"app": {
"id": 134,
"steam_id": 393420,
"name": "Hurtworld",
"url": "hurtworld"
},
"server_owner": {
"username": "zuiluo",
"avatar": "5dd75965-8973-406a-9dce-2cd1fad2b9a5.png",
"last_online": 1775221688
},
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/11394229");
$data = json_decode($json, true);
var_dump($data);