API для TF2 Local Match 2
JSON для программ, сайтов и прочего
text
json
{
"response": {
"dedicated": true,
"gametype": "bots,payload",
"os": "w",
"product": "mod_tf",
"region": 255,
"steam_id": "90289312645238804",
"domain": null,
"id": 12397209,
"ip": "185.138.90.38",
"port": 28040,
"query": 28040,
"project_id": null,
"color": 0,
"city": "Warsaw",
"description": null,
"game": 243750,
"owner": null,
"boosts": 1,
"last_offline": 1784808289,
"last_online": 1784564008,
"icon": null,
"name": "TF2 Local Match 2",
"connect": "185.138.90.38:28040",
"request": "185.138.90.38:28040",
"map": "pl_thundermountain",
"gamemode": null,
"version": "2000",
"numplayers": 0,
"maxplayers": 24,
"bots": 0,
"secured": false,
"private": null,
"country": "PL",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1784563401,
"last_update": 1784808289,
"ban_reason": null,
"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": 999,
"language": "pl",
"parked": false,
"app": {
"id": 159,
"steam_id": 243750,
"name": "Source SDK Base 2013 Multiplayer",
"url": "source-sdk-base-2013-multiplayer"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/12397209");
$data = json_decode($json, true);
var_dump($data);