API dla Ramon and Friends [GER] [PVE]
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": "90286573573856280",
"domain": null,
"id": 4918504,
"ip": "141.95.35.163",
"port": 3058,
"query": 3059,
"color": 0,
"city": "Limburg an der Lahn",
"description": "DayZ-Expansion-Bundle���!~DayZ-Expansion-LicensedaM� ���Dabs Framework�_�(T��l\rVPPAdminToolsϹ���\\Community FrameworkCypeRevengedabdayzDayZDev\ndeerisle53ExpansionJacob_Mango_V3SNAFU_Weapons_V1VPP",
"game": 221100,
"owner": null,
"boosts": 1,
"last_offline": 1773551528,
"last_online": 1780568432,
"icon": null,
"name": "Ramon and Friends [GER] [PVE]",
"connect": "141.95.35.163:3058",
"request": "141.95.35.163:3059",
"map": "chernarusplus",
"gamemode": null,
"version": "1.25.158396",
"numplayers": 0,
"maxplayers": 10,
"bots": 0,
"secured": true,
"private": true,
"country": "DE",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1719583848,
"last_update": 1780568432,
"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": 3982,
"language": "de",
"parked": false,
"app": {
"id": 63,
"steam_id": 221100,
"name": "DayZ",
"url": "dayz"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/4918504");
$data = json_decode($json, true);
var_dump($data);