Counter-Strike 2
API для CS2 RETAKE #549 [FR] — CYBERSHOKE.NET (9 SLOTS)
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/10943036json
{
"response": {
"steam_id": "85568392935832406",
"domain": null,
"id": 10943036,
"ip": "151.80.35.228",
"port": 28033,
"query": 28033,
"color": 0,
"city": "Roubaix",
"description": null,
"game": 730,
"owner": null,
"boosts": 1,
"last_offline": 1773885719,
"score": 0,
"last_online": 1775944823,
"icon": null,
"name": "CS2 RETAKE #549 [FR] — CYBERSHOKE.NET (9 SLOTS)",
"connect": "151.80.35.228:28033",
"request": "151.80.35.228:28033",
"map": "de_mirage",
"gamemode": "Counter-Strike 2",
"version": "1.41.4.1",
"numplayers": 3,
"maxplayers": 64,
"bots": 0,
"secured": true,
"private": false,
"country": "FR",
"status": true,
"votes": 0,
"points": 35,
"add_date": 1768501073,
"last_update": 1775944823,
"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": 2515,
"language": "fr",
"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/10943036");
$data = json_decode($json, true);
var_dump($data);