Rust
API pentru RustLife.net | SOLO ONLY | Mondays | US
JSON pentru programe, site-uri și altele
text
https://api.gamemonitoring.ro/servers/443444json
{
"response": {
"fps": 38,
"fps_avg": 38,
"entities_count": 93778,
"world_seed": 25552,
"world_size": 3500,
"steam_id": "90284849364816911",
"domain": null,
"id": 443444,
"ip": "64.40.8.147",
"port": 28014,
"query": 28015,
"color": 0,
"city": "Dallas",
"description": "\nWelcome to RustLife\r\n\r\nMaps wipe Weekly on Mondays at 5PM CST US Dallas time\r\nBlueprints wipe on Monday after Force\r\nMap size: 3500 \r\n\r\nRowboats spawn on the beach \r\n →No cheating \r\n →No ban evading/EAC ban evading \r\n →No racism",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1775560327,
"score": null,
"last_online": 1776988818,
"icon": null,
"name": "RustLife.net | SOLO ONLY | Mondays | US",
"connect": "64.40.8.147:28014",
"request": "64.40.8.147:28015",
"map": "RustLife Generated Maps",
"gamemode": "Survival",
"version": "2623",
"numplayers": 7,
"maxplayers": 100,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 64,
"add_date": 1630779661,
"last_update": 1776988818,
"banned": false,
"wipe": 1776721977,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 947,
"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/443444");
$data = json_decode($json, true);
var_dump($data);