API dla Verdruss
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": "90286705754157056",
"domain": null,
"id": 11764702,
"ip": "37.201.33.185",
"port": 9876,
"query": 9877,
"project_id": null,
"color": 0,
"city": "Düsseldorf",
"description": null,
"game": 1604030,
"owner": null,
"boosts": 1,
"last_offline": 1780932284,
"last_online": 1781220679,
"icon": null,
"name": "Verdruss",
"connect": "37.201.33.185:9876",
"request": "37.201.33.185:9877",
"map": "VRisingWorld",
"gamemode": "84368d92-3e92-49d3-a8ae-f9f52f2ad5a7",
"version": "0.0.0.1",
"numplayers": 0,
"maxplayers": 40,
"bots": 0,
"secured": true,
"private": true,
"country": "DE",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1780932284,
"last_update": 1781220679,
"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": 3676,
"language": "de",
"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/11764702");
$data = json_decode($json, true);
var_dump($data);