API dla 逍遥ARK/深渊全拓展/十倍/S+/万能地/仙境/PVE搜XY -
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": "90286651969450013",
"domain": null,
"id": 11779533,
"ip": "202.189.23.165",
"port": 20023,
"query": 21012,
"project_id": null,
"color": 0,
"city": "Beijing",
"description": null,
"game": 346110,
"owner": null,
"boosts": 1,
"last_offline": 1781376605,
"last_online": 1781394046,
"icon": null,
"name": "逍遥ARK/深渊全拓展/十倍/S+/万能地/仙境/PVE搜XY -",
"connect": "202.189.23.165:20023",
"request": "202.189.23.165:21012",
"map": "Ragnarok",
"gamemode": "TestGameMode_GenericMod_ABYSS_integrate_C",
"version": "1.0.0.0",
"numplayers": 10,
"maxplayers": 255,
"bots": 0,
"secured": false,
"private": false,
"country": "CN",
"status": true,
"votes": 0,
"points": 34,
"add_date": 1781376605,
"last_update": 1781394046,
"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": 1726,
"language": "zh",
"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/11779533");
$data = json_decode($json, true);
var_dump($data);