API dla House Of Rust
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 210,
"fps_avg": 214,
"entities_count": 91384,
"world_seed": 313494972,
"world_size": 4000,
"steam_id": "90286245938882568",
"domain": null,
"id": 11511865,
"ip": "135.148.252.244",
"port": 24834,
"query": 24835,
"color": 0,
"city": "Hudson",
"description": "Welcome To House Of Rust!\r\nHouse Of Rust is a chill vanilla server\r\nThe server runs a monthly wipe with bp's wiped\r\nNo offlining or killing on site, Last week of wipe is considered a purge week\r\nEnjoy and play respectfully!\r\nPVP at monuments and events are allowed,",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780670014,
"last_online": 1779818424,
"icon": null,
"name": "House Of Rust",
"connect": "135.148.252.244:24834",
"request": "135.148.252.244:24835",
"map": "Custom Map",
"gamemode": "Survival",
"version": "2625",
"numplayers": 0,
"maxplayers": 40,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1779353866,
"last_update": 1780670014,
"banned": false,
"wipe": 1778177957,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 11391,
"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/11511865");
$data = json_decode($json, true);
var_dump($data);