API dla Septicemia | Quality of Life
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": "90286919132164108",
"domain": null,
"id": 10987026,
"ip": "75.27.252.173",
"port": 9876,
"query": 9877,
"project_id": null,
"color": 0,
"city": "Glendale",
"description": null,
"game": 1604030,
"owner": null,
"boosts": 1,
"last_offline": 1779706358,
"last_online": 1781265169,
"icon": null,
"name": "Septicemia | Quality of Life",
"connect": "75.27.252.173:9876",
"request": "75.27.252.173:9877",
"map": "VRisingWorld",
"gamemode": "3db3b048-8346-4216-8da8-5cf1adea85bb",
"version": "0.0.0.1",
"numplayers": 0,
"maxplayers": 40,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1769902697,
"last_update": 1781265169,
"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": 1327,
"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/10987026");
$data = json_decode($json, true);
var_dump($data);