Counter-Strike
[Classic] ONESTRIKE.EU |͇̿P͇̿U͇̿B͇̿| SKINS 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/503266json
{
"response": {
"steam_id": null,
"domain": null,
"id": 503266,
"ip": "45.144.155.95",
"port": 27016,
"query": 27016,
"color": 0,
"city": "Plovdiv",
"description": "",
"game": 10,
"owner": null,
"boosts": 1,
"last_offline": 1776094312,
"score": null,
"last_online": 1776193819,
"icon": null,
"name": "[Classic] ONESTRIKE.EU |͇̿P͇̿U͇̿B͇̿| SKINS",
"connect": "45.144.155.95:27016",
"request": "45.144.155.95:27016",
"map": "de_dustyaztec",
"gamemode": "Counter-Strike",
"version": "1.1.2.7/Stdio",
"numplayers": 10,
"maxplayers": 28,
"bots": 0,
"secured": true,
"private": false,
"country": "BG",
"status": true,
"votes": 0,
"points": 54,
"add_date": 1638779535,
"last_update": 1776193819,
"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": 2653,
"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/503266");
$data = json_decode($json, true);
var_dump($data);