API dla Owl Woods
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": "90285884794795019",
"domain": null,
"id": 11544200,
"ip": "15.204.221.40",
"port": 36120,
"query": 36121,
"project_id": null,
"color": 0,
"city": "Reston",
"description": null,
"game": 1604030,
"owner": null,
"boosts": 1,
"last_offline": 1779355517,
"last_online": 1780888953,
"icon": null,
"name": "Owl Woods",
"connect": "15.204.221.40:36120",
"request": "15.204.221.40:36121",
"map": "VRisingWorld",
"gamemode": "60d6368d-013d-4894-8717-02da812f84c5",
"version": "0.0.0.1",
"numplayers": 0,
"maxplayers": 7,
"bots": 0,
"secured": true,
"private": true,
"country": "US",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1779355517,
"last_update": 1780888953,
"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": 2316,
"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/11544200");
$data = json_decode($json, true);
var_dump($data);