Counter-Strike
API для FragC.com # Auto-Mix 2 לארשי יללח - רוכזי
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/10158390json
{
"response": {
"steam_id": null,
"domain": null,
"id": 10158390,
"ip": "181.214.214.176",
"port": 10002,
"query": 10002,
"color": 0,
"city": "Petah Tikva",
"description": null,
"game": 10,
"owner": null,
"boosts": 1,
"last_offline": 1776725600,
"score": 0,
"last_online": 1776796341,
"icon": null,
"name": "FragC.com # Auto-Mix 2 לארשי יללח - רוכזי",
"connect": "181.214.214.176:10002",
"request": "181.214.214.176:10002",
"map": "aim_map",
"gamemode": "WeServ.co.il",
"version": "1.1.2.7/Stdio",
"numplayers": 0,
"maxplayers": 10,
"bots": 0,
"secured": true,
"private": false,
"country": "IL",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1756213052,
"last_update": 1776796341,
"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": 6024,
"language": "he",
"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/10158390");
$data = json_decode($json, true);
var_dump($data);