API для My Server Name
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1790257251,
"app": {
"id": 12,
"name": "Rust",
"steam_id": 252490,
"url": "rust"
},
"color": 0,
"connect": "37.52.152.90:28015",
"country": "UA",
"domain": null,
"game": 252490,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 17064202,
"ip": "37.52.152.90",
"language": "uk",
"last_update": 1790289697,
"map": "Procedural Map",
"maxplayers": 500,
"name": "My Server Name",
"numplayers": 0,
"official": null,
"points": 0,
"port": 28015,
"private": null,
"project_id": null,
"pve": null,
"pvp": null,
"query": 28016,
"request": "37.52.152.90:28016",
"secured": true,
"status": false,
"steam_id": "90293348780044304",
"version": "2633",
"votes": 0,
"wipe": 1790257129,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Kolomak",
"description": null,
"disabled_modules": [],
"gamemode": null,
"hidden": false,
"last_offline": 1790289697,
"last_online": 1790262651,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 24138,
"wipe_period": null,
"os": "w",
"region": -1,
"product": "252490",
"gametype": "mp500,cp0,ptrak,qp0,$r?,v2633,born1790257129,gmrust,cs165217,ts8",
"map_name": "Procedural Map",
"dedicated": true,
"queueplayers": 0
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/17064202");
$data = json_decode($json, true);
var_dump($data);