API dla the lost boys
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": "90281131122048017",
"domain": null,
"id": 10703527,
"ip": "172.240.71.151",
"port": 27535,
"query": 27536,
"project_id": null,
"color": 0,
"city": "Chicago",
"description": null,
"game": 1604030,
"owner": null,
"boosts": 1,
"last_offline": 1781293388,
"last_online": 1780686147,
"icon": null,
"name": "the lost boys",
"connect": "172.240.71.151:27535",
"request": "172.240.71.151:27536",
"map": "VRisingWorld",
"gamemode": "8310db35-2a26-41dd-be98-01c643a2ef03",
"version": "0.0.0.1",
"numplayers": 0,
"maxplayers": 8,
"bots": 0,
"secured": true,
"private": true,
"country": "US",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1765123718,
"last_update": 1781293388,
"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": 3884,
"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/10703527");
$data = json_decode($json, true);
var_dump($data);