Counter-Strike
2° [BORA-LA] - [Clan HapN] - [MIX-24H] @hapn.cs | @BRXGames . 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/11490387json
{
"response": {
"steam_id": null,
"domain": null,
"id": 11490387,
"ip": "131.196.198.52",
"port": 27640,
"query": 27640,
"color": 0,
"city": "Cotia",
"description": null,
"game": 10,
"owner": null,
"boosts": 1,
"last_offline": 1777143221,
"score": 0,
"last_online": 1778582426,
"icon": null,
"name": "2° [BORA-LA] - [Clan HapN] - [MIX-24H] @hapn.cs | @BRXGames .",
"connect": "131.196.198.52:27640",
"request": "131.196.198.52:27640",
"map": "de_dust2",
"gamemode": "[Pre-Game]",
"version": "1.1.2.7/Stdio",
"numplayers": 4,
"maxplayers": 24,
"bots": 0,
"secured": true,
"private": false,
"country": "BR",
"status": true,
"votes": 0,
"points": 43,
"add_date": 1777143221,
"last_update": 1778582426,
"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": 2772,
"language": "pt",
"parked": false,
"app": {
"id": 3,
"steam_id": 10,
"name": "Counter-Strike",
"url": "counter-strike"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/11490387");
$data = json_decode($json, true);
var_dump($data);