{US} Iron Haven Medieval 2 के लिए API
प्रोग्राम, वेबसाइट और अन्य के लिए JSON
text
json
{
"response": {
"fps": 27,
"fps_avg": 25,
"entities_count": 72266,
"world_seed": 1337,
"world_size": 5000,
"steam_id": "90286583258440729",
"domain": null,
"id": 11305819,
"ip": "66.51.99.71",
"port": 28005,
"query": 28006,
"color": 0,
"city": "Dallas",
"description": "\nWelcome to Iron Haven Medieval 2.. a forsaken isle where the King’s iron hand rules the realm. Wander not the roads at dusk, for the King’s Convoy rides with steel and fire, whilst rogue guards and fallen knights stalk the wilds in search of blood and plunder. Build thy keep, raise thy banner, and carve thy legend amidst war, treachery, and ruin.",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780177416,
"last_online": 1780567233,
"icon": null,
"name": "{US} Iron Haven Medieval 2",
"connect": "66.51.99.71:28005",
"request": "66.51.99.71:28006",
"map": "Custom Map",
"gamemode": "Primitive",
"version": "2625",
"numplayers": 1,
"maxplayers": 75,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1774592902,
"last_update": 1780567233,
"banned": false,
"wipe": 1780239041,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 4475,
"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/11305819");
$data = json_decode($json, true);
var_dump($data);