Alien Swarm
[Alien Storm] - Blizzard - Ch1cken Server 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/8202029json
{
"response": {
"steam_id": "90284522222062597",
"domain": null,
"id": 8202029,
"ip": "94.130.77.165",
"port": 27019,
"query": 27019,
"color": 0,
"city": "Nuremberg",
"description": null,
"game": 630,
"owner": null,
"boosts": 1,
"last_offline": 1776351224,
"score": 0,
"last_online": 1776355260,
"icon": null,
"name": "[Alien Storm] - Blizzard - Ch1cken Server",
"connect": "94.130.77.165:27019",
"request": "94.130.77.165:27019",
"map": "ASI-Jac1-LandingBay_01",
"gamemode": "Ch1ckensCoop",
"version": "7.1.0.9",
"numplayers": 0,
"maxplayers": 4,
"bots": 0,
"secured": true,
"private": false,
"country": "DE",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1742393231,
"last_update": 1776355260,
"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": 2,
"language": "de",
"parked": false,
"app": {
"id": 26,
"steam_id": 630,
"name": "Alien Swarm",
"url": "alien-swarm"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/8202029");
$data = json_decode($json, true);
var_dump($data);