API dla Wait...What? |Raid Bases and QOL Mods
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 116,
"fps_avg": 116,
"entities_count": 128082,
"world_seed": 41649817,
"world_size": 4250,
"steam_id": 90286585534363650,
"domain": null,
"id": 3875332,
"ip": "173.225.104.218",
"port": 28080,
"query": 28015,
"color": 0,
"city": "Teterboro",
"description": "Welcome to Wait....what? \n \r We Have Only 2 Rules on this server! \n \r *1. Max of 5 man teams \n \r *2. Do not steal another players scrap heli, mini, car or any other form of transportation. \n \r ** True PVE \n \r **Auto Lights \n \r **Remove Tool \n \r **Blueprints available on request in discord \n \r **Larger Stack Sizes \n \r **Skill Tree \n \r\n \n \n Powered by Oxide 2.0.4128 for Rust 2588.267.1",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780301058,
"last_online": 1780581643,
"icon": null,
"name": "Wait...What? |Raid Bases and QOL Mods",
"connect": "173.225.104.218:28080",
"request": "173.225.104.218:28015",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2625",
"numplayers": 0,
"maxplayers": 50,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1713339138,
"last_update": 1780581643,
"banned": false,
"wipe": 1778183287,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 2758,
"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/3875332");
$data = json_decode($json, true);
var_dump($data);