Counter-Strike 2
FORCEBUY.RU | INFERNO | CLASSIC 10X10 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/11489308json
{
"response": {
"steam_id": "90284557575043074",
"domain": null,
"id": 11489308,
"ip": "178.78.46.43",
"port": 27025,
"query": 27025,
"color": 0,
"city": "Krasnodar",
"description": null,
"game": 730,
"owner": 188080,
"boosts": 1,
"last_offline": 1776269779,
"score": 0,
"last_online": 1776502223,
"icon": null,
"name": "FORCEBUY.RU | INFERNO | CLASSIC 10X10",
"connect": "178.78.46.43:27025",
"request": "178.78.46.43:27025",
"map": "de_inferno",
"gamemode": "Counter-Strike 2",
"version": "1.41.4.1",
"numplayers": 0,
"maxplayers": 64,
"bots": 0,
"secured": true,
"private": false,
"country": "RU",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1776269779,
"last_update": 1776502223,
"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": 546,
"language": "ru",
"parked": false,
"app": {
"id": 2,
"steam_id": 730,
"name": "Counter-Strike 2",
"url": "counter-strike-2"
},
"server_owner": {
"username": "maslov_v_v",
"avatar": "no.jpg",
"last_online": 1776430850
},
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/11489308");
$data = json_decode($json, true);
var_dump($data);