Empyrion - Galactic Survival
API для Silvertree Gaming
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/11386960json
{
"response": {
"steam_id": "90283850126530585",
"domain": null,
"id": 11386960,
"ip": "68.144.242.24",
"port": 26900,
"query": 26901,
"color": 0,
"city": "Calgary",
"description": null,
"game": 383120,
"owner": null,
"boosts": 1,
"last_offline": 1775178688,
"score": 0,
"last_online": 1776790905,
"icon": null,
"name": "Silvertree Gaming",
"connect": "68.144.242.24:26900",
"request": "68.144.242.24:26901",
"map": null,
"gamemode": "Empyrion - Galactic Survival",
"version": "v1.16.1",
"numplayers": 0,
"maxplayers": 24,
"bots": 0,
"secured": false,
"private": true,
"country": "CA",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1774596299,
"last_update": 1776790905,
"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": 510,
"language": "en",
"parked": false,
"app": {
"id": 140,
"steam_id": 383120,
"name": "Empyrion - Galactic Survival",
"url": "empyrion-galactic-survival"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/11386960");
$data = json_decode($json, true);
var_dump($data);