API dla Rusty Tinu - PvE [NO kill/raid/steal] [NICHT toeten/raiden/steh
JSON dla programów, stron i innych
text
json
{
"response": {
"modded": true,
"fps": 54,
"fps_avg": 53,
"entities_count": 117013,
"world_seed": 101,
"world_size": 4500,
"steam_id": "90286568673427468",
"domain": null,
"id": 11606405,
"ip": "134.255.217.65",
"port": 27072,
"query": 27074,
"color": 0,
"city": "Münster",
"description": "![Rusty Tinu - PvE [NO kill/raid/steal] [NICHT toeten/raiden/steh](http://i.imgur.com/xNyLhMt.jpg)\nprivater (Test-) Server von Tinu1976.ch - \r\n\r\n enjoy! PVE, no kill, no cheat, no steal, just enjoy - \r\n\r\n hosted by ZAP-Hosting.com",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780584276,
"last_online": 1780600831,
"icon": null,
"name": "Rusty Tinu - PvE [NO kill/raid/steal] [NICHT toeten/raiden/steh",
"connect": "134.255.217.65:27072",
"request": "134.255.217.65:27074",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2625",
"numplayers": 0,
"maxplayers": 24,
"bots": 0,
"secured": true,
"private": false,
"country": "DE",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1779915470,
"last_update": 1780600831,
"banned": false,
"wipe": 1779862402,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 4745,
"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/11606405");
$data = json_decode($json, true);
var_dump($data);