Counter-Strike 2
API для Serwer testowy @ 1shot1kill.pl
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/11027817json
{
"response": {
"steam_id": "90285482156405769",
"domain": null,
"id": 11027817,
"ip": "91.224.117.43",
"port": 27120,
"query": 27120,
"color": 0,
"city": "Gdynia",
"description": null,
"game": 730,
"owner": null,
"boosts": 1,
"last_offline": 1778785335,
"score": 0,
"last_online": 1778295107,
"icon": null,
"name": "Serwer testowy @ 1shot1kill.pl",
"connect": "91.224.117.43:27120",
"request": "91.224.117.43:27120",
"map": "jb_arcade_b6",
"gamemode": "Counter-Strike 2",
"version": "1.41.6.0",
"numplayers": 0,
"maxplayers": 6,
"bots": 0,
"secured": false,
"private": false,
"country": "PL",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1769950388,
"last_update": 1778785335,
"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": 11987,
"language": "pl",
"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/11027817");
$data = json_decode($json, true);
var_dump($data);