Left 4 Dead 2
Hunter Party[5特13秒] 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/1428330json
{
"response": {
"steam_id": "90284521980491802",
"domain": null,
"id": 1428330,
"ip": "43.139.222.111",
"port": 35006,
"query": 35006,
"color": 0,
"city": "Guangzhou",
"description": "",
"game": 550,
"owner": null,
"boosts": 1,
"last_offline": 1768642834,
"score": null,
"last_online": 1776355963,
"icon": null,
"name": "Hunter Party[5特13秒]",
"connect": "43.139.222.111:35006",
"request": "43.139.222.111:35006",
"map": "c2m1_highway",
"gamemode": "L4D3",
"version": "2.2.4.3",
"numplayers": 0,
"maxplayers": 8,
"bots": 0,
"secured": true,
"private": false,
"country": "CN",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1697293530,
"last_update": 1776355963,
"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": 5484,
"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/1428330");
$data = json_decode($json, true);
var_dump($data);