API для Official TFC Community Server - https://discord.gg/Z4hP4zKKd
JSON для программ, сайтов и прочего
text
json
{
"response": {
"steam_id": "90286825782079509",
"domain": null,
"id": 11638085,
"ip": "45.77.102.43",
"port": 27015,
"query": 27015,
"project_id": null,
"color": 0,
"city": "Piscataway",
"description": null,
"game": 20,
"owner": null,
"boosts": 1,
"last_offline": 1780556006,
"last_online": 1781109118,
"icon": null,
"name": "Official TFC Community Server - https://discord.gg/Z4hP4zKKd",
"connect": "45.77.102.43:27015",
"request": "45.77.102.43:27015",
"map": "well",
"gamemode": "Team Fortress Classic",
"version": "1.1.2.2/Stdio",
"numplayers": 0,
"maxplayers": 32,
"bots": 24,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1779917179,
"last_update": 1781109118,
"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": 109,
"language": "en",
"parked": false,
"app": {
"id": 35,
"steam_id": 20,
"name": "Team Fortress Classic",
"url": "team-fortress-classic"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/11638085");
$data = json_decode($json, true);
var_dump($data);