Hosted by Gamebarry के लिए API
प्रोग्राम, वेबसाइट और अन्य के लिए JSON
text
json
{
"response": {
"steam_id": "90286214912849951",
"domain": null,
"id": 11602284,
"ip": "43.248.116.57",
"port": 10022,
"query": 10020,
"color": 0,
"city": "Zhenjiang",
"description": null,
"game": 251570,
"owner": null,
"boosts": 1,
"last_offline": 1779743005,
"last_online": 1779744750,
"icon": null,
"name": "Hosted by Gamebarry",
"connect": "43.248.116.57:10022",
"request": "43.248.116.57:10020",
"map": "Navezgane",
"gamemode": "7 Days To Die",
"version": "Alpha.20.7.1",
"numplayers": 0,
"maxplayers": 4,
"bots": 0,
"secured": false,
"private": false,
"country": "CN",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1779359252,
"last_update": 1779744750,
"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": 8055,
"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/11602284");
$data = json_decode($json, true);
var_dump($data);