API dla Last Hope
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 106,
"fps_avg": 108,
"entities_count": 128171,
"world_seed": 80579711,
"world_size": 4500,
"steam_id": "90286580260841472",
"domain": null,
"id": 10870582,
"ip": "185.189.255.161",
"port": 35100,
"query": 35110,
"color": 0,
"city": "Moscow",
"description": "\nКлассический сервер. \r\nВайп каждый первый четверг месяца.\r\nСодержание шкафа снижено в 10 раз.\r\nРазмер карты 4500.\r\nКрейт 10 минут.\r\nЛимит турелей увеличен до 24.\r\nРестарт каждый день в 06.00 по МСК.",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1779678804,
"last_online": 1780584040,
"icon": null,
"name": "Last Hope",
"connect": "185.189.255.161:35100",
"request": "185.189.255.161:35110",
"map": "Procedural Map",
"gamemode": "Vanilla",
"version": "2625",
"numplayers": 0,
"maxplayers": 200,
"bots": 0,
"secured": true,
"private": false,
"country": "RU",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1768318444,
"last_update": 1780584040,
"banned": false,
"wipe": 1778177958,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 4009,
"language": "ru",
"parked": false,
"app": {
"id": 12,
"steam_id": 252490,
"name": "Rust",
"url": "rust"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/10870582");
$data = json_decode($json, true);
var_dump($data);