API dla ITALIA RUST SERVER TEST
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 111,
"fps_avg": 108,
"entities_count": 89559,
"world_seed": 133742069,
"world_size": 4000,
"steam_id": "90286419144476674",
"domain": null,
"id": 11500992,
"ip": "159.69.56.164",
"port": 7051,
"query": 7052,
"color": 0,
"city": "Falkenstein",
"description": null,
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1779604409,
"last_online": 1780605081,
"icon": null,
"name": "ITALIA RUST SERVER TEST",
"connect": "159.69.56.164:7051",
"request": "159.69.56.164:7052",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2625",
"numplayers": 0,
"maxplayers": 40,
"bots": 0,
"secured": true,
"private": false,
"country": "DE",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1779207166,
"last_update": 1780605081,
"banned": false,
"wipe": 1778960674,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 7122,
"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/11500992");
$data = json_decode($json, true);
var_dump($data);