Counter-Strike
[www.21e.pro] PUG/SCRIM 5vs5 [VENTA DE SERVIDORES] 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/6726555json
{
"response": {
"steam_id": "90284360404494336",
"domain": null,
"id": 6726555,
"ip": "23.26.135.60",
"port": 27053,
"query": 27053,
"color": 0,
"city": "Amsterdam",
"description": null,
"game": 10,
"owner": 144165,
"boosts": 1,
"last_offline": 1776090112,
"score": 5,
"last_online": 1776225015,
"icon": null,
"name": "[www.21e.pro] PUG/SCRIM 5vs5 [VENTA DE SERVIDORES]",
"connect": "23.26.135.60:27053",
"request": "23.26.135.60:27053",
"map": "de_dust2",
"gamemode": "Calentamiento",
"version": "1.1.2.7/Stdio",
"numplayers": 0,
"maxplayers": 16,
"bots": 0,
"secured": true,
"private": false,
"country": "NL",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1732618289,
"last_update": 1776225015,
"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": 1981,
"language": "nl",
"parked": false,
"app": {
"id": 3,
"steam_id": 10,
"name": "Counter-Strike",
"url": "counter-strike"
},
"server_owner": {
"username": "21eSports",
"avatar": "0ef995c4-112d-4048-815a-9d6f97d5f11d.jpg",
"last_online": 1762343622
},
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/6726555");
$data = json_decode($json, true);
var_dump($data);