Counter-Strike 2
API для TroubleChute's Test Server
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/9967241json
{
"response": {
"steam_id": null,
"domain": null,
"id": 9967241,
"ip": null,
"port": null,
"query": null,
"color": 0,
"city": null,
"description": null,
"game": 730,
"owner": 130179,
"boosts": 1,
"last_offline": 1758284167,
"score": 0,
"last_online": 1754831440,
"icon": null,
"name": "TroubleChute's Test Server",
"connect": null,
"request": null,
"map": "de_dust2",
"gamemode": "Counter-Strike 2",
"version": null,
"numplayers": 0,
"maxplayers": 32,
"bots": 0,
"secured": false,
"private": false,
"country": "NL",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1754588770,
"last_update": 1758284167,
"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": 12434,
"language": "nl",
"parked": true,
"app": {
"id": 2,
"steam_id": 730,
"name": "Counter-Strike 2",
"url": "counter-strike-2"
},
"server_owner": {
"username": "Alper_Elieyi",
"avatar": "41edda9a-24d1-4822-98bf-a57a4dd4f768.jpg",
"last_online": 1754825073
},
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/9967241");
$data = json_decode($json, true);
var_dump($data);