Counter-Strike: Source
API для DeathMatch CS:S v34 [ABCVG.info]
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/6340json
{
"response": {
"steam_id": null,
"domain": null,
"id": 6340,
"ip": "178.32.222.119",
"port": 27015,
"query": 27015,
"color": 0,
"city": "Roubaix",
"description": "",
"game": 240,
"owner": null,
"boosts": 1,
"last_offline": 1773545568,
"score": null,
"last_online": 1776123057,
"icon": null,
"name": "DeathMatch CS:S v34 [ABCVG.info]",
"connect": "178.32.222.119:27015",
"request": "178.32.222.119:27015",
"map": "$2000$",
"gamemode": "Counter-Strike: Source",
"version": "1.0.0.34",
"numplayers": 0,
"maxplayers": 30,
"bots": 6,
"secured": false,
"private": false,
"country": "FR",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1501541232,
"last_update": 1776123057,
"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": 655,
"language": "fr",
"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/6340");
$data = json_decode($json, true);
var_dump($data);