API dla WanderRust
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 218,
"fps_avg": 218,
"entities_count": 96314,
"world_seed": 1870245411,
"world_size": 4250,
"steam_id": "90286595540642839",
"domain": null,
"id": 6817437,
"ip": "103.15.236.190",
"port": 21678,
"query": 21679,
"color": 0,
"city": "Мельбурн",
"description": null,
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780608257,
"last_online": 1780604546,
"icon": null,
"name": "WanderRust",
"connect": "103.15.236.190:21678",
"request": "103.15.236.190:21679",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2625",
"numplayers": 0,
"maxplayers": 6,
"bots": 0,
"secured": true,
"private": false,
"country": "AU",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1733486286,
"last_update": 1780608257,
"banned": false,
"wipe": 1780581161,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 9824,
"language": "en",
"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/6817437");
$data = json_decode($json, true);
var_dump($data);