Counter-Strike: Source
[Waste] GunGame Server | Turbo | DM 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/202152json
{
"response": {
"steam_id": "90284421919764482",
"domain": null,
"id": 202152,
"ip": "5.135.164.88",
"port": 27015,
"query": 27015,
"color": 0,
"city": "Roubaix",
"description": "",
"game": 240,
"owner": null,
"boosts": 1,
"last_offline": 1768642467,
"score": null,
"last_online": 1776432082,
"icon": null,
"name": "[Waste] GunGame Server | Turbo | DM",
"connect": "5.135.164.88:27015",
"request": "5.135.164.88:27015",
"map": "de_dust2",
"gamemode": "Counter-Strike: Source",
"version": "9540945",
"numplayers": 0,
"maxplayers": 16,
"bots": 0,
"secured": true,
"private": false,
"country": "FR",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1558611745,
"last_update": 1776432082,
"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": 783,
"language": "fr",
"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/202152");
$data = json_decode($json, true);
var_dump($data);