Day of Infamy
#1UP||EXTRA LIFE [Stats] 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/2147936json
{
"response": {
"steam_id": "90284336247578651",
"domain": null,
"id": 2147936,
"ip": "45.142.115.53",
"port": 27015,
"query": 27015,
"color": 0,
"city": "Offenbach",
"description": "",
"game": 447820,
"owner": null,
"boosts": 1,
"last_offline": 1773822121,
"score": null,
"last_online": 1776349811,
"icon": null,
"name": "#1UP||EXTRA LIFE [Stats]",
"connect": "45.142.115.53:27015",
"request": "45.142.115.53:27015",
"map": "comacchio",
"gamemode": "DOI",
"version": "3.2.1.5",
"numplayers": 20,
"maxplayers": 40,
"bots": 19,
"secured": true,
"private": false,
"country": "DE",
"status": true,
"votes": 0,
"points": 110,
"add_date": 1702339183,
"last_update": 1776349811,
"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": 1,
"language": "de",
"parked": false,
"app": {
"id": 167,
"steam_id": 447820,
"name": "Day of Infamy",
"url": "day-of-infamy"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/2147936");
$data = json_decode($json, true);
var_dump($data);