API dla SOPRAVVISSUTI DITALIA 2X
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 45,
"fps_avg": 41,
"entities_count": 73745,
"world_seed": 1310747615,
"world_size": 3500,
"steam_id": "90286538937299997",
"domain": null,
"id": 11717817,
"ip": "45.14.187.27",
"port": 28015,
"query": 28016,
"color": 0,
"city": "Sant'Agata",
"description": "\nWelcome to my Rust Server\r\nThis is a new line\r\nThis is another new lineBenvenuti su SOPRAVVISSUTI D'ITALIA X2\n\n➤ Raccolta X2\n➤ Zolfo Vanilla (X1)\n➤ Stack Size X2\n➤ Recycler in tutti i monumenti\n➤ Minicotteri presenti sulla mappa\n➤ Team massimo 8 giocatori\n➤ Nessuna alleanza consentita",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780449863,
"last_online": 1780555229,
"icon": null,
"name": "SOPRAVVISSUTI DITALIA 2X",
"connect": "45.14.187.27:28015",
"request": "45.14.187.27:28016",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2625",
"numplayers": 0,
"maxplayers": 125,
"bots": 0,
"secured": true,
"private": false,
"country": "IT",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1780324073,
"last_update": 1780555229,
"banned": false,
"wipe": 1780319240,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 5956,
"language": "it",
"parked": false,
"app": {
"id": 12,
"steam_id": 252490,
"name": "Rust",
"url": "rust"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/11717817");
$data = json_decode($json, true);
var_dump($data);