Left 4 Dead 2
API для DSLive | L4D2 #5 Santiago ZoneMod | By LATAMServers.Net
Мы предлагаем широкий выбор методов интеграции. Вы можете воспользоваться любым из них или создать свой собственный с помощью JSON API. Если у вас есть предложение по добавлению нового метода интеграции, пожалуйста, свяжитесь с нами. Связаться с нами
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/11488279json
{
"response": {
"steam_id": "90284128857775123",
"domain": null,
"id": 11488279,
"ip": "177.221.141.101",
"port": 27010,
"query": 27010,
"color": 0,
"city": "Santiago",
"description": null,
"game": 550,
"owner": null,
"boosts": 1,
"last_offline": 1775482248,
"score": 0,
"last_online": 1775734213,
"icon": null,
"name": "DSLive | L4D2 #5 Santiago ZoneMod | By LATAMServers.Net",
"connect": "177.221.141.101:27010",
"request": "177.221.141.101:27010",
"map": "c2m1_highway",
"gamemode": "Left 4 Dead 2",
"version": "2.2.4.3",
"numplayers": 0,
"maxplayers": 16,
"bots": 0,
"secured": true,
"private": false,
"country": "CL",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1775482248,
"last_update": 1775734213,
"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": 1125,
"language": "es",
"parked": false,
"app": {
"id": 11,
"steam_id": 550,
"name": "Left 4 Dead 2",
"url": "left-4-dead-2",
"popular_maps_available": true
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/11488279");
$data = json_decode($json, true);
var_dump($data);