Half-Life 2: Deathmatch
API für [EU]Sniper_Plac_[[AxelF||dm||fun|no offence]]
JSON für Programme, Websites und mehr
text
https://api.gamemonitoring.de/servers/8305305json
{
"response": {
"steam_id": "90284543578859548",
"domain": null,
"id": 8305305,
"ip": "185.180.2.104",
"port": 27579,
"query": 27579,
"color": 0,
"city": "Prague",
"description": null,
"game": 320,
"owner": null,
"boosts": 1,
"last_offline": 1774998732,
"score": 0,
"last_online": 1776454823,
"icon": null,
"name": "[EU]Sniper_Plac_[[AxelF||dm||fun|no offence]]",
"connect": "185.180.2.104:27579",
"request": "185.180.2.104:27579",
"map": "dm_2play_sp94",
"gamemode": "Half-Life 2 Deathmatch",
"version": "9540945",
"numplayers": 4,
"maxplayers": 10,
"bots": 3,
"secured": true,
"private": false,
"country": "CZ",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1743322666,
"last_update": 1776454823,
"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": 14,
"language": "cs",
"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/8305305");
$data = json_decode($json, true);
var_dump($data);