API dla Death's Fellowship: V Rising
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": 90285668721899540,
"domain": null,
"id": 11660352,
"ip": "108.20.56.180",
"port": 9878,
"query": 9879,
"color": 0,
"city": "Groton",
"description": null,
"game": 1604030,
"owner": null,
"boosts": 1,
"last_offline": 1780178456,
"last_online": 1780567937,
"icon": null,
"name": "Death's Fellowship: V Rising",
"connect": "108.20.56.180:9878",
"request": "108.20.56.180:9879",
"map": "VRisingWorld",
"gamemode": "a33b16d5-711f-48ca-88fd-611c8ba77f47",
"version": "0.0.0.1",
"numplayers": 0,
"maxplayers": 40,
"bots": 0,
"secured": true,
"private": true,
"country": "US",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1780178456,
"last_update": 1780567937,
"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": 3251,
"language": "en",
"parked": false,
"app": {
"id": 55075,
"steam_id": 1604030,
"name": "V Rising",
"url": "v-rising"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/11660352");
$data = json_decode($json, true);
var_dump($data);