[Ω] yoyo¹ [real:exp] DLC: City 17 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"steam_id": null,
"domain": null,
"id": 279489,
"ip": "185.137.235.74",
"port": 28015,
"query": 28015,
"project_id": null,
"color": 0,
"city": "Moscow",
"description": "",
"game": 500,
"owner": null,
"boosts": 1,
"last_offline": 1780275847,
"last_online": 1780782613,
"icon": null,
"name": "[Ω] yoyo¹ [real:exp] DLC: City 17",
"connect": "185.137.235.74:28015",
"request": "185.137.235.74:28015",
"map": "l4d_city17_04",
"gamemode": "6 lvl, 3t+ * 16k, perks",
"version": "1.0.4.5",
"numplayers": 6,
"maxplayers": 8,
"bots": 0,
"secured": true,
"private": false,
"country": "RU",
"status": true,
"votes": 0,
"points": 112,
"add_date": 1585861570,
"last_update": 1780782613,
"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": 2,
"language": "ru",
"parked": false,
"app": {
"id": 18,
"steam_id": 500,
"name": "Left 4 Dead",
"url": "left-4-dead"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/279489");
$data = json_decode($json, true);
var_dump($data);