Hosted by Gamebarry के लिए API
प्रोग्राम, वेबसाइट और अन्य के लिए JSON
text
json
{
"response": {
"steam_id": "90286214734252059",
"domain": null,
"id": 11602216,
"ip": "43.248.116.117",
"port": 10110,
"query": 10110,
"color": 0,
"city": "Zhenjiang",
"description": null,
"game": 251570,
"owner": null,
"boosts": 1,
"last_offline": 1779359249,
"last_online": 1779744651,
"icon": null,
"name": "Hosted by Gamebarry",
"connect": "43.248.116.117:10110",
"request": "43.248.116.117:10110",
"map": "Pregen08k02",
"gamemode": "7 Days To Die",
"version": "01.02.05",
"numplayers": 0,
"maxplayers": 4,
"bots": 0,
"secured": false,
"private": false,
"country": "CN",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1779359249,
"last_update": 1779744651,
"banned": false,
"wipe": null,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": null,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 8008,
"language": "zh",
"parked": false,
"app": {
"id": 49,
"steam_id": 251570,
"name": "7 Days to Die",
"url": "7-days-to-die"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}कोड उदाहरण
php
<?php
$json = file_get_contents("https://api.gamemonitoring.in/servers/11602216");
$data = json_decode($json, true);
var_dump($data);