API dla [FR-PVE] ADE MODS - x3 REC X5 / Tam X10 & Rep X20
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": "90286906001265690",
"domain": null,
"id": 11710341,
"ip": "31.58.161.2",
"port": 7808,
"query": 27104,
"project_id": null,
"color": 0,
"city": "Paris",
"description": null,
"game": 346110,
"owner": null,
"boosts": 1,
"last_offline": 1781314976,
"last_online": 1781252481,
"icon": null,
"name": "[FR-PVE] ADE MODS - x3 REC X5 / Tam X10 & Rep X20",
"connect": "31.58.161.2:7808",
"request": "31.58.161.2:27104",
"map": "Fjordur",
"gamemode": "TestGameMode_C",
"version": "358.24",
"numplayers": 0,
"maxplayers": 50,
"bots": 0,
"secured": true,
"private": false,
"country": "FR",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1780300615,
"last_update": 1781314976,
"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": 15610,
"language": "fr",
"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/11710341");
$data = json_decode($json, true);
var_dump($data);