Rust
API pentru Estonia 2x | Vanilla+
JSON pentru programe, site-uri și altele
text
https://api.gamemonitoring.ro/servers/1208089json
{
"response": {
"modded": true,
"fps": 45,
"fps_avg": 44,
"entities_count": 99039,
"world_seed": 1337,
"world_size": 3350,
"steam_id": "90284343749948426",
"domain": null,
"id": 1208089,
"ip": "86.110.45.226",
"port": 28015,
"query": 28017,
"color": 0,
"city": "Tallinn",
"description": "• Allyng is allowed in all forms and shape. •\r\n\r\n• 55-minute days and 5-minute nights. •\r\n• Faster furnaces and recyclers. •\r\n• Reduced building upkeep cost in ToolCupboard! •\r\n• UI-limit is 8, but ally is allowed •\r\n• Extended Workbench range for discord linked users. •\r\n• Vanilla animals, running around attacking! •\r\n• Improved cooking skills, meat dosent burn! •\r\n• Most blueprints are unlocked for discord linked users. •\r\n• Improved loot in all crates. •\r\n• SAMs won't target TC Authorized players. •\r\n• We only wipe blueprints when community votes on it. •\r\n• Explosion damage reduced after 00:00 to offline bases. •\r\n• Raid Protection starts at 00:00 and ends 12:00. •\r\n• No Raid Protection for bases that have online players. •\r\n\r\n• Please link your account using Command: /v. •",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1776139315,
"score": null,
"last_online": 1776206413,
"icon": null,
"name": "Estonia 2x | Vanilla+",
"connect": "86.110.45.226:28015",
"request": "86.110.45.226:28017",
"map": "2 Days, 17 Hours till wipe",
"gamemode": "Vanilla",
"version": "2623",
"numplayers": 7,
"maxplayers": 245,
"bots": 0,
"secured": false,
"private": false,
"country": "EE",
"status": true,
"votes": 0,
"points": 61,
"add_date": 1691956001,
"last_update": 1776206413,
"banned": false,
"wipe": 1775836785,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 1810,
"language": "et",
"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/1208089");
$data = json_decode($json, true);
var_dump($data);