Left 4 Dead
API для [Ω] ✘ team² [coop:exp]
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/10881150json
{
"response": {
"steam_id": null,
"domain": null,
"id": 10881150,
"ip": "185.158.115.110",
"port": 28015,
"query": 28015,
"color": 0,
"city": "Moscow",
"description": null,
"game": 500,
"owner": null,
"boosts": 1,
"last_offline": 1773545568,
"score": 0,
"last_online": 1776858016,
"icon": null,
"name": "[Ω] ✘ team² [coop:exp]",
"connect": "185.158.115.110:28015",
"request": "185.158.115.110:28015",
"map": "l4d_river03_port",
"gamemode": "4 lvl, 1t+ * 12k, perks",
"version": "1.0.4.5",
"numplayers": 4,
"maxplayers": 4,
"bots": 0,
"secured": true,
"private": false,
"country": "RU",
"status": true,
"votes": 0,
"points": 72,
"add_date": 1768320438,
"last_update": 1776858016,
"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": 9,
"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.ru/servers/10881150");
$data = json_decode($json, true);
var_dump($data);