Half-Life 2: Deathmatch
API für Family Fun Deathmatch
JSON für Programme, Websites und mehr
text
https://api.gamemonitoring.de/servers/906986json
{
"response": {
"steam_id": "90271915356416001",
"domain": null,
"id": 906986,
"ip": "143.42.7.112",
"port": 27015,
"query": 27015,
"color": 0,
"city": "Cedar Knolls",
"description": "",
"game": 320,
"owner": null,
"boosts": 1,
"last_offline": 1774327914,
"score": null,
"last_online": 1776424330,
"icon": null,
"name": "Family Fun Deathmatch",
"connect": "143.42.7.112:27015",
"request": "143.42.7.112:27015",
"map": "dm_runoff",
"gamemode": "Half-Life 2 Deathmatch",
"version": "6630498",
"numplayers": 0,
"maxplayers": 8,
"bots": 0,
"secured": true,
"private": true,
"country": "US",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1684749547,
"last_update": 1776424330,
"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": 54,
"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/906986");
$data = json_decode($json, true);
var_dump($data);