API dla JUHServer by G-portal.com
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 58,
"fps_avg": 57,
"entities_count": 97850,
"world_seed": 2147483647,
"world_size": 4000,
"steam_id": "90286603886127116",
"domain": null,
"id": 9939147,
"ip": "147.93.162.6",
"port": 28115,
"query": 28116,
"color": 0,
"city": "Lauterbourg",
"description": "\nwelcome to the twiggie community server! please be nice to each other, don't be dicks, don't steal, don't pvp without consent, and have fun! Server hosted by G-Portal.com",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780595663,
"last_online": 1780605035,
"icon": null,
"name": "JUHServer by G-portal.com",
"connect": "147.93.162.6:28115",
"request": "147.93.162.6:28116",
"map": "Procedural Map",
"gamemode": "Vanilla",
"version": "2627",
"numplayers": 0,
"maxplayers": 50,
"bots": 0,
"secured": true,
"private": false,
"country": "FR",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1754150436,
"last_update": 1780605035,
"banned": false,
"wipe": 1780595725,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 1,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 3621,
"language": "fr",
"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/9939147");
$data = json_decode($json, true);
var_dump($data);