Counter-Strike 2
API для 【ovomoe】 CS2 SURF 滑翔
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/11257137json
{
"response": {
"steam_id": "90284717878141953",
"domain": null,
"id": 11257137,
"ip": "113.195.80.65",
"port": 27016,
"query": 27016,
"color": 0,
"city": "Nanchang",
"description": null,
"game": 730,
"owner": null,
"boosts": 1,
"last_offline": 1776851548,
"score": 0,
"last_online": 1776733344,
"icon": null,
"name": "【ovomoe】 CS2 SURF 滑翔",
"connect": "113.195.80.65:27016",
"request": "113.195.80.65:27016",
"map": "surf_rookie",
"gamemode": "Counter-Strike 2",
"version": "1.41.5.1",
"numplayers": 1,
"maxplayers": 15,
"bots": 0,
"secured": true,
"private": false,
"country": "CN",
"status": false,
"votes": 0,
"points": 4,
"add_date": 1774554928,
"last_update": 1776851548,
"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": 11783,
"language": "zh",
"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/11257137");
$data = json_decode($json, true);
var_dump($data);