API dla Corrosion Hour | No Decay | No BP Wipes | Monthly
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 44,
"fps_avg": 40,
"entities_count": 114988,
"world_seed": 374688336,
"world_size": 4250,
"steam_id": "90286604416616464",
"domain": null,
"id": 10979205,
"ip": "91.229.114.90",
"port": 28020,
"query": 28022,
"color": 0,
"city": "Chicago",
"description": "\nCorrosion Hour is a vanilla-RUST server with no decay, no upkeep, and no BP wipes. The map wipes on the 1st Thursday of the month, in sync with the official updates.\r\n- Next Map Wipe: July 2nd\r\n- Discord: https://discord.gg/P2jqd6q\r\n- Website: www.corrosionhour.com",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780596862,
"last_online": 1780605026,
"icon": null,
"name": "Corrosion Hour | No Decay | No BP Wipes | Monthly",
"connect": "91.229.114.90:28020",
"request": "91.229.114.90:28022",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2627",
"numplayers": 17,
"maxplayers": 100,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 67,
"add_date": 1769901077,
"last_update": 1780605026,
"banned": false,
"wipe": 1780596242,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 1021,
"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/10979205");
$data = json_decode($json, true);
var_dump($data);