API dla Torture Rust 2x | ОСТРОВ ЭПШТЕЙНА
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 506,
"fps_avg": 506,
"entities_count": 11074,
"world_seed": 121315421,
"world_size": 1500,
"steam_id": "90286565988451350",
"domain": null,
"id": 11606572,
"ip": "185.189.255.247",
"port": 35200,
"query": 35210,
"color": 0,
"city": "Moscow",
"description": "Таинственный остров, который не нуждается в представлении\r\n\r\nХарактеристики сервера:\r\n• Добыча и стаки ресурсов: x2\r\n• Максимум 3 игрока в команде\r\n• Ускоренный крафт\r\n• Ускоренные печи/столы\r\n• Кастомная карта \r\n\r\nНаш сайт - torturerust.ru",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780640600,
"last_online": 1780604437,
"icon": null,
"name": "Torture Rust 2x | ОСТРОВ ЭПШТЕЙНА",
"connect": "185.189.255.247:35200",
"request": "185.189.255.247:35210",
"map": "Custom Map",
"gamemode": "Vanilla",
"version": "2625",
"numplayers": 0,
"maxplayers": 20,
"bots": 0,
"secured": true,
"private": false,
"country": "RU",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1779915475,
"last_update": 1780640600,
"banned": false,
"wipe": 1780135149,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 11663,
"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/11606572");
$data = json_decode($json, true);
var_dump($data);