Left 4 Dead 2
API für Valve Left4Dead 2 Hong Kong Server (srcds1029-hkg1.141.112)
JSON für Programme, Websites und mehr
text
https://api.gamemonitoring.de/servers/891696json
{
"response": {
"steam_id": "90284524140790790",
"domain": null,
"id": 891696,
"ip": "103.28.54.213",
"port": 27126,
"query": 27126,
"color": 0,
"city": "Ha Kwai Chung",
"description": "",
"game": 550,
"owner": null,
"boosts": 1,
"last_offline": 1776368022,
"score": null,
"last_online": 1776360156,
"icon": null,
"name": "Valve Left4Dead 2 Hong Kong Server (srcds1029-hkg1.141.112)",
"connect": "103.28.54.213:27126",
"request": "103.28.54.213:27126",
"map": "c12m1_hilltop",
"gamemode": "Left 4 Dead 2",
"version": "2.2.4.3",
"numplayers": 0,
"maxplayers": 4,
"bots": 0,
"secured": true,
"private": false,
"country": "HK",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1684711055,
"last_update": 1776368022,
"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": 12994,
"language": "zh",
"parked": false,
"app": {
"id": 11,
"steam_id": 550,
"name": "Left 4 Dead 2",
"url": "left-4-dead-2"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Codebeispiele
php
<?php
$json = file_get_contents("https://api.gamemonitoring.de/servers/891696");
$data = json_decode($json, true);
var_dump($data);