Turek-City.pl :: [Only de_dust2] [Only DD2] � Pukawka.pl 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"steam_id": null,
"domain": null,
"id": 11716756,
"ip": "135.125.218.194",
"port": 27085,
"query": 27085,
"color": 0,
"city": "Limburg an der Lahn",
"description": null,
"game": 10,
"owner": null,
"boosts": 1,
"last_offline": 1780302478,
"last_online": 1780351849,
"icon": null,
"name": "Turek-City.pl :: [Only de_dust2] [Only DD2] � Pukawka.pl",
"connect": "135.125.218.194:27085",
"request": "135.125.218.194:27085",
"map": "de_cpl_mill_32",
"gamemode": "Counter-Strike",
"version": "1.1.2.7/Std",
"numplayers": 1,
"maxplayers": 64,
"bots": 0,
"secured": true,
"private": false,
"country": "DE",
"status": true,
"votes": 0,
"points": 33,
"add_date": 1780302478,
"last_update": 1780351849,
"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": 6485,
"language": "de",
"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/11716756");
$data = json_decode($json, true);
var_dump($data);