Counter-Strike 2
API для � Public | Napas Project | !ws !rank
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/11489213json
{
"response": {
"steam_id": "85568392936106942",
"domain": null,
"id": 11489213,
"ip": "91.231.182.151",
"port": 5136,
"query": 5136,
"color": 0,
"city": "Kyiv",
"description": null,
"game": 730,
"owner": null,
"boosts": 1,
"last_offline": 1776184950,
"score": 0,
"last_online": 1776392409,
"icon": null,
"name": "� Public | Napas Project | !ws !rank",
"connect": "91.231.182.151:5136",
"request": "91.231.182.151:5136",
"map": "de_train",
"gamemode": "Counter-Strike 2",
"version": "1.41.4.1",
"numplayers": 63,
"maxplayers": 64,
"bots": 0,
"secured": true,
"private": false,
"country": "UA",
"status": true,
"votes": 0,
"points": 128,
"add_date": 1776184950,
"last_update": 1776392409,
"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": 68,
"language": "uk",
"parked": false,
"app": {
"id": 2,
"steam_id": 730,
"name": "Counter-Strike 2",
"url": "counter-strike-2"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/11489213");
$data = json_decode($json, true);
var_dump($data);