Counter-Strike
Raven | Classic 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/7845855json
{
"response": {
"steam_id": null,
"domain": null,
"id": 7845855,
"ip": "195.80.163.254",
"port": 27012,
"query": 27012,
"color": 0,
"city": "Poprad",
"description": null,
"game": 10,
"owner": null,
"boosts": 1,
"last_offline": 1774088518,
"score": 0,
"last_online": 1776210023,
"icon": null,
"name": "Raven | Classic",
"connect": "195.80.163.254:27012",
"request": "195.80.163.254:27012",
"map": "de_dust2_night",
"gamemode": "Counter-Strike",
"version": "1.1.2.6/Stdio",
"numplayers": 1,
"maxplayers": 22,
"bots": 0,
"secured": true,
"private": false,
"country": "SK",
"status": true,
"votes": 0,
"points": 33,
"add_date": 1740143619,
"last_update": 1776210023,
"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": 3344,
"language": "sk",
"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/7845855");
$data = json_decode($json, true);
var_dump($data);