Rust
API pentru Vitality - EU 10x | No BPs | Kits | Shop
JSON pentru programe, site-uri și altele
text
https://api.gamemonitoring.ro/servers/10533638json
{
"response": {
"modded": true,
"fps": 67,
"fps_avg": 67,
"entities_count": 242089,
"world_seed": 1337,
"world_size": 5500,
"steam_id": "90284610218883086",
"domain": null,
"id": 10533638,
"ip": "64.40.9.50",
"port": 28010,
"query": 28015,
"color": 0,
"city": "London",
"description": "\nVitality Rust Servers | Made for the most competitive\r\n\r\nWipe times\r\n5:00 PM UK Wednesday\r\n3:00 PM UK Saturday\r\n\r\nLinks\r\n• discord.gg/vitalityservers\r\n• vitalityrust.com/store\r\nFeatures\r\n• 10X Gather\r\n• 15X Sulfur\r\n• 10X Loot\r\n• Custom events\r\n• Custom Kits",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1775690523,
"score": 0,
"last_online": 1776667215,
"icon": null,
"name": "Vitality - EU 10x | No BPs | Kits | Shop",
"connect": "64.40.9.50:28010",
"request": "64.40.9.50:28015",
"map": "Vitality Custom Map",
"gamemode": "Survival",
"version": "2623",
"numplayers": 5,
"maxplayers": 50,
"bots": 0,
"secured": true,
"private": false,
"country": "GB",
"status": true,
"votes": 0,
"points": 65,
"add_date": 1762518598,
"last_update": 1776667215,
"banned": false,
"wipe": 1776520721,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 879,
"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/10533638");
$data = json_decode($json, true);
var_dump($data);