Half-Life 2: Deathmatch
API für
JSON für Programme, Websites und mehr
text
https://api.gamemonitoring.de/servers/3687309json
{
"response": {
"steam_id": null,
"domain": null,
"id": 3687309,
"ip": "86.21.197.199",
"port": 27015,
"query": 27015,
"color": 0,
"city": "Peterborough",
"description": "",
"game": 320,
"owner": null,
"boosts": 1,
"last_offline": 1776804157,
"score": null,
"last_online": 1775994028,
"icon": null,
"name": null,
"connect": null,
"request": "86.21.197.199:27015",
"map": null,
"gamemode": null,
"version": null,
"numplayers": 0,
"maxplayers": 30,
"bots": 0,
"secured": null,
"private": false,
"country": "GB",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1711966427,
"last_update": 1776804157,
"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": 216,
"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/3687309");
$data = json_decode($json, true);
var_dump($data);