Half-Life
API für [WL] Spirit-of-Christmas! (2-team, hook, conventional weapons)
JSON für Programme, Websites und mehr
text
https://api.gamemonitoring.de/servers/458743json
{
"response": {
"steam_id": "90284600726962193",
"domain": null,
"id": 458743,
"ip": "162.248.88.40",
"port": 6111,
"query": 6111,
"color": 0,
"city": "Chicago",
"description": "Full details for this server are available at the following Steam Community page:\n[https://steamcommunity.com/groups/WeaselsLair/discussions/18/6554498922766555792/](https://steamcommunity.com/groups/WeaselsLair/discussions/18/6554498922766555792/)",
"game": 70,
"owner": 112120,
"boosts": 1,
"last_offline": 1776307309,
"score": 5,
"last_online": 1776591013,
"icon": null,
"name": "[WL] Spirit-of-Christmas! (2-team, hook, conventional weapons)",
"connect": "162.248.88.40:6111",
"request": "162.248.88.40:6111",
"map": "stalkyard",
"gamemode": "HL Teamplay",
"version": "1.1.2.2/Stdio",
"numplayers": 0,
"maxplayers": 32,
"bots": 8,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 90,
"add_date": 1630790146,
"last_update": 1776591013,
"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": 8,
"language": "en",
"parked": false,
"app": {
"id": 9,
"steam_id": 70,
"name": "Half-Life",
"url": "half-life"
},
"server_owner": {
"username": "WeaselSteamID155",
"avatar": "08edbc1f-a2ef-41dc-93e0-a9e15a1f4f7e.jpg",
"last_online": 1742851980
},
"mods": [
{
"id": 1635,
"name": "AMX-Mod-X"
}
],
"disabled_modules": []
}
}Codebeispiele
php
<?php
$json = file_get_contents("https://api.gamemonitoring.de/servers/458743");
$data = json_decode($json, true);
var_dump($data);