API dla HOY Rust Server [No Decay]
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 84,
"fps_avg": 90,
"entities_count": 83822,
"world_seed": 1162178,
"world_size": 1162188,
"steam_id": "90285990176820224",
"domain": null,
"id": 557011,
"ip": "108.61.119.147",
"port": 28056,
"query": 28056,
"color": 0,
"city": "Elk Grove Village",
"description": "",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1779279183,
"last_online": 1780593705,
"icon": null,
"name": "HOY Rust Server [No Decay]",
"connect": "108.61.119.147:28056",
"request": "108.61.119.147:28056",
"map": "Procedural Map",
"gamemode": "Rust",
"version": "2081",
"numplayers": 0,
"maxplayers": 55,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1665918938,
"last_update": 1780593705,
"banned": false,
"wipe": 1524097345,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 1,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 6174,
"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/557011");
$data = json_decode($json, true);
var_dump($data);