Rust
API pentru [Baltic] Akmenslandia Small - Latvia | Lithuania | Estonia
JSON pentru programe, site-uri și altele
text
https://api.gamemonitoring.ro/servers/9527309json
{
"response": {
"fps": 40,
"fps_avg": 39,
"entities_count": 69616,
"world_seed": 1337,
"world_size": 3500,
"steam_id": "90285194222096409",
"domain": null,
"id": 9527309,
"ip": "87.110.85.143",
"port": 28015,
"query": 28017,
"color": 0,
"city": "Riga",
"description": "![[Baltic] Akmenslandia Small - Latvia | Lithuania | Estonia](https://www.dropbox.com/scl/fi/676qvkyv249i0lov6eo6f/Untitled-1.jpg?rlkey=zbcaezz70g3ooveogrn2v6pv1&st=etpxsifu&dl=1)\n\r\nWelcome to AkmensLandia — a Baltic Vanilla Rust server\r\nMap Size: 3500\r\nDay/Night Cycle: 50 min day / 10 min night\r\nDaily Restarts: 4:00 AM (most days)\r\nWeekly Wipes: Every Thursday at 19:00\r\nBP Wipe: On force wipe (first Thursday of the month at 21:00)\r\nRaid Protection: 2:00 AM – 2:00 PM\r\nTeam Limit: 4 players\r\nMVP Title: Earn a chance to get the MVP title! More info in Discord\r\nAnticheat: Custom-built anticheat system for fair gameplay\r\nRules: akmens.land/rules \r\nWebsite: akmens.land",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1777604601,
"score": 0,
"last_online": 1777665021,
"icon": null,
"name": "[Baltic] Akmenslandia Small - Latvia | Lithuania | Estonia",
"connect": "87.110.85.143:28015",
"request": "87.110.85.143:28017",
"map": "Custom Map",
"gamemode": "Survival",
"version": "2623",
"numplayers": 2,
"maxplayers": 100,
"bots": 0,
"secured": true,
"private": false,
"country": "LV",
"status": true,
"votes": 0,
"points": 62,
"add_date": 1750537901,
"last_update": 1777665021,
"banned": false,
"wipe": 1777564391,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 1956,
"language": "lv",
"parked": false,
"app": {
"id": 12,
"steam_id": 252490,
"name": "Rust",
"url": "rust"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Exemple de cod
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ro/servers/9527309");
$data = json_decode($json, true);
var_dump($data);