API dla [DE]-=Rustplatz Niceservice=- Vanilla since 2016
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 53,
"fps_avg": 53,
"entities_count": 123502,
"world_seed": 320029720,
"world_size": 4500,
"steam_id": "90286618529659923",
"domain": null,
"id": 2950242,
"ip": "91.106.129.200",
"port": 28017,
"query": 28015,
"color": 0,
"city": "Trittau",
"description": "![[DE]-=Rustplatz Niceservice=- Vanilla since 2016](http://public.niceservice.de/rust/Server_Logo.png)\nSolo/Duo/Trio \r\n powered by niceservice.de \r\n \r\n Willkommen auf dem Rustplatz Niceservice \r\n \r\n Regeln \r\n - Respect, be Fair, be Nice!",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780629254,
"last_online": 1780650033,
"icon": null,
"name": "[DE]-=Rustplatz Niceservice=- Vanilla since 2016",
"connect": "91.106.129.200:28017",
"request": "91.106.129.200:28015",
"map": "Procedural Map",
"gamemode": "Vanilla",
"version": "2627",
"numplayers": 0,
"maxplayers": 60,
"bots": 0,
"secured": true,
"private": false,
"country": "DE",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1707481031,
"last_update": 1780650033,
"banned": false,
"wipe": 1780597856,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 2850,
"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/2950242");
$data = json_decode($json, true);
var_dump($data);