API für Switchback Servers #1
JSON für Programme, Websites und mehr
text
json
{
"response": {
"steam_id": "90286419355637783",
"domain": null,
"id": 11638623,
"ip": "23.132.156.68",
"port": 8000,
"query": 8001,
"color": 0,
"city": "Newark",
"description": null,
"game": 887570,
"owner": null,
"boosts": 1,
"last_offline": 1780596803,
"last_online": 1780373507,
"icon": null,
"name": "Switchback Servers #1",
"connect": "23.132.156.68:8000",
"request": "23.132.156.68:8001",
"map": "Tumbleweed (8P)",
"gamemode": "1",
"version": "0.6.2.3",
"numplayers": 0,
"maxplayers": 14,
"bots": 0,
"secured": false,
"private": false,
"country": "US",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1779917328,
"last_update": 1780596803,
"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": 20,
"language": "en",
"parked": false,
"app": {
"id": 1559663,
"steam_id": 887570,
"name": "NEBULOUS: Fleet Command",
"url": "nebulous-fleet-command"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Codebeispiele
php
<?php
$json = file_get_contents("https://api.gamemonitoring.de/servers/11638623");
$data = json_decode($json, true);
var_dump($data);