Counter-Strike
API для #08 [Alta-Fruta] Deathmatch + FFA [www.altafruta.net]
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/223128json
{
"response": {
"steam_id": null,
"domain": null,
"id": 223128,
"ip": "45.235.98.120",
"port": 27022,
"query": 27022,
"color": 0,
"city": "Córdoba",
"description": "",
"game": 10,
"owner": null,
"boosts": 1,
"last_offline": 1776772401,
"score": null,
"last_online": 1776822051,
"icon": null,
"name": "#08 [Alta-Fruta] Deathmatch + FFA [www.altafruta.net]",
"connect": "45.235.98.120:27022",
"request": "45.235.98.120:27022",
"map": "cs_italy",
"gamemode": "Alta-Fruta",
"version": "1.1.2.7/Stdio",
"numplayers": 0,
"maxplayers": 17,
"bots": 1,
"secured": true,
"private": false,
"country": "AR",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1582979121,
"last_update": 1776822051,
"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": 4667,
"language": "es",
"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/223128");
$data = json_decode($json, true);
var_dump($data);