API для OTCHO
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1793500456,
"app": {
"id": 12,
"name": "Rust",
"steam_id": 252490,
"url": "rust"
},
"color": 0,
"connect": "41.108.204.207:28015",
"country": "DZ",
"domain": null,
"game": 252490,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 19473113,
"ip": "41.108.204.207",
"language": "ar",
"last_update": 1794431165,
"map": "Procedural Map",
"maxplayers": 50,
"name": "OTCHO",
"numplayers": 0,
"official": null,
"points": 0,
"port": 28015,
"private": null,
"project_id": null,
"pve": null,
"pvp": null,
"query": 28017,
"request": "41.108.204.207:28017",
"secured": true,
"status": false,
"steam_id": "90296275270048788",
"version": "2635",
"votes": 0,
"wipe": 1791024801,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Блида",
"description": null,
"disabled_modules": [],
"gamemode": null,
"hidden": false,
"last_offline": 1794431165,
"last_online": 1793586041,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 16522,
"wipe_period": null,
"os": "l",
"region": -1,
"product": "252490",
"gametype": "mp50,cp0,ptrak,qp0,$r?,v2635,born1791024801,gmsoftcore,cs168909,ts4",
"map_name": "Procedural Map",
"dedicated": true,
"queueplayers": 0
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/19473113");
$data = json_decode($json, true);
var_dump($data);