Half-Life 2: Deathmatch
API für http://www.Saigns.de (3) RUNOFF
JSON für Programme, Websites und mehr
text
https://api.gamemonitoring.de/servers/464350json
{
"response": {
"steam_id": "85568392924140390",
"domain": null,
"id": 464350,
"ip": "89.163.148.193",
"port": 27042,
"query": 27042,
"color": 0,
"city": "Frankfurt am Main",
"description": "",
"game": 320,
"owner": null,
"boosts": 1,
"last_offline": 1768642543,
"score": null,
"last_online": 1776421231,
"icon": null,
"name": "http://www.Saigns.de (3) RUNOFF",
"connect": "89.163.148.193:27042",
"request": "89.163.148.193:27042",
"map": "dm_runoff",
"gamemode": "Half-Life 2 Deathmatch",
"version": "9540945",
"numplayers": 3,
"maxplayers": 32,
"bots": 15,
"secured": true,
"private": false,
"country": "DE",
"status": true,
"votes": 0,
"points": 46,
"add_date": 1630825258,
"last_update": 1776421231,
"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": "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/464350");
$data = json_decode($json, true);
var_dump($data);