Counter-Strike: Source
API для -= Mac-Infectus ArG =- #2 MIX| Garryshost
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/550448json
{
"response": {
"steam_id": "90284311396020231",
"domain": null,
"id": 550448,
"ip": "45.235.98.242",
"port": 27051,
"query": 27051,
"color": 0,
"city": "Córdoba",
"description": "",
"game": 240,
"owner": null,
"boosts": 1,
"last_offline": 1775517682,
"score": null,
"last_online": 1776109229,
"icon": null,
"name": "-= Mac-Infectus ArG =- #2 MIX| Garryshost",
"connect": "45.235.98.242:27051",
"request": "45.235.98.242:27051",
"map": "$2000$",
"gamemode": "Counter-Strike: Source",
"version": "9540945",
"numplayers": 0,
"maxplayers": 12,
"bots": 0,
"secured": true,
"private": false,
"country": "AR",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1650961500,
"last_update": 1776109229,
"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": 951,
"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/550448");
$data = json_decode($json, true);
var_dump($data);