API для TΛC / TAC Match Server | by SquadTR
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1785807319,
"app": {
"id": 137,
"name": "Squad",
"steam_id": 393380,
"url": "squad"
},
"color": 0,
"connect": "5.135.143.202:7789",
"country": "FR",
"domain": null,
"game": 393380,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 13301924,
"ip": "5.135.143.202",
"language": "fr",
"last_update": 1791069411,
"map": "AlBasrah_Skirmish_v3",
"maxplayers": 98,
"name": "TΛC / TAC Match Server | by SquadTR",
"numplayers": 0,
"official": null,
"points": 30,
"port": 7789,
"private": true,
"project_id": null,
"pve": null,
"pvp": null,
"query": 7789,
"request": "5.135.143.202:7789",
"secured": null,
"status": true,
"steam_id": null,
"version": "v10.6.0.683818.3091",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Рубе",
"description": null,
"disabled_modules": [],
"gamemode": "Skirmish",
"hidden": false,
"last_offline": 1790058198,
"last_online": 1791069411,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 341,
"wipe_period": null,
"eosSessionId": "2e8bdd290c0a4426b50a5b1260edf6bf"
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/13301924");
$data = json_decode($json, true);
var_dump($data);