API для <EMA> Obi's Crab Shack PVE,PVP, XPstats
JSON для программ, сайтов и прочего
text
json
{
"response": {
"fps": 173,
"fps_avg": 168,
"entities_count": 107211,
"world_seed": 243760378,
"world_size": 4500,
"steam_id": "90286611749562397",
"domain": null,
"id": 568699,
"ip": "70.15.129.163",
"port": 28015,
"query": 28016,
"color": 0,
"city": "Westfield",
"description": "2x Heavily modded with fullbackpack,shop to buy quarrys and many other items, Custom NPC's at monuments, Boss's, NPC gun drop, Box stack, TP, Craftable Recycler, Custom built Raidable bases,XP system with customizable stats, Clans and much much more.",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780611859,
"last_online": 1780615228,
"icon": null,
"name": "<EMA> Obi's Crab Shack PVE,PVP, XPstats",
"connect": "70.15.129.163:28015",
"request": "70.15.129.163:28016",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2627",
"numplayers": 0,
"maxplayers": 100,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1668891693,
"last_update": 1780615228,
"banned": false,
"wipe": 1780612141,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 2822,
"language": "en",
"parked": false,
"app": {
"id": 12,
"steam_id": 252490,
"name": "Rust",
"url": "rust"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/568699");
$data = json_decode($json, true);
var_dump($data);