Rust
API pentru RustForNoobs.com Primitive | Bow / Melee | Medieval
JSON pentru programe, site-uri și altele
text
https://api.gamemonitoring.ro/servers/520994json
{
"response": {
"fps": 60,
"fps_avg": 59,
"entities_count": 72018,
"world_seed": 11762,
"world_size": 3000,
"steam_id": "90284733997197338",
"domain": null,
"id": 520994,
"ip": "64.40.8.62",
"port": 28019,
"query": 28020,
"color": 0,
"city": "Dallas",
"description": "\nWelcome to RustForNoobs Primitive\r\nSlay the King or Lord to conquer the region and tax the peasants as you see fit. Or be the best farmer/fisher that the realm has ever seen, acquiring riches and building an impenetrable castle. The Kingdom awaits...\r\n\r\n* High FPS Dedicated Server\r\n* Bi-Weekly Map wipe, Monthly BP Wipes @ForcedUpdate\r\n* No Roam Limit\r\n* PVP, Explosive, and Build Kits\r\n* 50% Upkeep\r\n* Level Up Gathering (zLevels)\r\n* QuickSmelt & QuickCraft (2x)\r\n* No Rads or HQM Build Tier\r\n* NO Guns ; Raid with Satchel Charges\r\n* Free Skinbox\r\n* Free /panimal\r\n* Active Staff Ensuring No Hackers\r\n* Rust+, /raidalarm, furnacesplitter, etc.\r\n \r\n discord.gg/rustfornoobs",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1775194330,
"score": null,
"last_online": 1776845419,
"icon": null,
"name": "RustForNoobs.com Primitive | Bow / Melee | Medieval",
"connect": "64.40.8.62:28019",
"request": "64.40.8.62:28020",
"map": "RustForNoobs Generated Maps",
"gamemode": "Survival",
"version": "2623",
"numplayers": 1,
"maxplayers": 50,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1643497842,
"last_update": 1776845419,
"banned": false,
"wipe": 1776376649,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 2337,
"language": "en",
"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/520994");
$data = json_decode($json, true);
var_dump($data);