API dla A Shockbyte ARK Server
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": "90286164792024089",
"domain": null,
"id": 11643200,
"ip": "157.85.87.215",
"port": 22534,
"query": 22533,
"project_id": null,
"color": 0,
"city": "Amsterdam",
"description": null,
"game": 346110,
"owner": null,
"boosts": 1,
"last_offline": 1780177349,
"last_online": 1780900842,
"icon": null,
"name": "A Shockbyte ARK Server",
"connect": "157.85.87.215:22534",
"request": "157.85.87.215:22533",
"map": "Ragnarok",
"gamemode": "TestGameMode_C",
"version": "358.24",
"numplayers": 2,
"maxplayers": 15,
"bots": 0,
"secured": true,
"private": false,
"country": "NL",
"status": true,
"votes": 0,
"points": 36,
"add_date": 1780177349,
"last_update": 1780900842,
"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": 652,
"language": "nl",
"parked": false,
"app": {
"id": 67,
"steam_id": 346110,
"name": "ARK: Survival Evolved",
"url": "ark-survival-evolved"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/11643200");
$data = json_decode($json, true);
var_dump($data);