Counter-Strike
API для CS-TERVEL.NET # Dust2 Only | REVIVE TEAMMATES
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/10397149json
{
"response": {
"steam_id": null,
"domain": null,
"id": 10397149,
"ip": "2.59.134.238",
"port": 27020,
"query": 27020,
"color": 0,
"city": "Frankfurt am Main",
"description": null,
"game": 10,
"owner": null,
"boosts": 1,
"last_offline": 1772103690,
"score": 0,
"last_online": 1776123617,
"icon": null,
"name": "CS-TERVEL.NET # Dust2 Only | REVIVE TEAMMATES",
"connect": "2.59.134.238:27020",
"request": "2.59.134.238:27020",
"map": "de_dust2",
"gamemode": "Hosted by STRONG-HOST.DE",
"version": "1.1.2.7/Stdio",
"numplayers": 21,
"maxplayers": 32,
"bots": 0,
"secured": true,
"private": false,
"country": "DE",
"status": true,
"votes": 0,
"points": 59,
"add_date": 1758714799,
"last_update": 1776123617,
"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": 2186,
"language": "de",
"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/10397149");
$data = json_decode($json, true);
var_dump($data);