API dla Dead Man's Refuge
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": "90286126623918087",
"domain": null,
"id": 11602767,
"ip": "165.217.129.38",
"port": 9085,
"query": 9086,
"project_id": null,
"color": 0,
"city": "Staten Island",
"description": null,
"game": 1369670,
"owner": null,
"boosts": 1,
"last_offline": 1780926261,
"last_online": 1781598075,
"icon": null,
"name": "Dead Man's Refuge",
"connect": "165.217.129.38:9085",
"request": "165.217.129.38:9086",
"map": null,
"gamemode": "Unreal Test!",
"version": "0.7.18+1",
"numplayers": 0,
"maxplayers": 32,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1779580996,
"last_update": 1781598075,
"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": 203,
"language": "en",
"parked": false,
"app": {
"id": 1564980,
"steam_id": 1369670,
"name": "Motor Town: Behind The Wheel",
"url": "motor-town-behind-the-wheel"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/11602767");
$data = json_decode($json, true);
var_dump($data);