Garry's Mod
API für Comunal Cumjar TTT
JSON für Programme, Websites und mehr
text
https://api.gamemonitoring.de/servers/6059721json
{
"response": {
"steam_id": "90273839037499422",
"domain": null,
"id": 6059721,
"ip": "103.6.170.229",
"port": 27015,
"query": 27015,
"color": 0,
"city": "Sydney",
"description": null,
"game": 4000,
"owner": null,
"boosts": 1,
"last_offline": 1768642511,
"score": 0,
"last_online": 1776629479,
"icon": null,
"name": "Comunal Cumjar TTT",
"connect": "103.6.170.229:27015",
"request": "103.6.170.229:27015",
"map": "ttt_airbus_b3",
"gamemode": "TTT2",
"version": "2024.10.29",
"numplayers": 0,
"maxplayers": 16,
"bots": 0,
"secured": true,
"private": false,
"country": "AU",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1727681599,
"last_update": 1776629479,
"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": 1250,
"language": "en",
"parked": false,
"app": {
"id": 30,
"steam_id": 4000,
"name": "Garry's Mod",
"url": "garrys-mod"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Codebeispiele
php
<?php
$json = file_get_contents("https://api.gamemonitoring.de/servers/6059721");
$data = json_decode($json, true);
var_dump($data);