Counter-Strike: Source
БОЙЦОВСКИЙ КЛУБ 18+ | D2 | bc18go.ru 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/2140json
{
"response": {
"steam_id": 85568392935597260,
"domain": null,
"id": 2140,
"ip": "46.174.53.132",
"port": 11111,
"query": 11111,
"color": 0,
"city": "Moscow",
"description": "",
"game": 240,
"owner": null,
"boosts": 1,
"last_offline": 1773937321,
"score": null,
"last_online": 1776119417,
"icon": null,
"name": "БОЙЦОВСКИЙ КЛУБ 18+ | D2 | bc18go.ru",
"connect": "46.174.53.132:11111",
"request": "46.174.53.132:11111",
"map": "de_dust2",
"gamemode": "Counter-Strike: Source",
"version": "9540945",
"numplayers": 11,
"maxplayers": 65,
"bots": 0,
"secured": true,
"private": false,
"country": "RU",
"status": true,
"votes": 0,
"points": 57,
"add_date": 1501541156,
"last_update": 1776119417,
"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": 336,
"language": "ru",
"parked": false,
"app": {
"id": 5,
"steam_id": 240,
"name": "Counter-Strike: Source",
"url": "counter-strike-source"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/2140");
$data = json_decode($json, true);
var_dump($data);