API dla Drake Lost World PvPvE 3xp
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": "90286896416709651",
"domain": null,
"id": 11495946,
"ip": "185.203.18.59",
"port": 7744,
"query": 27044,
"project_id": null,
"color": 0,
"city": "Čabdin",
"description": null,
"game": 346110,
"owner": null,
"boosts": 1,
"last_offline": 1780653204,
"last_online": 1781221894,
"icon": null,
"name": "Drake Lost World PvPvE 3xp",
"connect": "185.203.18.59:7744",
"request": "185.203.18.59:27044",
"map": "TheIsland",
"gamemode": "TestGameMode_C",
"version": "900.0",
"numplayers": 0,
"maxplayers": 33,
"bots": 0,
"secured": true,
"private": false,
"country": "HR",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1779207009,
"last_update": 1781221894,
"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": 7876,
"language": "hr",
"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/11495946");
$data = json_decode($json, true);
var_dump($data);