API pentru Altopia - Modded | Raid Bases | Community | Biplane
JSON pentru programe, site-uri și altele
text
json
{
"response": {
"fps": 53,
"fps_avg": 52,
"entities_count": 83478,
"world_seed": 1470519689,
"world_size": 3750,
"steam_id": "90286576221510684",
"domain": null,
"id": 11159758,
"ip": "66.51.96.69",
"port": 28080,
"query": 28081,
"color": 0,
"city": "Ashburn",
"description": "\nWelcome to Altopia! A friendly rust community Featuring Submarine Water Event, Armored Train, Convoy, Biplanes and\r\nparachutes at Airfield, lockable vehicles, increased stack sizes and TC decay protection!\r\n\r\nPlease be kind to each other, no toxicity, racism or harassment will be tolerated\r\n\r\nServer still growing, events rotated monthly.",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1778177585,
"last_online": 1780590032,
"icon": null,
"name": "Altopia - Modded | Raid Bases | Community | Biplane",
"connect": "66.51.96.69:28080",
"request": "66.51.96.69:28081",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2625",
"numplayers": 0,
"maxplayers": 50,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1772228139,
"last_update": 1780590032,
"banned": false,
"wipe": 1778177802,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 4231,
"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/11159758");
$data = json_decode($json, true);
var_dump($data);