Counter-Strike: Source
██[PL/EU]gmng4.fun[4FUN] SURF/BHOP/COURSE/MG tick 100 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/10349967json
{
"response": {
"steam_id": "90283977541756938",
"domain": null,
"id": 10349967,
"ip": "51.77.53.157",
"port": 27016,
"query": 27016,
"color": 0,
"city": "Warsaw",
"description": null,
"game": 240,
"owner": null,
"boosts": 1,
"last_offline": 1775945470,
"score": 0,
"last_online": 1776173451,
"icon": null,
"name": "██[PL/EU]gmng4.fun[4FUN] SURF/BHOP/COURSE/MG tick 100",
"connect": "51.77.53.157:27016",
"request": "51.77.53.157:27016",
"map": "mg_nimafa_3_final_v3_css_f",
"gamemode": "♥COURSE♥",
"version": "9540945",
"numplayers": 0,
"maxplayers": 25,
"bots": 0,
"secured": true,
"private": false,
"country": "PL",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1758529047,
"last_update": 1776173451,
"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": 1342,
"language": "pl",
"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/10349967");
$data = json_decode($json, true);
var_dump($data);