Counter-Strike: Source
API для ███► [WAFG] Crazy Deathmatch cs_office
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/1397221json
{
"response": {
"steam_id": "90284387473380382",
"domain": null,
"id": 1397221,
"ip": "5.135.138.17",
"port": 27018,
"query": 27018,
"color": 0,
"city": "Roubaix",
"description": "",
"game": 240,
"owner": null,
"boosts": 1,
"last_offline": 1774384912,
"score": null,
"last_online": 1776249618,
"icon": null,
"name": "███► [WAFG] Crazy Deathmatch cs_office",
"connect": "5.135.138.17:27018",
"request": "5.135.138.17:27018",
"map": "cs_office",
"gamemode": "wafgamers.com",
"version": "9540945",
"numplayers": 9,
"maxplayers": 33,
"bots": 0,
"secured": true,
"private": false,
"country": "FR",
"status": true,
"votes": 0,
"points": 50,
"add_date": 1696039998,
"last_update": 1776249618,
"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": 380,
"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/1397221");
$data = json_decode($json, true);
var_dump($data);