API dla Stravos 2x MONTHLY |BP Sharing|BattlePass|Kits|TP|
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 60,
"fps_avg": 59,
"entities_count": 79393,
"world_seed": 1961398685,
"world_size": 3700,
"steam_id": "90286604128230401",
"domain": null,
"id": 9640818,
"ip": "195.252.231.238",
"port": 28019,
"query": 28020,
"color": 0,
"city": "Norfolk",
"description": "\nWelcome to Stravos 2x! \r\n * Map Wipe: ForceWipe \r\n\r\n FEATURES:\r\n\r\n ▶ RUST + ENABLED \r\n ▶ Offline Raid Protection (24hrs) \r\n ▶ 2x Stack Size (Except guns\\Clothes) \r\n ▶ 2x Resource Gathering \r\n ▶ 4x Furnace Speed \r\n ▶ 2x crafting speed \r\n ▶ MyMini available to spawn with scrap \r\n ▶ Shop \r\n ▶ Kits \r\n ▶ Everything stack up to 3 high \r\n ▶ BP Fragments added into loottables \r\n ▶ Skinbox \r\n ▶ 2x Quarries/Excav \r\n ▶ BP sharing \r\n ▶ Extended Workbench Aura.\r\n ▶ PVP Ping markers",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780596270,
"last_online": 1780605030,
"icon": null,
"name": "Stravos 2x MONTHLY |BP Sharing|BattlePass|Kits|TP|",
"connect": "195.252.231.238:28019",
"request": "195.252.231.238:28020",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2627",
"numplayers": 3,
"maxplayers": 50,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 62,
"add_date": 1751297642,
"last_update": 1780605030,
"banned": false,
"wipe": 1780596513,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 2079,
"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/9640818");
$data = json_decode($json, true);
var_dump($data);