Counter-Strike
API для 1shot2kill.pl [ONLY DD2 | STEAM VIP | RANGI | FREE SVIP (22-6) / VIP | LECZENIE | SKINY | MONETY | ASYSTY | MEDALE] @ 1s2k.pl
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/4662414json
{
"response": {
"steam_id": null,
"domain": null,
"id": 4662414,
"ip": "193.33.177.110",
"port": 27015,
"query": 27015,
"color": 0,
"city": "Gdansk",
"description": "",
"game": 10,
"owner": null,
"boosts": 1,
"last_offline": 1768642084,
"score": 0,
"last_online": 1776196811,
"icon": null,
"name": "1shot2kill.pl [ONLY DD2 | STEAM VIP | RANGI | FREE SVIP (22-6) / VIP | LECZENIE | SKINY | MONETY | ASYSTY | MEDALE] @ 1s2k.pl",
"connect": "193.33.177.110:27015",
"request": "193.33.177.110:27015",
"map": "de_dust2",
"gamemode": "× DD2 ×",
"version": "1.1.2.7/Stdio",
"numplayers": 29,
"maxplayers": 32,
"bots": 0,
"secured": true,
"private": false,
"country": "PL",
"status": true,
"votes": 0,
"points": 89,
"add_date": 1717665709,
"last_update": 1776196811,
"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": 1748,
"language": "pl",
"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/4662414");
$data = json_decode($json, true);
var_dump($data);