Counter-Strike
API для Katujemy.eu [DIABLO 201 LVL | RESET 6 LUTY - 19:00]
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/10760117json
{
"response": {
"steam_id": null,
"domain": null,
"id": 10760117,
"ip": "51.77.61.230",
"port": 27015,
"query": 27015,
"color": 0,
"city": "Warsaw",
"description": null,
"game": 10,
"owner": null,
"boosts": 1,
"last_offline": 1770400303,
"score": 0,
"last_online": 1776195014,
"icon": null,
"name": "Katujemy.eu [DIABLO 201 LVL | RESET 6 LUTY - 19:00]",
"connect": "51.77.61.230:27015",
"request": "51.77.61.230:27015",
"map": "cs_wiocha",
"gamemode": "× DIABLO ×",
"version": "1.1.2.7/Stdio",
"numplayers": 19,
"maxplayers": 32,
"bots": 0,
"secured": true,
"private": false,
"country": "PL",
"status": true,
"votes": 0,
"points": 65,
"add_date": 1766259240,
"last_update": 1776195014,
"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": 2340,
"language": "pl",
"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/10760117");
$data = json_decode($json, true);
var_dump($data);