Left 4 Dead 2
Empire Dev[NIGHT VIP] 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/6854328json
{
"response": {
"steam_id": "90284500685371423",
"domain": null,
"id": 6854328,
"ip": "45.93.200.94",
"port": 27227,
"query": 27227,
"color": 0,
"city": "Nizhnevartovsk",
"description": null,
"game": 550,
"owner": null,
"boosts": 1,
"last_offline": 1775784721,
"score": 0,
"last_online": 1776378649,
"icon": null,
"name": "Empire Dev[NIGHT VIP]",
"connect": "45.93.200.94:27227",
"request": "45.93.200.94:27227",
"map": "c4m1_milltown_a",
"gamemode": "Left 4 Dead 2",
"version": "2.2.4.3",
"numplayers": 0,
"maxplayers": 10,
"bots": 0,
"secured": true,
"private": false,
"country": "RU",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1733824394,
"last_update": 1776378649,
"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": 9359,
"language": "ru",
"parked": false,
"app": {
"id": 11,
"steam_id": 550,
"name": "Left 4 Dead 2",
"url": "left-4-dead-2"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/6854328");
$data = json_decode($json, true);
var_dump($data);