Rust
API pentru Linuxland / EU Monthly Vanilla
JSON pentru programe, site-uri și altele
text
https://api.gamemonitoring.ro/servers/8390743json
{
"response": {
"fps": 30,
"fps_avg": 29,
"entities_count": 128498,
"world_seed": 149033663,
"world_size": 4250,
"steam_id": "90285605519593489",
"domain": null,
"id": 8390743,
"ip": "92.114.209.60",
"port": 28015,
"query": 28016,
"color": 0,
"city": "Cricova",
"description": "\nWelcome!\r\n - Only one rule, no cheats or bug abuse\r\n - Pure Rust experience, no modifications or plugins\r\n - Fair gameplay, nothing is for sale\r\n - Monthly wipe, map and blueprints\r\n\r\nJoin for more details: discord.gg/TpaJSZM8Hc\r\n\r\nSpecial thanks to Andrew for helping keep this server online",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1778466178,
"score": 0,
"last_online": 1778542814,
"icon": null,
"name": "Linuxland / EU Monthly Vanilla",
"connect": "92.114.209.60:28015",
"request": "92.114.209.60:28016",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2625",
"numplayers": 11,
"maxplayers": 100,
"bots": 0,
"secured": false,
"private": false,
"country": "MD",
"status": true,
"votes": 0,
"points": 65,
"add_date": 1743673724,
"last_update": 1778542814,
"banned": false,
"wipe": 1778176152,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 963,
"language": "ro",
"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/8390743");
$data = json_decode($json, true);
var_dump($data);