Counter-Strike 2
KLMP ► Minigame 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/11138741json
{
"response": {
"steam_id": "85568392935739784",
"domain": null,
"id": 11138741,
"ip": "46.174.48.248",
"port": 27016,
"query": 27016,
"color": 0,
"city": "Moscow",
"description": null,
"game": 730,
"owner": 168145,
"boosts": 1,
"last_offline": 1773937321,
"score": 0,
"last_online": 1776810023,
"icon": null,
"name": "KLMP ► Minigame",
"connect": "46.174.48.248:27016",
"request": "46.174.48.248:27016",
"map": "bhop_fur | MG #1",
"gamemode": "Counter-Strike 2",
"version": "1.41.4.0",
"numplayers": 0,
"maxplayers": 24,
"bots": 0,
"secured": true,
"private": false,
"country": "RU",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1770578289,
"last_update": 1776810023,
"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": 394,
"language": "ru",
"parked": false,
"app": {
"id": 2,
"steam_id": 730,
"name": "Counter-Strike 2",
"url": "counter-strike-2"
},
"server_owner": {
"username": "hyo_hao",
"avatar": "4f55a3eb-3a4e-431b-bcd6-f302b0608e8e.jpg",
"last_online": 1775125649
},
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/11138741");
$data = json_decode($json, true);
var_dump($data);