API для FirebaseOne
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1783771289,
"app": {
"id": 18,
"name": "Left 4 Dead",
"steam_id": 500,
"url": "left-4-dead"
},
"color": 0,
"connect": "192.169.85.101:17501",
"country": "US",
"domain": null,
"game": 500,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 11941006,
"ip": "192.169.85.101",
"language": "en",
"last_update": 1790975193,
"map": "l4d_hospital01_apartment",
"maxplayers": 4,
"name": "FirebaseOne",
"numplayers": 0,
"official": null,
"points": 30,
"port": 17501,
"private": false,
"project_id": null,
"pve": null,
"pvp": null,
"query": 17501,
"request": "192.169.85.101:17501",
"secured": true,
"status": true,
"steam_id": null,
"version": "1.0.4.5",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Лос-Анджелес",
"description": null,
"disabled_modules": [],
"gamemode": "L4D - Co-op - Expert",
"hidden": false,
"last_offline": 1789999369,
"last_online": 1790975193,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 377,
"wipe_period": null,
"listentype": "d",
"environment": "w",
"a2s_protocol": 7,
"players_complete": true
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/11941006");
$data = json_decode($json, true);
var_dump($data);