Counter-Strike
[DreamCS] DeathMatch ULTIMATE 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/613990json
{
"response": {
"steam_id": null,
"domain": null,
"id": 613990,
"ip": "93.123.16.79",
"port": 27023,
"query": 27023,
"color": 0,
"city": "Sofia",
"description": "",
"game": 10,
"owner": null,
"boosts": 1,
"last_offline": 1776094314,
"score": null,
"last_online": 1776202824,
"icon": null,
"name": "[DreamCS] DeathMatch ULTIMATE",
"connect": "93.123.16.79:27023",
"request": "93.123.16.79:27023",
"map": "cs_italy",
"gamemode": "Counter-Strike",
"version": "1.1.2.7/Stdio",
"numplayers": 0,
"maxplayers": 32,
"bots": 18,
"secured": false,
"private": false,
"country": "BG",
"status": true,
"votes": 0,
"points": 32,
"add_date": 1669411499,
"last_update": 1776202824,
"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": 4096,
"language": "bg",
"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/613990");
$data = json_decode($json, true);
var_dump($data);