Counter-Strike
API für
JSON für Programme, Websites und mehr
text
https://api.gamemonitoring.de/servers/11198091json
{
"response": {
"steam_id": null,
"domain": null,
"id": 11198091,
"ip": "93.184.69.132",
"port": 27059,
"query": 27059,
"color": 0,
"city": "Močenok",
"description": null,
"game": 10,
"owner": null,
"boosts": 1,
"last_offline": 1776809552,
"score": 0,
"last_online": 1776114635,
"icon": null,
"name": null,
"connect": null,
"request": "93.184.69.132:27059",
"map": null,
"gamemode": null,
"version": null,
"numplayers": 0,
"maxplayers": 27,
"bots": 0,
"secured": null,
"private": false,
"country": "SK",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1772699780,
"last_update": 1776809552,
"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": 7232,
"language": "sk",
"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/11198091");
$data = json_decode($json, true);
var_dump($data);