No One Survived
Kombos Games 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/11394186json
{
"response": {
"steam_id": "90285150668247062",
"domain": null,
"id": 11394186,
"ip": "134.255.222.208",
"port": 27300,
"query": 27310,
"color": 0,
"city": "Frankfurt am Main",
"description": null,
"game": 1963370,
"owner": null,
"boosts": 1,
"last_offline": 1775646730,
"score": 0,
"last_online": 1777525857,
"icon": null,
"name": "Kombos Games",
"connect": "134.255.222.208:27300",
"request": "134.255.222.208:27310",
"map": "NeedPassword",
"gamemode": "NoOneSurvivedServer",
"version": "1.0.0.4",
"numplayers": 0,
"maxplayers": 10,
"bots": 0,
"secured": true,
"private": true,
"country": "DE",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1774596914,
"last_update": 1777525857,
"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": 30,
"language": "de",
"parked": false,
"app": {
"id": 1554615,
"steam_id": 1963370,
"name": "No One Survived",
"url": "no-one-survived"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/11394186");
$data = json_decode($json, true);
var_dump($data);