Counter-Strike: Source
API для ★ DP COMMUNITY | PUBLIC [100TICK] ★
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/9320405json
{
"response": {
"steam_id": null,
"domain": null,
"id": 9320405,
"ip": "46.174.49.71",
"port": 27015,
"query": 27015,
"color": 0,
"city": "Moscow",
"description": "[{\"id\":\"o9V_j_Wx-f\",\"type\":\"paragraph\",\"data\":{\"text\":\"Хороший онлайн \"}}]",
"game": 240,
"owner": 123473,
"boosts": 1,
"last_offline": 1773937321,
"score": 5,
"last_online": 1776118810,
"icon": null,
"name": "★ DP COMMUNITY | PUBLIC [100TICK] ★",
"connect": "46.174.49.71:27015",
"request": "46.174.49.71:27015",
"map": "de_dust2",
"gamemode": "Counter-Strike: Source",
"version": "1.0.0.34",
"numplayers": 0,
"maxplayers": 32,
"bots": 0,
"secured": true,
"private": false,
"country": "RU",
"status": true,
"votes": 0,
"points": 90,
"add_date": 1747732149,
"last_update": 1776118810,
"banned": false,
"wipe": null,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": null,
"pvp": 1,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 126,
"language": "ru",
"parked": false,
"app": {
"id": 5,
"steam_id": 240,
"name": "Counter-Strike: Source",
"url": "counter-strike-source"
},
"server_owner": {
"username": "maksswype",
"avatar": "no.jpg",
"last_online": 1774219136
},
"mods": [
{
"id": 1632,
"name": "SourceMod"
},
{
"id": 1633,
"name": "SourceBans"
},
{
"id": 2038,
"name": "Level Ranks"
},
{
"id": 2063,
"name": "vk chat"
},
{
"id": 2064,
"name": "NKey"
}
],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/9320405");
$data = json_decode($json, true);
var_dump($data);