API dla artur
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": "90286438471393283",
"domain": null,
"id": 11698366,
"ip": "178.206.13.117",
"port": 2302,
"query": 2303,
"color": 0,
"city": "Kazan'",
"description": null,
"game": 107410,
"owner": null,
"boosts": 1,
"last_offline": 1780596807,
"last_online": 1780230624,
"icon": null,
"name": "artur",
"connect": "178.206.13.117:2302",
"request": "178.206.13.117:2303",
"map": "ANVIL_WW2_tem_summas",
"gamemode": "Mission%201941%2010%2e07",
"version": "2.20.152984",
"numplayers": 0,
"maxplayers": 2,
"bots": 0,
"secured": false,
"private": true,
"country": "RU",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1780226720,
"last_update": 1780596807,
"banned": false,
"wipe": null,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": null,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 5454,
"language": "ru",
"parked": false,
"app": {
"id": 61,
"steam_id": 107410,
"name": "Arma 3",
"url": "arma-3"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/11698366");
$data = json_decode($json, true);
var_dump($data);