Counter-Strike
Jelezd ha gondod van! 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/803443json
{
"response": {
"steam_id": "90281246987024410",
"domain": null,
"id": 803443,
"ip": "37.221.213.72",
"port": 27030,
"query": 27030,
"color": 0,
"city": "Budapest",
"description": "",
"game": 10,
"owner": null,
"boosts": 1,
"last_offline": 1770656460,
"score": null,
"last_online": 1776250252,
"icon": null,
"name": "Jelezd ha gondod van!",
"connect": "37.221.213.72:27030",
"request": "37.221.213.72:27030",
"map": "gg_3in1",
"gamemode": "hltv",
"version": "1.1.2.6",
"numplayers": 0,
"maxplayers": 0,
"bots": 0,
"secured": false,
"private": false,
"country": "HU",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1684349051,
"last_update": 1776250252,
"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": 5246,
"language": "hu",
"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/803443");
$data = json_decode($json, true);
var_dump($data);