API dla [EU] Training Grounds THE WAR - AimTrain I 1V1 I Combat Arenas
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 400,
"fps_avg": 399,
"entities_count": 2958,
"world_seed": 1337,
"world_size": 6000,
"steam_id": "90286579325205517",
"domain": null,
"id": 11731572,
"ip": "168.100.161.129",
"port": 28189,
"query": 28186,
"color": 0,
"city": "London",
"description": "![[EU] Training Grounds THE WAR - AimTrain I 1V1 I Combat Arenas ](https://github.com/3247321t4eiouy3ewrgwoue4erdt7ujttafsaag/picturesasahdljksahdkjlsahdkjsahdkasd/blob/main/The%20War%20image1.png?raw=true)\nWelcome to THE WAR server to train your aim and gameplay!\r\n- Combat Arenas \r\n- Scrims\r\n- FFA\r\n- GunGame\r\n- AimTrain\r\n- Creative\r\n- HeliBattles\r\n- Lobby Parkour\r\n- CounterStrike maps \r\n- Events\r\nhttps://thewar.tip4serv.com",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780411277,
"last_online": 1780555232,
"icon": null,
"name": "[EU] Training Grounds THE WAR - AimTrain I 1V1 I Combat Arenas",
"connect": "168.100.161.129:28189",
"request": "168.100.161.129:28186",
"map": "THE WAR MAP",
"gamemode": "Survival",
"version": "2625",
"numplayers": 3,
"maxplayers": 300,
"bots": 0,
"secured": true,
"private": false,
"country": "GB",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1780411277,
"last_update": 1780555232,
"banned": false,
"wipe": 1780542111,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 6012,
"language": "en",
"parked": false,
"app": {
"id": 12,
"steam_id": 252490,
"name": "Rust",
"url": "rust"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/11731572");
$data = json_decode($json, true);
var_dump($data);