The Biotic Slompound 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"steam_id": "90286685818454034",
"domain": null,
"id": 10718068,
"ip": "172.240.236.170",
"port": 20554,
"query": 20029,
"project_id": null,
"color": 0,
"city": "San Jose",
"description": null,
"game": 427410,
"owner": null,
"boosts": 1,
"last_offline": 1780773201,
"last_online": 1780832462,
"icon": null,
"name": "The Biotic Slompound",
"connect": "172.240.236.170:20554",
"request": "172.240.236.170:20029",
"map": null,
"gamemode": "Abiotic Factor",
"version": "1.0.0.6",
"numplayers": 0,
"maxplayers": 12,
"bots": 0,
"secured": false,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1765134003,
"last_update": 1780832462,
"banned": false,
"wipe": null,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": null,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 519,
"language": "en",
"parked": false,
"app": {
"id": 1611062,
"steam_id": 427410,
"name": "Abiotic Factor",
"url": "abiotic-factor"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/10718068");
$data = json_decode($json, true);
var_dump($data);