We Club Baby Seals - THE ARMORY EDITION 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"steam_id": "90286519588512794",
"domain": null,
"id": 11737221,
"ip": "51.68.236.45",
"port": 37257,
"query": 37257,
"project_id": null,
"color": 0,
"city": "Roubaix",
"description": null,
"game": 440,
"owner": null,
"boosts": 1,
"last_offline": 1781186011,
"last_online": 1780418424,
"icon": null,
"name": "We Club Baby Seals - THE ARMORY EDITION",
"connect": "51.68.236.45:37257",
"request": "51.68.236.45:37257",
"map": "cp_mountainlab",
"gamemode": "Team Fortress",
"version": "10682184",
"numplayers": 0,
"maxplayers": 64,
"bots": 0,
"secured": true,
"private": false,
"country": "FR",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1780411870,
"last_update": 1781186011,
"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": 2475,
"language": "fr",
"parked": false,
"app": {
"id": 24,
"steam_id": 440,
"name": "Team Fortress 2",
"url": "team-fortress-2"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/11737221");
$data = json_decode($json, true);
var_dump($data);