API dla Consberts Server
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": "90286734514540574",
"domain": null,
"id": 10313293,
"ip": "161.97.159.10",
"port": 38300,
"query": 38315,
"project_id": null,
"color": 0,
"city": "Lauterbourg",
"description": null,
"game": 1604030,
"owner": null,
"boosts": 1,
"last_offline": 1779181973,
"last_online": 1780900868,
"icon": null,
"name": "Consberts Server",
"connect": "161.97.159.10:38300",
"request": "161.97.159.10:38315",
"map": "VRisingWorld",
"gamemode": "e4a897f2-f828-47e8-a2e0-82aaadaa2ed8",
"version": "0.0.0.1",
"numplayers": 0,
"maxplayers": 10,
"bots": 0,
"secured": true,
"private": false,
"country": "FR",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1758289549,
"last_update": 1780900868,
"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": 888,
"language": "fr",
"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/10313293");
$data = json_decode($json, true);
var_dump($data);