API pentru WARGAMING #2 [X5/X10|DUO|MAX 2|TP|KIT|SHOP|LOOT+]
JSON pentru programe, site-uri și altele
text
json
{
"response": {
"fps": 14,
"fps_avg": 14,
"entities_count": 2259,
"world_seed": 27116999,
"world_size": 1000,
"steam_id": "90286041263663113",
"domain": null,
"id": 11506173,
"ip": "138.16.161.232",
"port": 28015,
"query": null,
"color": 0,
"city": "Providence",
"description": "[{\"type\":\"paragraph\",\"data\":{\"text\":\"♦ Рейты добычи Ресурсов, Компонентов, Скрапа x5/10\\r\\n♦ Кол-во игроков в команде: 2 (MAX2)\\r\\n♦ Ивенты - Конвой и Кобальт Лаборатория\\r\\n♦ Быстрые печи, Переработчик, Аир Дроп\\r\\n♦ Фарм Руды и Дерева по маркерам\\r\\n♦ Авто-лутание Бочек, Знаков и Кактусов\"}}]",
"game": 252490,
"owner": 1465,
"boosts": 1,
"last_offline": 1779276309,
"last_online": 1779387010,
"icon": null,
"name": "WARGAMING #2 [X5/X10|DUO|MAX 2|TP|KIT|SHOP|LOOT+]",
"connect": "138.16.161.232:28015",
"request": null,
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2625",
"numplayers": 212,
"maxplayers": 300,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 132,
"add_date": 1779276309,
"last_update": 1779387010,
"banned": false,
"wipe": 1779386400,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": 1,
"list_hidden": false,
"hide_address": false,
"hide_query": true,
"position_game": 34,
"language": "ru",
"parked": false,
"app": {
"id": 12,
"steam_id": 252490,
"name": "Rust",
"url": "rust"
},
"server_owner": {
"username": "AlexOne",
"avatar": "no.jpg",
"last_online": 1779280066
},
"mods": [],
"disabled_modules": []
}
}Exemple de cod
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ro/servers/11506173");
$data = json_decode($json, true);
var_dump($data);