Counter-Strike 2
API für XPLAY.GG • CS2 5x5 #7 • [DE]
JSON für Programme, Websites und mehr
text
https://api.gamemonitoring.de/servers/3640400json
{
"response": {
"steam_id": "85568392924046299",
"domain": null,
"id": 3640400,
"ip": "23.88.25.137",
"port": 27037,
"query": 27037,
"color": 0,
"city": "Falkenstein",
"description": "",
"game": 730,
"owner": null,
"boosts": 1,
"last_offline": 1776727398,
"score": null,
"last_online": 1776816030,
"icon": null,
"name": "XPLAY.GG • CS2 5x5 #7 • [DE]",
"connect": "23.88.25.137:27037",
"request": "23.88.25.137:27037",
"map": "de_dust2",
"gamemode": "Counter-Strike 2",
"version": "1.41.5.3",
"numplayers": 9,
"maxplayers": 64,
"bots": 0,
"secured": true,
"private": false,
"country": "DE",
"status": true,
"votes": 0,
"points": 46,
"add_date": 1711720853,
"last_update": 1776816030,
"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": 582,
"language": "de",
"parked": false,
"app": {
"id": 2,
"steam_id": 730,
"name": "Counter-Strike 2",
"url": "counter-strike-2"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Codebeispiele
php
<?php
$json = file_get_contents("https://api.gamemonitoring.de/servers/3640400");
$data = json_decode($json, true);
var_dump($data);