Half-Life 2: Deathmatch
API für
JSON für Programme, Websites und mehr
text
https://api.gamemonitoring.de/servers/7482449json
{
"response": {
"steam_id": null,
"domain": null,
"id": 7482449,
"ip": "85.215.137.196",
"port": 12060,
"query": 12060,
"color": 0,
"city": "Karlsruhe",
"description": null,
"game": 320,
"owner": null,
"boosts": 1,
"last_offline": 1776427368,
"score": 0,
"last_online": 1776255065,
"icon": null,
"name": null,
"connect": null,
"request": "85.215.137.196:12060",
"map": null,
"gamemode": null,
"version": null,
"numplayers": 0,
"maxplayers": 16,
"bots": 0,
"secured": null,
"private": false,
"country": "DE",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1739269459,
"last_update": 1776427368,
"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": 232,
"language": "de",
"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/7482449");
$data = json_decode($json, true);
var_dump($data);