API dla Rufus Server
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 240,
"fps_avg": 239,
"entities_count": 24910,
"world_seed": 47726484,
"world_size": 2300,
"steam_id": "90286619186580499",
"domain": null,
"id": 11677283,
"ip": "65.21.12.62",
"port": 25616,
"query": 25597,
"color": 0,
"city": "Helsinki",
"description": null,
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780615401,
"last_online": 1780635678,
"icon": null,
"name": "Rufus Server",
"connect": "65.21.12.62:25616",
"request": "65.21.12.62:25597",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2627",
"numplayers": 0,
"maxplayers": 2,
"bots": 0,
"secured": true,
"private": false,
"country": "FI",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1780216200,
"last_update": 1780635678,
"banned": false,
"wipe": 1780615787,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 8891,
"language": "fi",
"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/11677283");
$data = json_decode($json, true);
var_dump($data);