Counter-Strike: Source
[NewNet] Fight-Arena (GunGame TURBO + Deathmatch) 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/47850json
{
"response": {
"steam_id": "90264127581392896",
"domain": null,
"id": 47850,
"ip": "148.251.22.76",
"port": 27016,
"query": 27016,
"color": 0,
"city": "Falkenstein",
"description": "",
"game": 240,
"owner": null,
"boosts": 1,
"last_offline": 1772053298,
"score": null,
"last_online": 1776800490,
"icon": null,
"name": "[NewNet] Fight-Arena (GunGame TURBO + Deathmatch)",
"connect": "148.251.22.76:27016",
"request": "148.251.22.76:27016",
"map": "gg_aim_ag_texture2-m",
"gamemode": "Counter-Strike: Source",
"version": "6630498",
"numplayers": 0,
"maxplayers": 20,
"bots": 4,
"secured": true,
"private": false,
"country": "DE",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1521462744,
"last_update": 1776800490,
"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": 812,
"language": "de",
"parked": false,
"app": {
"id": 5,
"steam_id": 240,
"name": "Counter-Strike: Source",
"url": "counter-strike-source"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/47850");
$data = json_decode($json, true);
var_dump($data);