API dla The Salt Mines (Official) Solo Only | 2x |
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 95,
"fps_avg": 104,
"entities_count": 109221,
"world_seed": 1886,
"world_size": 4000,
"steam_id": "90286452765571076",
"domain": null,
"id": 3578290,
"ip": "47.33.180.172",
"port": 28018,
"query": 28020,
"color": 0,
"city": "Medford",
"description": "\n(Official) The Salt Mines\r\n2x (except Sulfer)\r\nPvP enhanced\r\nHQM / Raid Protection\r\nAirfield Event\r\nNo Junk\r\nConvoy\r\nBoosted crates\r\nServer Protection (68% while Offline)\r\nNo pay to win\r\nVIP for creature comforts, not advantages\r\nReduced Decay\r\nStatic Loottables",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780608205,
"last_online": 1780334436,
"icon": null,
"name": "The Salt Mines (Official) Solo Only | 2x |",
"connect": "47.33.180.172:28018",
"request": "47.33.180.172:28020",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2625",
"numplayers": 0,
"maxplayers": 150,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1711101587,
"last_update": 1780608205,
"banned": false,
"wipe": 1778184719,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 9777,
"language": "en",
"parked": false,
"app": {
"id": 12,
"steam_id": 252490,
"name": "Rust",
"url": "rust"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/3578290");
$data = json_decode($json, true);
var_dump($data);