API для DoG Death or Glory =Public Server=
JSON для программ, сайтов и прочего
text
json
{
"response": {
"dedicated": true,
"gametype": "cp,dedicated",
"os": "l",
"product": "tf",
"region": 3,
"steam_id": "90289125926153240",
"domain": null,
"id": 12352240,
"ip": "94.23.173.248",
"port": 26714,
"query": 26714,
"project_id": null,
"color": 0,
"city": "Prague",
"description": null,
"game": 440,
"owner": null,
"boosts": 1,
"last_offline": 1784808779,
"last_online": 1784295628,
"icon": null,
"name": "DoG Death or Glory =Public Server=",
"connect": "94.23.173.248:26714",
"request": "94.23.173.248:26714",
"map": "pl_goldrush",
"gamemode": null,
"version": "10828683",
"numplayers": 0,
"maxplayers": 64,
"bots": 0,
"secured": true,
"private": null,
"country": "CZ",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1784289056,
"last_update": 1784808779,
"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": 9058,
"language": "cs",
"parked": false,
"app": {
"id": 24,
"steam_id": 440,
"name": "Team Fortress 2",
"url": "team-fortress-2"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/12352240");
$data = json_decode($json, true);
var_dump($data);