API для Freak n' Slender
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1790256654,
"app": {
"id": 24,
"name": "Team Fortress 2",
"steam_id": 440,
"url": "team-fortress-2"
},
"color": 0,
"connect": "213.32.108.79:37204",
"country": "NL",
"domain": null,
"game": 440,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 17063881,
"ip": "213.32.108.79",
"language": "nl",
"last_update": 1790262739,
"map": "ctf_hellfire",
"maxplayers": 64,
"name": "Freak n' Slender",
"numplayers": 0,
"official": null,
"points": 0,
"port": 37204,
"private": false,
"project_id": null,
"pve": null,
"pvp": null,
"query": 37204,
"request": "213.32.108.79:37204",
"secured": true,
"status": false,
"steam_id": "90293344039687188",
"version": "10828683",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Роттердам",
"description": null,
"disabled_modules": [],
"gamemode": "Team Fortress",
"hidden": false,
"last_offline": 1790262739,
"last_online": 1790258533,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 16291,
"wipe_period": null,
"coop": "0",
"sv_tags": "bots,friendlyfire,increased_maxplayers,linux,registered,replays,secure",
"nextlevel": "",
"sv_cheats": "0",
"tv_enable": "0",
"deathmatch": "1",
"listentype": "d",
"sv_alltalk": "0",
"sv_contact": "",
"environment": "l",
"mp_winlimit": "0",
"sv_password": "0",
"sv_pausable": "0",
"tv_password": "1",
"a2s_protocol": 17,
"mp_fraglimit": "0",
"mp_timelimit": "0",
"sv_specnoclip": "0",
"mp_fadetoblack": "0",
"sv_voiceenable": "1",
"mp_friendlyfire": "0",
"players_complete": true,
"tv_relaypassword": "1"
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/17063881");
$data = json_decode($json, true);
var_dump($data);