Half-Life
API für [EmP] Pea Soup 2 | RockTheVote + bhop
JSON für Programme, Websites und mehr
text
https://api.gamemonitoring.de/servers/10431346json
{
"response": {
"steam_id": "90284579680177181",
"domain": null,
"id": 10431346,
"ip": "71.82.214.252",
"port": 27020,
"query": 27020,
"color": 0,
"city": "Roscoe",
"description": null,
"game": 70,
"owner": null,
"boosts": 1,
"last_offline": 1776456749,
"score": 0,
"last_online": 1776799848,
"icon": null,
"name": "[EmP] Pea Soup 2 | RockTheVote + bhop",
"connect": "71.82.214.252:27020",
"request": "71.82.214.252:27020",
"map": "sandspyre",
"gamemode": "hltv",
"version": "1.1.2.6",
"numplayers": 0,
"maxplayers": 5,
"bots": 0,
"secured": false,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1759829137,
"last_update": 1776799848,
"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": 236,
"language": "en",
"parked": false,
"app": {
"id": 9,
"steam_id": 70,
"name": "Half-Life",
"url": "half-life"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Codebeispiele
php
<?php
$json = file_get_contents("https://api.gamemonitoring.de/servers/10431346");
$data = json_decode($json, true);
var_dump($data);