Counter-Strike
API для (#12) Vieja School (Kz + Bhop 100aa) www.dsc.gg/viejaschool
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/6111535json
{
"response": {
"steam_id": null,
"domain": null,
"id": 6111535,
"ip": "45.235.99.105",
"port": 27519,
"query": 27519,
"color": 0,
"city": "Buenos Aires",
"description": null,
"game": 10,
"owner": null,
"boosts": 1,
"last_offline": 1776772401,
"score": 0,
"last_online": 1776822629,
"icon": null,
"name": "(#12) Vieja School (Kz + Bhop 100aa) www.dsc.gg/viejaschool",
"connect": "45.235.99.105:27519",
"request": "45.235.99.105:27519",
"map": "pixelhop",
"gamemode": "Vieja School",
"version": "1.1.2.7/Stdio",
"numplayers": 3,
"maxplayers": 20,
"bots": 0,
"secured": true,
"private": false,
"country": "AR",
"status": true,
"votes": 0,
"points": 42,
"add_date": 1727845084,
"last_update": 1776822629,
"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": 2403,
"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/6111535");
$data = json_decode($json, true);
var_dump($data);