Counter-Strike: Source
API для ✰L a t i n o a m é r i c a | O l d S t a r ✰ A R T E M I S
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/11043035json
{
"response": {
"steam_id": "90284285602044937",
"domain": null,
"id": 11043035,
"ip": "146.235.246.115",
"port": 27015,
"query": 27015,
"color": 0,
"city": "Santiago",
"description": null,
"game": 240,
"owner": null,
"boosts": 1,
"last_offline": 1773961921,
"score": 0,
"last_online": 1776115232,
"icon": null,
"name": "✰L a t i n o a m é r i c a | O l d S t a r ✰ A R T E M I S",
"connect": "146.235.246.115:27015",
"request": "146.235.246.115:27015",
"map": "aim_map",
"gamemode": "Counter-Strike: Source",
"version": "9540945",
"numplayers": 0,
"maxplayers": 14,
"bots": 0,
"secured": true,
"private": false,
"country": "CL",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1769953253,
"last_update": 1776115232,
"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": 1525,
"language": "es",
"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/11043035");
$data = json_decode($json, true);
var_dump($data);