Counter-Strike
API для [CS-ULET.RU] ~Пушки 21-ого Века [CSDM+Скидки]~
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/424504json
{
"response": {
"steam_id": null,
"domain": null,
"id": 424504,
"ip": "194.67.110.171",
"port": 27028,
"query": 27028,
"color": 0,
"city": "Moscow",
"description": "",
"game": 10,
"owner": null,
"boosts": 1,
"last_offline": 1775493130,
"score": null,
"last_online": 1776209421,
"icon": null,
"name": "[CS-ULET.RU] ~Пушки 21-ого Века [CSDM+Скидки]~",
"connect": "194.67.110.171:27028",
"request": "194.67.110.171:27028",
"map": "de_alexandra",
"gamemode": "[CS-ULET.RU]",
"version": "1.1.2.7/Stdio",
"numplayers": 2,
"maxplayers": 32,
"bots": 12,
"secured": true,
"private": false,
"country": "RU",
"status": true,
"votes": 0,
"points": 34,
"add_date": 1603823614,
"last_update": 1776209421,
"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": 3081,
"language": "ru",
"parked": false,
"app": {
"id": 3,
"steam_id": 10,
"name": "Counter-Strike",
"url": "counter-strike"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/424504");
$data = json_decode($json, true);
var_dump($data);