API dla TheIsland Olasz
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": "90286972412674064",
"domain": null,
"id": 11778855,
"ip": "94.172.86.7",
"port": 7777,
"query": 27015,
"project_id": null,
"color": 0,
"city": "Krakow",
"description": null,
"game": 346110,
"owner": null,
"boosts": 1,
"last_offline": 1781491986,
"last_online": 1781385065,
"icon": null,
"name": "TheIsland Olasz",
"connect": "94.172.86.7:7777",
"request": "94.172.86.7:27015",
"map": "TheIsland",
"gamemode": "TestGameMode_C",
"version": "358.24",
"numplayers": 0,
"maxplayers": 10,
"bots": 0,
"secured": true,
"private": false,
"country": "PL",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1781376589,
"last_update": 1781491986,
"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": 16924,
"language": "pl",
"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/11778855");
$data = json_decode($json, true);
var_dump($data);