Left 4 Dead 2
(GwG) Public Server 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/9053482json
{
"response": {
"steam_id": null,
"domain": null,
"id": 9053482,
"ip": null,
"port": null,
"query": null,
"color": 0,
"city": null,
"description": "[{\"id\":\"sJR55nrX1h\",\"type\":\"paragraph\",\"data\":{\"text\":\"www.h34dl3ss.com\"}},{\"id\":\"PLKxWZ4NSp\",\"type\":\"paragraph\",\"data\":{\"text\":\"gwg.h34dl3ss.com\"}}]",
"game": 550,
"owner": 115076,
"boosts": 1,
"last_offline": 1760766806,
"score": 0,
"last_online": 1758088820,
"icon": null,
"name": "(GwG) Public Server",
"connect": null,
"request": null,
"map": "av_cap1_posta_new",
"gamemode": "Left 4 Dead 2",
"version": null,
"numplayers": 0,
"maxplayers": 4,
"bots": 0,
"secured": false,
"private": false,
"country": "US",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1746979115,
"last_update": 1760766806,
"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": 13412,
"language": "en",
"parked": true,
"app": {
"id": 11,
"steam_id": 550,
"name": "Left 4 Dead 2",
"url": "left-4-dead-2"
},
"server_owner": {
"username": "r1sen",
"avatar": "6d0152fd-fefd-4905-999f-8d2f61200e8e.jpg",
"last_online": 1758553564
},
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/9053482");
$data = json_decode($json, true);
var_dump($data);