The Front
API для TheFront
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/848773json
{
"response": {
"steam_id": "90284350286577677",
"domain": null,
"id": 848773,
"ip": "209.145.52.198",
"port": 36300,
"query": 36315,
"color": 0,
"city": "St Louis",
"description": "-ServerFightModeType=1",
"game": 2285150,
"owner": null,
"boosts": 1,
"last_offline": 1775638989,
"score": null,
"last_online": 1776210017,
"icon": null,
"name": "TheFront",
"connect": "209.145.52.198:36300",
"request": "209.145.52.198:36315",
"map": "CooolMap",
"gamemode": "PVP",
"version": "1.0.0.0",
"numplayers": 0,
"maxplayers": 200,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1684641292,
"last_update": 1776210017,
"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": 1,
"language": "en",
"parked": false,
"app": {
"id": 1617669,
"steam_id": 2285150,
"name": "The Front",
"url": "the-front"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/848773");
$data = json_decode($json, true);
var_dump($data);