API dla The Unknown PVE
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 97,
"fps_avg": 94,
"entities_count": 83641,
"world_seed": 761713477,
"world_size": 3700,
"steam_id": "90286639368083466",
"domain": null,
"id": 756233,
"ip": "167.160.93.165",
"port": 28025,
"query": 28027,
"project_id": null,
"color": 0,
"city": "New York",
"description": "Welcome to The Unknown PVE\r\n No Decay or Upkeep \r\n No PVP\r\n *Plug-Ins*\r\n Backpacks\r\n NTeleportation - /sethome /outpost /bandit\r\n Remover tool /remove \r\n Kits /kit\r\n Raidable Bases\r\n Free Driving Vehicles - No fuel needed\r\n Restore Upon Death - Keep loot when you die\r\n Vehicle License /license\r\n Larger Stacks\r\n Longer Days - Shorter Nights\r\n Vehicle Locks\r\n More Plug-Ins to be added later",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780632257,
"last_online": 1780686030,
"icon": null,
"name": "The Unknown PVE",
"connect": "167.160.93.165:28025",
"request": "167.160.93.165:28027",
"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": 1677863861,
"last_update": 1780686030,
"banned": false,
"wipe": 1780599551,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 1871,
"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/756233");
$data = json_decode($json, true);
var_dump($data);