Hoggy PVE के लिए API
प्रोग्राम, वेबसाइट और अन्य के लिए JSON
text
json
{
"response": {
"fps": 30,
"fps_avg": 29,
"entities_count": 115116,
"world_seed": 187144890,
"world_size": 4500,
"steam_id": "90286604713152515",
"domain": null,
"id": 343781,
"ip": "64.40.9.103",
"port": 28369,
"query": 28366,
"color": 0,
"city": "London",
"description": "\nWelcome to Hoggy G PvE\r\nServer Info:\r\nMap Wipe - Fortnighly\r\nBp's Wipe - Monthly\r\n\r\nRules - Please See Discord For All Server Rules\r\n\r\nMods:\r\nMonument Bradleys\r\nSinkable CargoShip\r\nJunkyard Event\r\nVirtual Quarries\r\nKits, Backpacks, Box Stacking & Zlevels\r\nTrade & Tpr \r\nTeleport Outpost, Bandit & Custom Built Town",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780598072,
"last_online": 1780599631,
"icon": null,
"name": "Hoggy PVE",
"connect": "64.40.9.103:28369",
"request": "64.40.9.103:28366",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2627",
"numplayers": 2,
"maxplayers": 200,
"bots": 0,
"secured": true,
"private": false,
"country": "GB",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1593285473,
"last_update": 1780599631,
"banned": false,
"wipe": 1780598007,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 5261,
"language": "en",
"parked": false,
"app": {
"id": 12,
"steam_id": 252490,
"name": "Rust",
"url": "rust"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}कोड उदाहरण
php
<?php
$json = file_get_contents("https://api.gamemonitoring.in/servers/343781");
$data = json_decode($json, true);
var_dump($data);