API dla Geek Land
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 223,
"fps_avg": 230,
"entities_count": 29558,
"world_seed": 19820423,
"world_size": 2500,
"steam_id": "90286397528687635",
"domain": null,
"id": 7173929,
"ip": "202.36.95.13",
"port": 28406,
"query": 28407,
"color": 0,
"city": "Frankfurt am Main",
"description": null,
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780135367,
"last_online": 1780570311,
"icon": null,
"name": "Geek Land",
"connect": "202.36.95.13:28406",
"request": "202.36.95.13:28407",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2625",
"numplayers": 0,
"maxplayers": 20,
"bots": 0,
"secured": true,
"private": false,
"country": "DE",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1736279618,
"last_update": 1780570311,
"banned": false,
"wipe": 1780135903,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 6616,
"language": "de",
"parked": false,
"app": {
"id": 12,
"steam_id": 252490,
"name": "Rust",
"url": "rust"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/7173929");
$data = json_decode($json, true);
var_dump($data);