Counter-Strike
API для [Only DD2] GoldenShots.pl [RANGI | MVP | SKINY]
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/11127073json
{
"response": {
"steam_id": null,
"domain": null,
"id": 11127073,
"ip": "193.33.177.135",
"port": 27015,
"query": 27015,
"color": 0,
"city": "Gdansk",
"description": null,
"game": 10,
"owner": 165840,
"boosts": 1,
"last_offline": 1775041294,
"score": 0,
"last_online": 1776799816,
"icon": null,
"name": "[Only DD2] GoldenShots.pl [RANGI | MVP | SKINY]",
"connect": "193.33.177.135:27015",
"request": "193.33.177.135:27015",
"map": "de_dust2",
"gamemode": "Counter-Strike",
"version": "1.1.2.7/Stdio",
"numplayers": 8,
"maxplayers": 32,
"bots": 0,
"secured": true,
"private": false,
"country": "PL",
"status": true,
"votes": 0,
"points": 78,
"add_date": 1770234558,
"last_update": 1776799816,
"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": 1999,
"language": "pl",
"parked": false,
"app": {
"id": 3,
"steam_id": 10,
"name": "Counter-Strike",
"url": "counter-strike"
},
"server_owner": {
"username": "goldenshotspl",
"avatar": "78219c7d-23a3-4380-ab2f-0e6d62d3ed41.png",
"last_online": 1774957026
},
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/11127073");
$data = json_decode($json, true);
var_dump($data);