API dla Rustitution Vanila Monthly
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 40,
"fps_avg": 39,
"entities_count": 110778,
"world_seed": 2115374905,
"world_size": 4500,
"steam_id": "90286582509347864",
"domain": null,
"id": 11645179,
"ip": "73.164.18.155",
"port": 30112,
"query": 30113,
"color": 0,
"city": "Minneapolis",
"description": "\nLast wipe 25-5-26\r\n- Next wipe 4-6-26\r\n- 50% Reduced Upkeep\r\n- Active Admins\r\n\r\nRules:\r\n- No hacking / scripting\r\n- No intentional bug abuse\r\n- No ban evading\r\n- No EAC / Banned alts\r\n- No racism",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780549468,
"last_online": 1780583439,
"icon": null,
"name": "Rustitution Vanila Monthly",
"connect": "73.164.18.155:30112",
"request": "73.164.18.155:30113",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2625",
"numplayers": 0,
"maxplayers": 200,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1780177451,
"last_update": 1780583439,
"banned": false,
"wipe": 1779720510,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 5755,
"language": "en",
"parked": false,
"app": {
"id": 252490,
"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/11645179");
$data = json_decode($json, true);
var_dump($data);