Server के लिए API
प्रोग्राम, वेबसाइट और अन्य के लिए JSON
text
json
{
"response": {
"steam_id": null,
"domain": null,
"id": 10292371,
"ip": null,
"port": null,
"query": null,
"color": 0,
"city": "Curitiba",
"description": null,
"game": 10,
"owner": 135664,
"boosts": 1,
"last_offline": 1776577956,
"last_online": 1775642417,
"icon": null,
"name": "Server",
"connect": null,
"request": null,
"map": null,
"gamemode": null,
"version": null,
"numplayers": 0,
"maxplayers": 25,
"bots": 0,
"secured": null,
"private": false,
"country": "BR",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1757884230,
"last_update": 1776577956,
"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": 11281,
"language": "pt",
"parked": true,
"app": {
"id": 3,
"steam_id": 10,
"name": "Counter-Strike",
"url": "counter-strike"
},
"server_owner": {
"username": "MR_J4CK_gaming",
"avatar": "e3ca7004-ba7c-4c16-9b22-46d8fd66f240.jpg"
},
"mods": [],
"disabled_modules": []
}
}कोड उदाहरण
php
<?php
$json = file_get_contents("https://api.gamemonitoring.in/servers/10292371");
$data = json_decode($json, true);
var_dump($data);