API dla NFG Friend only server
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 233,
"fps_avg": 231,
"entities_count": 54477,
"world_seed": 2064511310,
"world_size": 3250,
"steam_id": "90286433347745792",
"domain": null,
"id": 11677309,
"ip": "84.9.44.245",
"port": 28017,
"query": 28018,
"color": 0,
"city": "Gillingham",
"description": null,
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780470424,
"last_online": 1780559571,
"icon": null,
"name": "NFG Friend only server",
"connect": "84.9.44.245:28017",
"request": "84.9.44.245:28018",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2625",
"numplayers": 0,
"maxplayers": 30,
"bots": 0,
"secured": true,
"private": false,
"country": "GB",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1780216202,
"last_update": 1780559571,
"banned": false,
"wipe": 1779622728,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 9635,
"language": "en",
"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/11677309");
$data = json_decode($json, true);
var_dump($data);