Rust
API pentru [EU] Enardo - Random Farming - Small One Grid | OneGrid
JSON pentru programe, site-uri și altele
text
https://api.gamemonitoring.ro/servers/11159071json
{
"response": {
"fps": 60,
"fps_avg": 59,
"entities_count": 21642,
"world_seed": 1314446512,
"world_size": 2000,
"steam_id": "90284543209305110",
"domain": null,
"id": 11159071,
"ip": "194.69.160.140",
"port": 28016,
"query": 29050,
"color": 0,
"city": "City of London",
"description": "![[EU] Enardo - Random Farming - Small One Grid | OneGrid](https://effedion.nl/img/gzBekiMfH9qutos9lpQ0vGgKMSSJ68.png)\nEnardo.gg - Random Farming - Small One Grid\r\n\r\nTuesday Map Wipes @ 1PM GMT+1\r\n\r\nForce Wipe at 8PM GMT+1 First Thursdays of the Month. \r\n\r\nVIP & Kits available at https://store.enardo.gg/\r\n\r\nMake sure to join the Discord - discord.gg/enardo\r\n\r\n24/7 Admin Support. Custom plugins. Amazing performance. English only chat.",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1775750527,
"score": 0,
"last_online": 1776412216,
"icon": null,
"name": "[EU] Enardo - Random Farming - Small One Grid | OneGrid",
"connect": "194.69.160.140:28016",
"request": "194.69.160.140:29050",
"map": "Enardo Maps",
"gamemode": "Survival",
"version": "2623",
"numplayers": 5,
"maxplayers": 50,
"bots": 0,
"secured": true,
"private": false,
"country": "GB",
"status": true,
"votes": 0,
"points": 65,
"add_date": 1772228122,
"last_update": 1776412216,
"banned": false,
"wipe": 1776164456,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 916,
"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/11159071");
$data = json_decode($json, true);
var_dump($data);