API für PVKII
JSON für Programme, Websites und mehr
text
json
{
"response": {
"steam_id": "90286455513820185",
"domain": null,
"id": 11676235,
"ip": "75.166.38.188",
"port": 27015,
"query": 27015,
"color": 0,
"city": "Denver",
"description": null,
"game": 17570,
"owner": null,
"boosts": 1,
"last_offline": 1780306995,
"last_online": 1780257613,
"icon": null,
"name": "PVKII",
"connect": "75.166.38.188:27015",
"request": "75.166.38.188:27015",
"map": "big",
"gamemode": "PVKII: Classic*",
"version": "1.0.0.2",
"numplayers": 0,
"maxplayers": 24,
"bots": 0,
"secured": false,
"private": false,
"country": "US",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1780181799,
"last_update": 1780306995,
"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": 28,
"language": "en",
"parked": false,
"app": {
"id": 92,
"steam_id": 17570,
"name": "Pirates Vikings & Knights II",
"url": "pirates-vikings-knights-ii"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Codebeispiele
php
<?php
$json = file_get_contents("https://api.gamemonitoring.de/servers/11676235");
$data = json_decode($json, true);
var_dump($data);