API dla Wolflandia
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": "90286455310826523",
"domain": null,
"id": 11365268,
"ip": "161.97.159.7",
"port": 31400,
"query": 31415,
"project_id": null,
"color": 0,
"city": "Lauterbourg",
"description": null,
"game": 1604030,
"owner": null,
"boosts": 1,
"last_offline": 1780178595,
"last_online": 1780858970,
"icon": null,
"name": "Wolflandia",
"connect": "161.97.159.7:31400",
"request": "161.97.159.7:31415",
"map": "VRisingWorld",
"gamemode": "3b73b675-5e90-46dc-8c0f-23f8e02981e7",
"version": "0.0.0.1",
"numplayers": 1,
"maxplayers": 10,
"bots": 0,
"secured": true,
"private": true,
"country": "FR",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1774595186,
"last_update": 1780858970,
"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": 1725,
"language": "fr",
"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/11365268");
$data = json_decode($json, true);
var_dump($data);