Counter-Strike
API für [Only DD2] CounterWorld.pl [Asysty|Rozgrzewka+WinVIP|Nocny VIP]
JSON für Programme, Websites und mehr
text
https://api.gamemonitoring.de/servers/11395427json
{
"response": {
"steam_id": null,
"domain": null,
"id": 11395427,
"ip": "193.33.177.106",
"port": 27015,
"query": 27015,
"color": 0,
"city": "Gdansk",
"description": null,
"game": 10,
"owner": null,
"boosts": 1,
"last_offline": 1774644146,
"score": 0,
"last_online": 1776801631,
"icon": null,
"name": "[Only DD2] CounterWorld.pl [Asysty|Rozgrzewka+WinVIP|Nocny VIP]",
"connect": "193.33.177.106:27015",
"request": "193.33.177.106:27015",
"map": "de_dust2",
"gamemode": ">>[DD2]CW<<",
"version": "1.1.2.7/Stdio",
"numplayers": 11,
"maxplayers": 32,
"bots": 0,
"secured": true,
"private": false,
"country": "PL",
"status": true,
"votes": 0,
"points": 54,
"add_date": 1774598127,
"last_update": 1776801631,
"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": 2628,
"language": "pl",
"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/11395427");
$data = json_decode($json, true);
var_dump($data);