API dla Misty Vampire Sanctum
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": "90268022230108170",
"domain": null,
"id": 9394236,
"ip": "147.135.31.167",
"port": 5300,
"query": 5301,
"project_id": null,
"color": 0,
"city": "Oakton",
"description": null,
"game": 1604030,
"owner": null,
"boosts": 1,
"last_offline": 1768642844,
"last_online": 1781112696,
"icon": null,
"name": "Misty Vampire Sanctum",
"connect": "147.135.31.167:5300",
"request": "147.135.31.167:5301",
"map": "VRisingWorld",
"gamemode": "7b19eaf3-2694-42c4-8b0d-df505f809dab",
"version": "0.0.0.1",
"numplayers": 0,
"maxplayers": 10,
"bots": 0,
"secured": true,
"private": true,
"country": "US",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1748176412,
"last_update": 1781112696,
"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": 706,
"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/9394236");
$data = json_decode($json, true);
var_dump($data);