Left 4 Dead 2
API для 5#杀戮世界经典服
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/893527json
{
"response": {
"steam_id": 90284421524601860,
"domain": null,
"id": 893527,
"ip": "120.77.24.39",
"port": 38146,
"query": 38146,
"color": 0,
"city": "Shenzhen",
"description": "",
"game": 550,
"owner": null,
"boosts": 1,
"last_offline": 1776373421,
"score": null,
"last_online": 1776372660,
"icon": null,
"name": "5#杀戮世界经典服",
"connect": "120.77.24.39:38146",
"request": "120.77.24.39:38146",
"map": "c11m2_offices",
"gamemode": "Left 4 Dead 2",
"version": "2.2.4.3",
"numplayers": 0,
"maxplayers": 16,
"bots": 0,
"secured": false,
"private": false,
"country": "CN",
"status": false,
"votes": 0,
"points": 30,
"add_date": 1684711882,
"last_update": 1776373421,
"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": 3589,
"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.ru/servers/893527");
$data = json_decode($json, true);
var_dump($data);