Teamspeak 3
SomeOGs के लिए API
प्रोग्राम, वेबसाइट और अन्य के लिए JSON
text
https://api.gamemonitoring.in/servers/10134594json
{
"response": {
"channels": {
"onlinecount": 22,
"items": [
{
"clients": -1,
"id": 17,
"items": [],
"name": "[*spacer1]———————————————",
"order": 0,
"parent_id": 0,
"topic": ""
},
{
"clients": -1,
"id": 30,
"items": [],
"name": "[cspacer4]╘══╕ Welcome ╒══╛",
"order": 17,
"parent_id": 0,
"topic": ""
},
{
"clients": -1,
"id": 27,
"items": [],
"name": "[*spacer4]———————————————",
"order": 18,
"parent_id": 0,
"topic": ""
},
{
"clients": -1,
"id": 28,
"items": [
{
"clients": 0,
"id": 12,
"items": [],
"name": "Channel #1",
"order": 0,
"parent_id": 28,
"topic": ""
},
{
"clients": 0,
"id": 13,
"items": [],
"name": "Channel #2",
"order": 12,
"parent_id": 28,
"topic": ""
},
{
"clients": 0,
"id": 14,
"items": [],
"name": "Channel #3",
"order": 13,
"parent_id": 28,
"topic": ""
},
{
"clients": 0,
"id": 89,
"items": [],
"name": "Channel #4",
"order": 14,
"parent_id": 28,
"topic": ""
},
{
"clients": 0,
"id": 90,
"items": [],
"name": "Channel #5",
"order": 89,
"parent_id": 28,
"topic": ""
}
],
"name": "[cspacer2]╘══╕ Channels ╒══╛",
"order": 19,
"parent_id": 0,
"topic": ""
},
{
"clients": -1,
"id": 19,
"items": [],
"name": "[*spacer2]———————————————",
"order": 25,
"parent_id": 0,
"topic": ""
},
{
"clients": -1,
"id": 29,
"items": [],
"name": "[cspacer3]╘══╕ Private ╒══╛",
"order": 26,
"parent_id": 0,
"topic": ""
},
{
"clients": -1,
"id": 31,
"items": [],
"name": "[cspacer2]╘══╕ AFK ╒══╛",
"order": 27,
"parent_id": 0,
"topic": ""
},
{
"clients": -1,
"id": 73,
"items": [],
"name": "[*spacer5]———————————————",
"order": 28,
"parent_id": 0,
"topic": ""
},
{
"clients": 0,
"id": 18,
"items": [],
"name": "Private",
"order": 29,
"parent_id": 0,
"topic": ""
},
{
"clients": 1,
"id": 25,
"items": [],
"name": "Lobby",
"order": 30,
"parent_id": 0,
"topic": ""
},
{
"clients": 0,
"id": 20,
"items": [],
"name": "AFK",
"order": 31,
"parent_id": 0,
"topic": ""
},
{
"clients": -1,
"id": 74,
"items": [],
"name": "[cspacer5]╘══╕ Custom ╒══╛",
"order": 73,
"parent_id": 0,
"topic": ""
},
{
"clients": 0,
"id": 161,
"items": [],
"name": "CS2",
"order": 74,
"parent_id": 0,
"topic": ""
},
{
"clients": 0,
"id": 122,
"items": [],
"name": "Forest",
"order": 95,
"parent_id": 0,
"topic": ""
},
{
"clients": 0,
"id": 140,
"items": [],
"name": "Murvud",
"order": 122,
"parent_id": 0,
"topic": ""
},
{
"clients": -1,
"id": 26,
"items": [],
"name": "[*spacer3]———————————————",
"order": 140,
"parent_id": 0,
"topic": ""
},
{
"clients": 0,
"id": 95,
"items": [],
"name": "IDK",
"order": 161,
"parent_id": 0,
"topic": ""
}
]
},
"external_id": "BaWMz6l/CcOXuOcM4kuI4AWeCvk=",
"platform": "Linux",
"created": 1656974849,
"uptime": 156700,
"steam_id": null,
"domain": null,
"id": 10134594,
"ip": "80.123.68.34",
"port": 9987,
"query": 9987,
"color": 0,
"city": "Graz",
"description": "Welcome to SomeOGs!\n\nWe are a small Gaming-Community and are primarily using Discord. \nWe have dedicated Servers for Rust, CS, Valheim and more.\nFeel free to also join our Discord -> https://discord.gg/Esprc4cCdC",
"game": 9000043,
"owner": null,
"boosts": 1,
"last_offline": 1776754950,
"score": 0,
"last_online": 1776912017,
"icon": null,
"name": "SomeOGs",
"connect": "80.123.68.34:9987",
"request": "80.123.68.34:9987",
"map": null,
"gamemode": null,
"version": "3.13.7 Build: 1655727713",
"numplayers": 1,
"maxplayers": 32,
"bots": 0,
"secured": null,
"private": false,
"country": "AT",
"status": true,
"votes": 0,
"points": 62,
"add_date": 1756165841,
"last_update": 1776912017,
"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": 102,
"language": "de",
"parked": false,
"app": {
"id": 1629110,
"steam_id": 9000043,
"name": "Teamspeak 3",
"url": "teamspeak-3"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}कोड उदाहरण
php
<?php
$json = file_get_contents("https://api.gamemonitoring.in/servers/10134594");
$data = json_decode($json, true);
var_dump($data);