API für Lila Pause
JSON für Programme, Websites und mehr
text
json
{
"response": {
"steam_id": "90285879049862154",
"domain": null,
"id": 11730851,
"ip": "77.12.12.54",
"port": 27015,
"query": 27016,
"color": 0,
"city": "Offenburg",
"description": null,
"game": 4920,
"owner": null,
"boosts": 1,
"last_offline": 1780571011,
"last_online": 1780446708,
"icon": null,
"name": "Lila Pause",
"connect": "77.12.12.54:27015",
"request": "77.12.12.54:27016",
"map": "ns2_kodiak",
"gamemode": "Natural Selection 2",
"version": "1.0.0.0",
"numplayers": 0,
"maxplayers": 16,
"bots": 0,
"secured": true,
"private": true,
"country": "DE",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1780390033,
"last_update": 1780571011,
"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": 60,
"language": "de",
"parked": false,
"app": {
"id": 91,
"steam_id": 4920,
"name": "Natural Selection 2",
"url": "natural-selection-2"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Codebeispiele
php
<?php
$json = file_get_contents("https://api.gamemonitoring.de/servers/11730851");
$data = json_decode($json, true);
var_dump($data);