API dla gm.link/u200147 Friendship PVE | Livonia
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": "90286867951744019",
"domain": null,
"id": 11778666,
"ip": "185.207.214.253",
"port": 2302,
"query": 2303,
"project_id": null,
"color": 0,
"city": "Moscow",
"description": null,
"game": 221100,
"owner": 200147,
"boosts": 1,
"last_offline": 1781113540,
"last_online": 1781163621,
"icon": null,
"name": "gm.link/u200147 Friendship PVE | Livonia",
"connect": "185.207.214.253:2302",
"request": "185.207.214.253:2303",
"map": "enoch",
"gamemode": null,
"version": "1.29.163047",
"numplayers": 6,
"maxplayers": 40,
"bots": 0,
"secured": true,
"private": false,
"country": "RU",
"status": true,
"votes": 2,
"points": 69,
"add_date": 1781113540,
"last_update": 1781163621,
"banned": false,
"wipe": null,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 1,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 2673,
"language": "ru",
"parked": false,
"app": {
"id": 63,
"steam_id": 221100,
"name": "DayZ",
"url": "dayz"
},
"server_owner": {
"username": "landgraf82",
"avatar": "ffa54b83-475b-4ad1-b931-610274dbfb60.webp"
},
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/11778666");
$data = json_decode($json, true);
var_dump($data);