Counter-Strike
API für DiabloMod GoldenShots
JSON für Programme, Websites und mehr
text
https://api.gamemonitoring.de/servers/11018864json
{
"response": {
"steam_id": null,
"domain": null,
"id": 11018864,
"ip": null,
"port": null,
"query": null,
"color": 0,
"city": "Gdynia",
"description": null,
"game": 10,
"owner": 165840,
"boosts": 1,
"last_offline": 1772344860,
"score": 0,
"last_online": 1771473613,
"icon": null,
"name": "DiabloMod GoldenShots",
"connect": null,
"request": null,
"map": "de_cbble",
"gamemode": "Diablo Mod Core",
"version": null,
"numplayers": 0,
"maxplayers": 32,
"bots": 0,
"secured": false,
"private": false,
"country": "PL",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1769945431,
"last_update": 1772344860,
"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": 7218,
"language": "pl",
"parked": true,
"app": {
"id": 3,
"steam_id": 10,
"name": "Counter-Strike",
"url": "counter-strike"
},
"server_owner": {
"username": "goldenshotspl",
"avatar": "78219c7d-23a3-4380-ab2f-0e6d62d3ed41.png",
"last_online": 1774957026
},
"mods": [],
"disabled_modules": []
}
}Codebeispiele
php
<?php
$json = file_get_contents("https://api.gamemonitoring.de/servers/11018864");
$data = json_decode($json, true);
var_dump($data);