Left 4 Dead
!!M A F I A H U B!! 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/8201002json
{
"response": {
"steam_id": null,
"domain": null,
"id": 8201002,
"ip": "46.174.50.10",
"port": 27236,
"query": 27236,
"color": 0,
"city": "Moscow",
"description": null,
"game": 500,
"owner": null,
"boosts": 1,
"last_offline": 1776630150,
"score": 0,
"last_online": 1776579632,
"icon": null,
"name": "!!M A F I A H U B!!",
"connect": "46.174.50.10:27236",
"request": "46.174.50.10:27236",
"map": "l4d_hospital05_rooftop",
"gamemode": "!!!СУПЕР СЕРВЕР!!!",
"version": "1.0.4.5",
"numplayers": 1,
"maxplayers": 12,
"bots": 0,
"secured": true,
"private": false,
"country": "RU",
"status": false,
"votes": 0,
"points": 8,
"add_date": 1742391923,
"last_update": 1776630150,
"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": 1700,
"language": "ru",
"parked": false,
"app": {
"id": 18,
"steam_id": 500,
"name": "Left 4 Dead",
"url": "left-4-dead"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/8201002");
$data = json_decode($json, true);
var_dump($data);