Rust
API pentru Rust Perth | 2x | Fortnightly | Convoys |
JSON pentru programe, site-uri și altele
text
https://api.gamemonitoring.ro/servers/782345json
{
"response": {
"fps": 59,
"fps_avg": 58,
"entities_count": 81730,
"world_seed": 1337,
"world_size": 3750,
"steam_id": "90284751640389661",
"domain": null,
"id": 782345,
"ip": "45.121.208.22",
"port": 49015,
"query": 49016,
"color": 0,
"city": "Perth",
"description": "Fortnightly wipes. Non-toxic environment, be mature and respectful. \r\n \r\n Offline Raid 60% Protection for first week of each wipe, 2x Gather with Half Craft Speed and Faster Cooking/Smelting \r\n \r\n Convoys, Stackable Boxes, More Recyclers and Carlifts at Monuments, Sign Artist, Instant Minicopter Windup, Samsite Auth, Longer Day and Shorter Nights and a few other quality of life mods installed.",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1776798203,
"score": null,
"last_online": 1776836418,
"icon": null,
"name": "Rust Perth | 2x | Fortnightly | Convoys |",
"connect": "45.121.208.22:49015",
"request": "45.121.208.22:49016",
"map": "Custom Map",
"gamemode": "Vanilla",
"version": "2623",
"numplayers": 3,
"maxplayers": 50,
"bots": 0,
"secured": true,
"private": false,
"country": "AU",
"status": true,
"votes": 0,
"points": 64,
"add_date": 1681806190,
"last_update": 1776836418,
"banned": false,
"wipe": 1776366250,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 899,
"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/782345");
$data = json_decode($json, true);
var_dump($data);