API dla Ham and Beans|MyMini|4x|BPT1|TruePVE
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 70,
"fps_avg": 71,
"entities_count": 57210,
"world_seed": 2147483647,
"world_size": 2900,
"steam_id": "90286498905436189",
"domain": null,
"id": 5664436,
"ip": "162.230.243.193",
"port": 28016,
"query": 28020,
"color": 0,
"city": "Findlay",
"description": "\nWelcome to Ham and Beans. PVE Server with PVP at Monuments.\r\nMyMini | 4x Gather Rate and Stack Size | Auto Close Doors.\r\nFaster Recyclers with increasded output.\r\nRaidable Base Events | NPC Raiders | Random AirDrops | GatherAway.\r\nPlayers can Lay Eggs when Eating | Home Locations and Teleport. \r\nRoaming NPCs!!!!!!!!!\r\nBuild Your Base and Be Creative",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780097012,
"last_online": 1780588235,
"icon": null,
"name": "Ham and Beans|MyMini|4x|BPT1|TruePVE",
"connect": "162.230.243.193:28016",
"request": "162.230.243.193:28020",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2625",
"numplayers": 0,
"maxplayers": 101,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1723803552,
"last_update": 1780588235,
"banned": false,
"wipe": 1778211125,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 2916,
"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/5664436");
$data = json_decode($json, true);
var_dump($data);