Half-Life 2: Deathmatch
API für FAKU.LOL HL2DM
JSON für Programme, Websites und mehr
text
https://api.gamemonitoring.de/servers/11135286json
{
"response": {
"steam_id": "90282211914218509",
"domain": null,
"id": 11135286,
"ip": "96.255.150.220",
"port": 27015,
"query": 27015,
"color": 0,
"city": "Annandale",
"description": null,
"game": 320,
"owner": null,
"boosts": 1,
"last_offline": 1774998132,
"score": 0,
"last_online": 1776265279,
"icon": null,
"name": "FAKU.LOL HL2DM",
"connect": "96.255.150.220:27015",
"request": "96.255.150.220:27015",
"map": "dm_runoff",
"gamemode": "Half-Life 2 Deathmatch",
"version": "9540945",
"numplayers": 0,
"maxplayers": 24,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1770398134,
"last_update": 1776265279,
"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": 177,
"language": "en",
"parked": false,
"app": {
"id": 1,
"steam_id": 320,
"name": "Half-Life 2: Deathmatch",
"url": "half-life-2-deathmatch"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Codebeispiele
php
<?php
$json = file_get_contents("https://api.gamemonitoring.de/servers/11135286");
$data = json_decode($json, true);
var_dump($data);