API dla Stravos - PVE |CONVOY|NPC RAIDS|LEGENDARY WEAPONS| NEW MONUMENT
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 60,
"fps_avg": 59,
"entities_count": 124056,
"world_seed": 1337,
"world_size": 4300,
"steam_id": "90286605958327297",
"domain": null,
"id": 11502507,
"ip": "195.252.231.238",
"port": 28015,
"query": 28016,
"color": 0,
"city": "Norfolk",
"description": "\nWelcome to Stravos PVE \r\n FEATURES \r\n\r\n ▶ Vanilla Gathering w/ SkillTree Enhancement \r\n ▶ Vanilla Furnace Speed w/ SkillTree Enhancement \r\n ▶ DEEP SEA PVP \r\n ▶ PVP At Monuments \r\n ▶ LEGENDARY/MYTHIC weapons available to loot \r\n ▶ Enhanced Scientist AI \r\n ▶ Half Upkeep \r\n ▶ Spawnable Vehicles \r\n ▶ Flying CargoShip \r\n ▶ Boss NPC's \r\n ▶ Raidable Boats \r\n ▶ Raidable Bases \r\n ▶ NPC Raids on Player Bases \r\n ▶ Convoy \r\n ▶ Skinbox | Furnace Splitter \r\n ▶ Kits",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780596270,
"last_online": 1780605029,
"icon": null,
"name": "Stravos - PVE |CONVOY|NPC RAIDS|LEGENDARY WEAPONS| NEW MONUMENT",
"connect": "195.252.231.238:28015",
"request": "195.252.231.238:28016",
"map": "Custom Map",
"gamemode": "Survival",
"version": "2627",
"numplayers": 4,
"maxplayers": 50,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 63,
"add_date": 1779207201,
"last_update": 1780605029,
"banned": false,
"wipe": 1780601414,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 1598,
"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/11502507");
$data = json_decode($json, true);
var_dump($data);