Counter-Strike
API für [BG-MK] Brotherhood Server
JSON für Programme, Websites und mehr
text
https://api.gamemonitoring.de/servers/10605146json
{
"response": {
"steam_id": null,
"domain": null,
"id": 10605146,
"ip": "45.144.155.6",
"port": 27030,
"query": 27030,
"color": 0,
"city": "Plovdiv",
"description": null,
"game": 10,
"owner": null,
"boosts": 1,
"last_offline": 1776094312,
"score": 0,
"last_online": 1776197418,
"icon": null,
"name": "[BG-MK] Brotherhood Server",
"connect": "45.144.155.6:27030",
"request": "45.144.155.6:27030",
"map": "de_dust2_2x2",
"gamemode": "POKITO.BG / UPCONOMY.COM",
"version": "1.1.2.7/Stdio",
"numplayers": 10,
"maxplayers": 21,
"bots": 0,
"secured": true,
"private": false,
"country": "BG",
"status": true,
"votes": 0,
"points": 59,
"add_date": 1763321559,
"last_update": 1776197418,
"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": 2418,
"language": "bg",
"parked": false,
"app": {
"id": 3,
"steam_id": 10,
"name": "Counter-Strike",
"url": "counter-strike"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Codebeispiele
php
<?php
$json = file_get_contents("https://api.gamemonitoring.de/servers/10605146");
$data = json_decode($json, true);
var_dump($data);