Teamspeak 3
API pentru Porkys Gaming & Porky's Radio
JSON pentru programe, site-uri și altele
text
https://api.gamemonitoring.ro/servers/11142906json
{
"response": {
"channels": {
"onlinecount": 13,
"items": [
{
"clients": 1,
"id": 67,
"items": [],
"name": "Porky's Radio",
"order": 0,
"parent_id": 0,
"topic": "Porky's Radio"
},
{
"clients": -1,
"id": 16,
"items": [],
"name": "[cspacer4]** Emulator & Rom Downloads **",
"order": 10,
"parent_id": 0,
"topic": ""
},
{
"clients": -1,
"id": 17,
"items": [],
"name": "EMULATOR AND ROM DOWNLOADS",
"order": 16,
"parent_id": 0,
"topic": "Games emulators and Roms for crew members"
},
{
"clients": -1,
"id": 29,
"items": [],
"name": "[cspacer6]****** GAMING CHANNELS *******",
"order": 17,
"parent_id": 0,
"topic": ""
},
{
"clients": 0,
"id": 65,
"items": [],
"name": "DEBATE AND RANT ROOM",
"order": 24,
"parent_id": 0,
"topic": "ROOM TO RANT IN"
},
{
"clients": 0,
"id": 61,
"items": [],
"name": "AFK Channel",
"order": 29,
"parent_id": 0,
"topic": "AFK Channel"
},
{
"clients": 0,
"id": 22,
"items": [],
"name": "Public Community Channel",
"order": 55,
"parent_id": 0,
"topic": "Free to use Public Channel or Create your own"
},
{
"clients": 0,
"id": 24,
"items": [],
"name": "The Natter Lounge",
"order": 61,
"parent_id": 0,
"topic": "Banter and Nattering"
},
{
"clients": 0,
"id": 55,
"items": [],
"name": "[cspacer7]** Create Your Own Channels **",
"order": 65,
"parent_id": 0,
"topic": ""
},
{
"clients": 0,
"id": 10,
"items": [
{
"clients": 0,
"id": 77,
"items": [
{
"clients": 0,
"id": 78,
"items": [],
"name": "Novice Server",
"order": 0,
"parent_id": 77,
"topic": "Porkys Gaming Novice Server"
},
{
"clients": 0,
"id": 79,
"items": [],
"name": "Master Server",
"order": 78,
"parent_id": 77,
"topic": "Porkys Gaming Master Server"
}
],
"name": "SKYRIM TOGETHER REBORN",
"order": 0,
"parent_id": 10,
"topic": "Porkys Skyrim Servers"
}
],
"name": "The Lounge",
"order": 67,
"parent_id": 0,
"topic": "Come and chat, have a giggle with fellow gamer"
}
]
},
"external_id": "zQSf3GHZSJ1OMPyP9YzaKvzbkuM=",
"platform": "Windows",
"created": 1570694692,
"uptime": 6190675,
"steam_id": null,
"domain": null,
"id": 11142906,
"ip": "82.7.234.6",
"port": 9987,
"query": 9987,
"color": 0,
"city": "Derby",
"description": "Welcome to Porky's Gaming.\nCredentials will be assigned to you in due course\nUsually 7pm gmt",
"game": 9000043,
"owner": null,
"boosts": 1,
"last_offline": 1775226731,
"score": 0,
"last_online": 1776523226,
"icon": null,
"name": "Porkys Gaming & Porky's Radio",
"connect": "82.7.234.6:9987",
"request": "82.7.234.6:9987",
"map": null,
"gamemode": null,
"version": "3.9.1 Build: 1562073443",
"numplayers": 1,
"maxplayers": 512,
"bots": 0,
"secured": null,
"private": false,
"country": "GB",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1770933678,
"last_update": 1776523226,
"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": 153,
"language": "en",
"parked": false,
"app": {
"id": 1629110,
"steam_id": 9000043,
"name": "Teamspeak 3",
"url": "teamspeak-3"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Exemple de cod
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ro/servers/11142906");
$data = json_decode($json, true);
var_dump($data);