Counter-Strike: Source
API для MЯCOPУБKA $2000$ 👊Ленинград сервер ||
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/11489579json
{
"response": {
"steam_id": "85568392936210183",
"domain": null,
"id": 11489579,
"ip": "85.214.197.2",
"port": 27055,
"query": 27055,
"color": 0,
"city": "Berlin",
"description": null,
"game": 240,
"owner": 184175,
"boosts": 1,
"last_offline": 1776616593,
"score": 0,
"last_online": 1776773425,
"icon": null,
"name": "MЯCOPУБKA $2000$ 👊Ленинград сервер ||",
"connect": "85.214.197.2:27055",
"request": "85.214.197.2:27055",
"map": "$2000$",
"gamemode": "Counter-Strike: Source",
"version": "9540945",
"numplayers": 0,
"maxplayers": 31,
"bots": 0,
"secured": true,
"private": false,
"country": "DE",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1776616506,
"last_update": 1776773425,
"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": 346,
"language": "de",
"parked": false,
"app": {
"id": 5,
"steam_id": 240,
"name": "Counter-Strike: Source",
"url": "counter-strike-source"
},
"server_owner": {
"username": "hubcs",
"avatar": "9e6c0cf1-335b-4f44-9446-38060b24718e.png",
"last_online": 1776764473
},
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/11489579");
$data = json_decode($json, true);
var_dump($data);