API für Half-Life 2 Deathmatch
JSON für Programme, Websites und mehr
text
json
{
"response": {
"steam_id": "90286827291782144",
"domain": null,
"id": 11798893,
"ip": "52.87.182.25",
"port": 27015,
"query": 27015,
"project_id": null,
"color": 0,
"city": "Ashburn",
"description": null,
"game": 218,
"owner": null,
"boosts": 1,
"last_offline": 1781379231,
"last_online": 1781398351,
"icon": null,
"name": "Half-Life 2 Deathmatch",
"connect": "52.87.182.25:27015",
"request": "52.87.182.25:27015",
"map": "sf_abandon",
"gamemode": "Half-Life 2 Deathmatch",
"version": "valve",
"numplayers": 0,
"maxplayers": 2,
"bots": 0,
"secured": false,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1781379231,
"last_update": 1781398351,
"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": 42,
"steam_id": 218,
"name": "Source SDK Base 2007",
"url": "source-sdk-base-2007"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Codebeispiele
php
<?php
$json = file_get_contents("https://api.gamemonitoring.de/servers/11798893");
$data = json_decode($json, true);
var_dump($data);