API dla GER VEIN DACH CITY PVE mit PVP-Zone discord.gg/ybf9qg
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": "90286724718277637",
"domain": null,
"id": 11715577,
"ip": "162.120.3.93",
"port": 9100,
"query": 9101,
"project_id": null,
"color": 0,
"city": "Eschborn",
"description": null,
"game": 1857950,
"owner": null,
"boosts": 1,
"last_offline": 1780821260,
"last_online": 1780864889,
"icon": null,
"name": "GER VEIN DACH CITY PVE mit PVP-Zone discord.gg/ybf9qg",
"connect": "162.120.3.93:9100",
"request": "162.120.3.93:9101",
"map": "Champlain Valley",
"gamemode": "VEIN",
"version": "0.024h1",
"numplayers": 0,
"maxplayers": 20,
"bots": 0,
"secured": false,
"private": true,
"country": "DE",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1780301686,
"last_update": 1780864889,
"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": 999,
"language": "de",
"parked": false,
"app": {
"id": 1530675,
"steam_id": 1857950,
"name": "VEIN",
"url": "vein"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/11715577");
$data = json_decode($json, true);
var_dump($data);