The Ogs के लिए API
प्रोग्राम, वेबसाइट और अन्य के लिए JSON
text
json
{
"response": {
"steam_id": "90286673552078856",
"domain": null,
"id": 11717596,
"ip": "202.36.95.130",
"port": 28735,
"query": 28735,
"project_id": null,
"color": 0,
"city": "Frankfurt am Main",
"description": null,
"game": 730,
"owner": null,
"boosts": 1,
"last_offline": 1780749864,
"last_online": 1780851067,
"icon": null,
"name": "The Ogs",
"connect": "202.36.95.130:28735",
"request": "202.36.95.130:28735",
"map": "de_inferno",
"gamemode": "Counter-Strike 2",
"version": "1.41.6.5",
"numplayers": 0,
"maxplayers": 16,
"bots": 2,
"secured": false,
"private": false,
"country": "DE",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1780324029,
"last_update": 1780851067,
"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": 12860,
"language": "de",
"parked": false,
"app": {
"id": 2,
"steam_id": 730,
"name": "Counter-Strike 2",
"url": "counter-strike-2"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}कोड उदाहरण
php
<?php
$json = file_get_contents("https://api.gamemonitoring.in/servers/11717596");
$data = json_decode($json, true);
var_dump($data);