Chivalry: Medieval Warfare
HG Quasi Internal TO Draft tourney 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/10682496json
{
"response": {
"steam_id": "90284543197374468",
"domain": null,
"id": 10682496,
"ip": "208.115.196.107",
"port": 7004,
"query": 21019,
"color": 0,
"city": "Dallas",
"description": null,
"game": 219640,
"owner": null,
"boosts": 1,
"last_offline": 1775448126,
"score": 0,
"last_online": 1776436914,
"icon": null,
"name": "HG Quasi Internal TO Draft tourney",
"connect": "208.115.196.107:7004",
"request": "208.115.196.107:21019",
"map": "aocto-stoneshill_p",
"gamemode": "Chivalry: Medieval Warfare",
"version": "1.0.0.1",
"numplayers": 0,
"maxplayers": 16,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1764584349,
"last_update": 1776436914,
"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": 10,
"language": "en",
"parked": false,
"app": {
"id": 79,
"steam_id": 219640,
"name": "Chivalry: Medieval Warfare",
"url": "chivalry-medieval-warfare"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/10682496");
$data = json_decode($json, true);
var_dump($data);