Left 4 Dead 2
관두 퍽#8 중급자용 | 암흑축제[3/5] 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/8661918json
{
"response": {
"steam_id": "90284526773854216",
"domain": null,
"id": 8661918,
"ip": "112.154.111.33",
"port": 27028,
"query": 27028,
"color": 0,
"city": "Gunpo",
"description": null,
"game": 550,
"owner": null,
"boosts": 1,
"last_offline": 1776371623,
"score": 0,
"last_online": 1776361218,
"icon": null,
"name": "관두 퍽#8 중급자용 | 암흑축제[3/5]",
"connect": "112.154.111.33:27028",
"request": "112.154.111.33:27028",
"map": "c2m3_coaster",
"gamemode": "Left 4 Dead 2",
"version": "2.2.4.3",
"numplayers": 4,
"maxplayers": 4,
"bots": 0,
"secured": true,
"private": false,
"country": "KR",
"status": false,
"votes": 0,
"points": 50,
"add_date": 1745481435,
"last_update": 1776371623,
"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": 1452,
"language": "ko",
"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/8661918");
$data = json_decode($json, true);
var_dump($data);