Counter-Strike 2
API для CKRAS - www.ckras.com
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/7502819json
{
"response": {
"steam_id": "85568392927218912",
"domain": null,
"id": 7502819,
"ip": "83.141.28.54",
"port": 27120,
"query": 27120,
"color": 0,
"city": "Willebadessen",
"description": null,
"game": 730,
"owner": null,
"boosts": 1,
"last_offline": 1770870704,
"score": 0,
"last_online": 1776400327,
"icon": null,
"name": "CKRAS - www.ckras.com",
"connect": "83.141.28.54:27120",
"request": "83.141.28.54:27120",
"map": "de_anubis",
"gamemode": "Counter-Strike 2",
"version": "1.41.4.1",
"numplayers": 0,
"maxplayers": 16,
"bots": 0,
"secured": true,
"private": false,
"country": "DE",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1739284970,
"last_update": 1776400327,
"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": 6708,
"language": "de",
"parked": false,
"app": {
"id": 2,
"steam_id": 730,
"name": "Counter-Strike 2",
"url": "counter-strike-2"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/7502819");
$data = json_decode($json, true);
var_dump($data);