Half-Life
API для cakcan crossfire
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/10591996json
{
"response": {
"steam_id": "90284998666197002",
"domain": null,
"id": 10591996,
"ip": "78.189.47.30",
"port": 27016,
"query": 27016,
"color": 0,
"city": "Istanbul",
"description": null,
"game": 70,
"owner": null,
"boosts": 1,
"last_offline": 1777218205,
"score": 0,
"last_online": 1778560296,
"icon": null,
"name": "cakcan crossfire",
"connect": "78.189.47.30:27016",
"request": "78.189.47.30:27016",
"map": "crossfire",
"gamemode": "Half-Life",
"version": "1.1.2.2/Stdio",
"numplayers": 0,
"maxplayers": 12,
"bots": 0,
"secured": false,
"private": false,
"country": "TR",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1762851896,
"last_update": 1778560296,
"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": 216,
"language": "tr",
"parked": false,
"app": {
"id": 9,
"steam_id": 70,
"name": "Half-Life",
"url": "half-life"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/10591996");
$data = json_decode($json, true);
var_dump($data);