Counter-Strike: Source
API для * SchlachtHof 5 :|: Italy Only :|: noAWP // noAim.eu
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/848978json
{
"response": {
"steam_id": "90284301787229209",
"domain": null,
"id": 848978,
"ip": "54.37.207.154",
"port": 27015,
"query": 27015,
"color": 0,
"city": "Limburg an der Lahn",
"description": "",
"game": 240,
"owner": null,
"boosts": 1,
"last_offline": 1768640801,
"score": null,
"last_online": 1776133847,
"icon": null,
"name": "* SchlachtHof 5 :|: Italy Only :|: noAWP // noAim.eu",
"connect": "54.37.207.154:27015",
"request": "54.37.207.154:27015",
"map": "cs_italy",
"gamemode": "Counter-Strike: Source",
"version": "9540945",
"numplayers": 0,
"maxplayers": 29,
"bots": 8,
"secured": true,
"private": false,
"country": "DE",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1684655873,
"last_update": 1776133847,
"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": 836,
"language": "de",
"parked": false,
"app": {
"id": 5,
"steam_id": 240,
"name": "Counter-Strike: Source",
"url": "counter-strike-source"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/848978");
$data = json_decode($json, true);
var_dump($data);