API для Gods of Storm fun maps
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1794656563,
"app": {
"id": 24,
"name": "Team Fortress 2",
"steam_id": 440,
"url": "team-fortress-2"
},
"color": 0,
"connect": "91.134.218.181:56772",
"country": "BE",
"domain": null,
"game": 440,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 20109472,
"ip": "91.134.218.181",
"language": "nl",
"last_update": 1794692631,
"map": "ctf_foundry",
"maxplayers": 64,
"name": "Gods of Storm fun maps",
"numplayers": 0,
"official": null,
"points": 0,
"port": 56772,
"private": null,
"project_id": null,
"pve": null,
"pvp": null,
"query": 56772,
"request": "91.134.218.181:56772",
"secured": true,
"status": false,
"steam_id": "90297451412166680",
"version": "11191711",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Завентем",
"description": null,
"disabled_modules": [],
"gamemode": null,
"hidden": false,
"last_offline": 1794692631,
"last_online": 1794663252,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 14702,
"wipe_period": null,
"os": "l",
"region": 3,
"product": "tf",
"gametype": "bots,payload,fastdl,increased_maxplayers,premium,registered,secure",
"dedicated": true
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/20109472");
$data = json_decode($json, true);
var_dump($data);