API dla [JP]YONIKI Beginner Server fullwiped 6/5 next wipe 6/19
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 105,
"fps_avg": 97,
"entities_count": 63922,
"world_seed": 1732213585,
"world_size": 3500,
"steam_id": "90286623229389839",
"domain": null,
"id": 8663793,
"ip": "160.251.173.154",
"port": 28015,
"query": 28017,
"project_id": null,
"color": 0,
"city": "Chiyoda City",
"description": null,
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780643658,
"last_online": 1780679461,
"icon": null,
"name": "[JP]YONIKI Beginner Server fullwiped 6/5 next wipe 6/19",
"connect": "160.251.173.154:28015",
"request": "160.251.173.154:28017",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2627",
"numplayers": 3,
"maxplayers": 100,
"bots": 0,
"secured": true,
"private": false,
"country": "JP",
"status": true,
"votes": 0,
"points": 31,
"add_date": 1745482542,
"last_update": 1780679461,
"banned": false,
"wipe": 1780643943,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 6187,
"language": "ja",
"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/8663793");
$data = json_decode($json, true);
var_dump($data);