Teamspeak 3
API для ČESKÁ F1 LIGA
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/11142919json
{
"response": {
"channels": {
"onlinecount": 23,
"items": [
{
"clients": 1,
"id": 1,
"items": [],
"name": "VSTUPNÍ MÍSTNOST",
"order": 0,
"parent_id": 0,
"topic": "Default Channel has no topic"
},
{
"clients": 0,
"id": 123,
"items": [],
"name": "Volný pokec",
"order": 1,
"parent_id": 0,
"topic": ""
},
{
"clients": 0,
"id": 4,
"items": [],
"name": "MARŠÁLOVÉ",
"order": 2,
"parent_id": 0,
"topic": ""
},
{
"clients": 0,
"id": 21,
"items": [],
"name": "[spacer1]__________________________",
"order": 3,
"parent_id": 0,
"topic": ""
},
{
"clients": 0,
"id": 3,
"items": [],
"name": "KOMENTÁTOŘI",
"order": 4,
"parent_id": 0,
"topic": ""
},
{
"clients": 0,
"id": 7,
"items": [],
"name": "ALPINE F1 Team",
"order": 6,
"parent_id": 0,
"topic": ""
},
{
"clients": 0,
"id": 9,
"items": [],
"name": "MERCEDES AMG PETRONAS",
"order": 7,
"parent_id": 0,
"topic": ""
},
{
"clients": 0,
"id": 10,
"items": [],
"name": "WILLIAMS RACING",
"order": 8,
"parent_id": 0,
"topic": ""
},
{
"clients": 0,
"id": 119,
"items": [],
"name": "AUDI SPORT",
"order": 9,
"parent_id": 0,
"topic": ""
},
{
"clients": 0,
"id": 122,
"items": [],
"name": "Slušovice F1 JZD",
"order": 10,
"parent_id": 0,
"topic": ""
},
{
"clients": 0,
"id": 14,
"items": [],
"name": "CF1L Team",
"order": 11,
"parent_id": 0,
"topic": ""
},
{
"clients": 0,
"id": 8,
"items": [],
"name": "McLAREN F1 TEAM",
"order": 12,
"parent_id": 0,
"topic": ""
},
{
"clients": 0,
"id": 118,
"items": [],
"name": "SCUDERIA FERRARI",
"order": 13,
"parent_id": 0,
"topic": ""
},
{
"clients": 0,
"id": 6,
"items": [],
"name": "STAKE F1 Team",
"order": 14,
"parent_id": 0,
"topic": ""
},
{
"clients": 0,
"id": 11,
"items": [],
"name": "VISA CaschApp RB",
"order": 15,
"parent_id": 0,
"topic": ""
},
{
"clients": 0,
"id": 13,
"items": [],
"name": "RED BULL RACING",
"order": 21,
"parent_id": 0,
"topic": ""
},
{
"clients": 0,
"id": 2,
"items": [],
"name": "ADMINI ČF1L",
"order": 22,
"parent_id": 0,
"topic": ""
},
{
"clients": 0,
"id": 18,
"items": [],
"name": "Soukromý salonek - vztup na pozvání",
"order": 25,
"parent_id": 0,
"topic": ""
},
{
"clients": 0,
"id": 22,
"items": [],
"name": "[spacer2]__________________________",
"order": 116,
"parent_id": 0,
"topic": ""
},
{
"clients": 0,
"id": 15,
"items": [],
"name": "Aston Martin Team",
"order": 118,
"parent_id": 0,
"topic": ""
},
{
"clients": 0,
"id": 12,
"items": [],
"name": "HAAS F1 TEAM",
"order": 119,
"parent_id": 0,
"topic": ""
},
{
"clients": 0,
"id": 25,
"items": [],
"name": "[spacer4]__________________________",
"order": 122,
"parent_id": 0,
"topic": ""
},
{
"clients": 0,
"id": 116,
"items": [],
"name": "Picí salonek",
"order": 123,
"parent_id": 0,
"topic": ""
}
]
},
"external_id": "v2ReYoPFsJ1TO98g9gtvjzYDPpk=",
"platform": "Windows",
"created": 1584054535,
"uptime": 9681052,
"steam_id": null,
"domain": null,
"id": 11142919,
"ip": "185.138.46.108",
"port": 9987,
"query": 9987,
"color": 0,
"city": "Prostějov",
"description": "Vítáme vás na novém TS ČF1L,vztup pouze se skutečným jménem, check www.ceskaf1liga.cz\nVítejte u nás...\\r\nVstupte pouze pod skutečným jménem.",
"game": 9000043,
"owner": null,
"boosts": 1,
"last_offline": 1774235512,
"score": 0,
"last_online": 1776912017,
"icon": null,
"name": "ČESKÁ F1 LIGA",
"connect": "185.138.46.108:9987",
"request": "185.138.46.108:9987",
"map": null,
"gamemode": null,
"version": "56769fee Build: 1655727713",
"numplayers": 1,
"maxplayers": 32,
"bots": 0,
"secured": null,
"private": true,
"country": "CZ",
"status": true,
"votes": 0,
"points": 62,
"add_date": 1770933678,
"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": 121,
"language": "cs",
"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.ru/servers/11142919");
$data = json_decode($json, true);
var_dump($data);