API для ts.topgames.fit
JSON для программ, сайтов и прочего
text
json
{
"response": {
"channels": {
"onlinecount": 28,
"items": [
{
"clients": -1,
"id": 15,
"items": [],
"name": "[*spacer6120543.,]...",
"order": 0,
"parent_id": 0,
"topic": ""
},
{
"clients": 0,
"id": 16,
"items": [],
"name": "Asistenta Tehnica - Tehnical Support",
"order": 15,
"parent_id": 0,
"topic": "🔺🔺🔺"
},
{
"clients": -1,
"id": 22,
"items": [],
"name": "[*spacer1323231]...",
"order": 16,
"parent_id": 0,
"topic": ""
},
{
"clients": 2,
"id": 25,
"items": [],
"name": "[cspacer101]✅ MAIN CHANNEL - WELCOME ✅",
"order": 22,
"parent_id": 0,
"topic": ""
},
{
"clients": 0,
"id": 57,
"items": [],
"name": "[*spacer10]...",
"order": 25,
"parent_id": 0,
"topic": ""
},
{
"clients": 0,
"id": 58,
"items": [
{
"clients": 0,
"id": 59,
"items": [],
"name": "Comandamentul suprem",
"order": 0,
"parent_id": 58,
"topic": ""
},
{
"clients": 1,
"id": 60,
"items": [],
"name": "Pluton 1",
"order": 59,
"parent_id": 58,
"topic": ""
},
{
"clients": 0,
"id": 61,
"items": [],
"name": "Pluton 2",
"order": 60,
"parent_id": 58,
"topic": ""
},
{
"clients": 3,
"id": 62,
"items": [],
"name": "Pluton 3",
"order": 61,
"parent_id": 58,
"topic": ""
},
{
"clients": 0,
"id": 63,
"items": [],
"name": "Pluton 4",
"order": 62,
"parent_id": 58,
"topic": ""
},
{
"clients": 2,
"id": 64,
"items": [],
"name": "Pluton 5",
"order": 63,
"parent_id": 58,
"topic": ""
},
{
"clients": 0,
"id": 65,
"items": [],
"name": "Pluton 6",
"order": 64,
"parent_id": 58,
"topic": ""
},
{
"clients": 4,
"id": 66,
"items": [],
"name": "Pluton 7",
"order": 65,
"parent_id": 58,
"topic": ""
},
{
"clients": 0,
"id": 67,
"items": [],
"name": "Pluton 8",
"order": 66,
"parent_id": 58,
"topic": ""
},
{
"clients": 0,
"id": 68,
"items": [],
"name": "Team CW CU Regulii !",
"order": 67,
"parent_id": 58,
"topic": ""
},
{
"clients": 0,
"id": 69,
"items": [],
"name": "Ofensiva",
"order": 68,
"parent_id": 58,
"topic": ""
},
{
"clients": 0,
"id": 70,
"items": [],
"name": "Deta",
"order": 69,
"parent_id": 58,
"topic": ""
},
{
"clients": 1,
"id": 219,
"items": [],
"name": "Muzică",
"order": 70,
"parent_id": 58,
"topic": ""
},
{
"clients": 0,
"id": 71,
"items": [],
"name": "AFK",
"order": 219,
"parent_id": 58,
"topic": ""
}
],
"name": "➥ [DAC_R] DIVIZIA NOASTRA",
"order": 57,
"parent_id": 0,
"topic": ""
},
{
"clients": -1,
"id": 72,
"items": [],
"name": "[*spacer5240]...",
"order": 58,
"parent_id": 0,
"topic": ""
},
{
"clients": 0,
"id": 75,
"items": [
{
"clients": 0,
"id": 76,
"items": [
{
"clients": 0,
"id": 77,
"items": [],
"name": "Team A",
"order": 0,
"parent_id": 76,
"topic": ""
},
{
"clients": 0,
"id": 78,
"items": [],
"name": "Team B",
"order": 77,
"parent_id": 76,
"topic": ""
}
],
"name": "Counter-Strike 2",
"order": 0,
"parent_id": 75,
"topic": ""
},
{
"clients": 0,
"id": 79,
"items": [],
"name": "Admin",
"order": 76,
"parent_id": 75,
"topic": ""
},
{
"clients": 0,
"id": 80,
"items": [],
"name": "Sik odasi",
"order": 79,
"parent_id": 75,
"topic": ""
}
],
"name": "➥ [CYFAMILIA]",
"order": 72,
"parent_id": 0,
"topic": ""
},
{
"clients": 0,
"id": 218,
"items": [],
"name": "[*spacer3442223]...",
"order": 75,
"parent_id": 0,
"topic": ""
}
]
},
"external_id": "0J9LBd9AV1UgfmiwW4/aN0u5Gms=",
"platform": "Linux",
"created": 1588261785,
"uptime": 7431,
"steam_id": null,
"domain": null,
"id": 11491408,
"ip": "45.8.187.120",
"port": 9987,
"query": 9987,
"color": 0,
"city": "Amsterdam",
"description": "Сервер завершает работу - НОВЫЙ IP : ts.euro-dreams.ro\n Сервер завершает работу - НОВЫЙ IP : ts.euro-dreams.ro\n Сервер завершает работу - НОВЫЙ IP : ts.euro-dreams.ro\n Сервер завершает работу - НОВЫЙ IP : ts.euro-dreams.ro",
"game": 9000043,
"owner": null,
"boosts": 1,
"last_offline": 1780498996,
"last_online": 1779643818,
"icon": null,
"name": "ts.topgames.fit",
"connect": "45.8.187.120:9987",
"request": "45.8.187.120:9987",
"map": null,
"gamemode": null,
"version": "3.13.7 Build: 1655727713",
"numplayers": 0,
"maxplayers": 32,
"bots": 0,
"secured": null,
"private": false,
"country": "NL",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1777275643,
"last_update": 1780498996,
"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": 180,
"language": "nl",
"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/11491408");
$data = json_decode($json, true);
var_dump($data);