API для California Dreaming
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1779356918,
"app": {
"id": 48,
"name": "Unturned",
"steam_id": 304930,
"url": "unturned"
},
"color": 0,
"connect": "195.20.232.231:27015",
"country": "GB",
"domain": null,
"game": 304930,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 11578356,
"ip": "195.20.232.231",
"language": "en",
"last_update": 1794928313,
"map": "California2",
"maxplayers": 24,
"name": "California Dreaming",
"numplayers": 0,
"official": null,
"points": 30,
"port": 27015,
"private": true,
"project_id": null,
"pve": null,
"pvp": null,
"query": 27015,
"request": "195.20.232.231:27015",
"secured": true,
"status": true,
"steam_id": "85568392930308982",
"version": "3.26.3.2",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Лондон",
"description": null,
"disabled_modules": [],
"gamemode": null,
"hidden": false,
"last_offline": 1779356918,
"last_online": 1794928313,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 527,
"wipe_period": null,
"Mod_0": "3707778928,3711646503",
"Cfg_Count": "0",
"Mod_Count": "1",
"listentype": "d",
"environment": "l",
"BookmarkHost": "",
"a2s_protocol": 17,
"rocketplugins": "",
"players_complete": true,
"Browser_Desc_Hint": ""
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/11578356");
$data = json_decode($json, true);
var_dump($data);