Left 4 Dead 2
[5特/次] [8~15]秒 Max 5特 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/8849592json
{
"response": {
"steam_id": null,
"domain": null,
"id": 8849592,
"ip": "106.53.187.172",
"port": 27001,
"query": 27001,
"color": 0,
"city": "Guangzhou",
"description": null,
"game": 550,
"owner": null,
"boosts": 1,
"last_offline": 1775039534,
"score": 0,
"last_online": 1776518434,
"icon": null,
"name": "[5特/次] [8~15]秒 Max 5特",
"connect": "106.53.187.172:27001",
"request": "106.53.187.172:27001",
"map": "fosre01_maomaohill",
"gamemode": "(新)Left 4 Dead 3",
"version": "2.2.4.3",
"numplayers": 5,
"maxplayers": 12,
"bots": 0,
"secured": true,
"private": false,
"country": "CN",
"status": true,
"votes": 0,
"points": 41,
"add_date": 1746265793,
"last_update": 1776518434,
"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": 2144,
"language": "zh",
"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/8849592");
$data = json_decode($json, true);
var_dump($data);