API для Refrag.gg Training Server (Player)
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1789659313,
"app": {
"id": 2,
"name": "Counter-Strike 2",
"steam_id": 730,
"url": "counter-strike-2"
},
"color": 0,
"connect": "143.244.63.79:26216",
"country": "AU",
"domain": null,
"game": 730,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 16660620,
"ip": "143.244.63.79",
"language": "en",
"last_update": 1789820703,
"map": "de_ancient",
"maxplayers": 10,
"name": "Refrag.gg Training Server (Player)",
"numplayers": 0,
"official": null,
"points": 0,
"port": 26216,
"private": null,
"project_id": null,
"pve": null,
"pvp": null,
"query": 26216,
"request": "143.244.63.79:26216",
"secured": false,
"status": false,
"steam_id": "90292931320536095",
"version": "1.41.8.1",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Сидней",
"description": null,
"disabled_modules": [],
"gamemode": null,
"hidden": false,
"last_offline": 1789820703,
"last_online": 1789659073,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 38842,
"wipe_period": null,
"os": "l",
"region": -1,
"product": "cs2",
"gametype": "insecure",
"dedicated": true
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/16660620");
$data = json_decode($json, true);
var_dump($data);