Name is not set on server के लिए API
प्रोग्राम, वेबसाइट और अन्य के लिए JSON
text
json
{
"response": {
"steam_id": null,
"domain": null,
"id": 6150717,
"ip": null,
"port": null,
"query": null,
"color": 0,
"city": null,
"description": "[{\"id\":\"mlgmDGTttx\",\"type\":\"paragraph\",\"data\":{\"text\":\"Добро пожаловать на сервер!\\\\Рейты ресурсов x10-20\\\\рейты компонентов x10\\\\Также у нас доступны магические деревья\"}}]",
"game": 252490,
"owner": 92847,
"boosts": 1,
"last_offline": 1754646224,
"last_online": 1751823018,
"icon": null,
"name": "Name is not set on server",
"connect": null,
"request": null,
"map": "Procedural Map",
"gamemode": "Survival",
"version": null,
"numplayers": 0,
"maxplayers": 100,
"bots": 0,
"secured": false,
"private": false,
"country": "RU",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1728013569,
"last_update": 1754646224,
"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": 13239,
"language": "ru",
"parked": true,
"app": {
"id": 12,
"steam_id": 252490,
"name": "Rust",
"url": "rust"
},
"server_owner": {
"username": "GPON",
"avatar": "7e095f25-3de6-483a-b7c6-33e4583060e0.jpg"
},
"mods": [],
"disabled_modules": []
}
}कोड उदाहरण
php
<?php
$json = file_get_contents("https://api.gamemonitoring.in/servers/6150717");
$data = json_decode($json, true);
var_dump($data);