API dla Jurassic Island Iztek | GGG | PvE | FRESH 5.1
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": "90286619853673498",
"domain": null,
"id": 4792830,
"ip": "38.158.145.57",
"port": 2803,
"query": 27025,
"color": 0,
"city": "Amarillo",
"description": null,
"game": 221100,
"owner": null,
"boosts": 1,
"last_offline": 1779352980,
"last_online": 1780640017,
"icon": null,
"name": "Jurassic Island Iztek | GGG | PvE | FRESH 5.1",
"connect": "38.158.145.57:2803",
"request": "38.158.145.57:27025",
"map": "Iztek",
"gamemode": null,
"version": "1.29.163047",
"numplayers": 3,
"maxplayers": 40,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 34,
"add_date": 1718397038,
"last_update": 1780640017,
"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": 4583,
"language": "en",
"parked": false,
"app": {
"id": 63,
"steam_id": 221100,
"name": "DayZ",
"url": "dayz"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/4792830");
$data = json_decode($json, true);
var_dump($data);