Counter-Strike 2
UPGaming ● AWP #1 的 API
我们提供多种集成方式。 你可以使用其中任意一种,也可以通过 JSON API 自行创建集成。 如果你希望我们新增其他集成方式,请联系我们。 联系我们
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/4220572json
{
"response": {
"steam_id": "85568392930475474",
"domain": null,
"id": 4220572,
"ip": "94.158.55.106",
"port": 27220,
"query": 27220,
"color": 0,
"city": "Tashkent",
"description": "",
"game": 730,
"owner": null,
"boosts": 1,
"last_offline": 1773805875,
"score": 0,
"last_online": 1775848222,
"icon": null,
"name": "UPGaming ● AWP #1",
"connect": "94.158.55.106:27220",
"request": "94.158.55.106:27220",
"map": "awp_lego_2",
"gamemode": "Counter-Strike 2",
"version": "1.41.4.1",
"numplayers": 8,
"maxplayers": 28,
"bots": 1,
"secured": true,
"private": false,
"country": "UZ",
"status": true,
"votes": 0,
"points": 50,
"add_date": 1715198684,
"last_update": 1775848222,
"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": 1213,
"language": "uz",
"parked": false,
"app": {
"id": 2,
"steam_id": 730,
"name": "Counter-Strike 2",
"url": "counter-strike-2"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/4220572");
$data = json_decode($json, true);
var_dump($data);