API dla Korea - Main|5/29|KR/JP/SEA|
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 97,
"fps_avg": 108,
"entities_count": 106574,
"world_seed": 15,
"world_size": 4250,
"steam_id": "90286386099999754",
"domain": null,
"id": 11677456,
"ip": "211.228.227.76",
"port": 28015,
"query": 28017,
"color": 0,
"city": "Buk-gu",
"description": "\nMap wipe : Every Friday 5PM @KST/UTC+9\r\nBPs wipe : Monthly/Every force wipe\r\nMap size 4250\r\nteam limit : 6",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780216210,
"last_online": 1780600237,
"icon": null,
"name": "Korea - Main|5/29|KR/JP/SEA|",
"connect": "211.228.227.76:28015",
"request": "211.228.227.76:28017",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2625",
"numplayers": 1,
"maxplayers": 100,
"bots": 0,
"secured": true,
"private": false,
"country": "KR",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1780216210,
"last_update": 1780600237,
"banned": false,
"wipe": 1780110539,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 5174,
"language": "ko",
"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/11677456");
$data = json_decode($json, true);
var_dump($data);