Counter-Strike
[Nizam-i Alem] Sanal Cafe Ortami Pro Public 的 API
我们提供多种集成方式。 你可以使用其中任意一种,也可以通过 JSON API 自行创建集成。 如果你希望我们新增其他集成方式,请联系我们。 联系我们
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/10334033json
{
"response": {
"steam_id": null,
"domain": null,
"id": 10334033,
"ip": "85.121.5.112",
"port": 27454,
"query": 27454,
"color": 0,
"city": "Chisinau",
"description": null,
"game": 10,
"owner": null,
"boosts": 1,
"last_offline": 1774365114,
"score": 0,
"last_online": 1775803813,
"icon": null,
"name": "[Nizam-i Alem] Sanal Cafe Ortami Pro Public",
"connect": "85.121.5.112:27454",
"request": "85.121.5.112:27454",
"map": "awp_india",
"gamemode": "Counter-Strike",
"version": "1.1.2.7/Stdio",
"numplayers": 30,
"maxplayers": 31,
"bots": 1,
"secured": true,
"private": false,
"country": "MD",
"status": true,
"votes": 0,
"points": 98,
"add_date": 1758360704,
"last_update": 1775803813,
"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": 932,
"language": "ro",
"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/10334033");
$data = json_decode($json, true);
var_dump($data);