Counter-Strike: Source
≡ IC ≡ ICONOCLAST|31|JETPACK|SUPER NADES|BOTS VS HUMANS" 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/102677json
{
"response": {
"steam_id": "90284311395726343",
"domain": null,
"id": 102677,
"ip": "74.91.123.98",
"port": 27015,
"query": 27015,
"color": 0,
"city": "New York",
"description": "",
"game": 240,
"owner": null,
"boosts": 1,
"last_offline": 1775917915,
"score": null,
"last_online": 1776115825,
"icon": null,
"name": "≡ IC ≡ ICONOCLAST|31|JETPACK|SUPER NADES|BOTS VS HUMANS\"",
"connect": "74.91.123.98:27015",
"request": "74.91.123.98:27015",
"map": "de_hiekka_v3_31",
"gamemode": "Counter-Strike: Source",
"version": "9540945",
"numplayers": 2,
"maxplayers": 46,
"bots": 31,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 32,
"add_date": 1544364374,
"last_update": 1776115825,
"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": 671,
"language": "en",
"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/102677");
$data = json_decode($json, true);
var_dump($data);