API dla [JP] LITTLE WORLD!
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 60,
"fps_avg": 59,
"entities_count": 46600,
"world_seed": 851629842,
"world_size": 3000,
"steam_id": "90286604060504070",
"domain": null,
"id": 11596680,
"ip": "18.181.191.247",
"port": 28015,
"query": 28017,
"color": 0,
"city": "Tokyo",
"description": "![[JP] LITTLE WORLD!](https://drive.google.com/thumbnail?id=1byQg44tc6ejM2X9D2ll-lcNgMRYVzOBO&sz=w1024)\n[日本語] サーバールールや Mod の使い方は Discord をご確認ください。招待リンク: https://discord.gg/CVqpcF24\r\n[English] Please check our Discord for the server rules and how to use the Mods. Invite link: https://discord.gg/CVqpcF24",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780596270,
"last_online": 1780605631,
"icon": null,
"name": "[JP] LITTLE WORLD!",
"connect": "18.181.191.247:28015",
"request": "18.181.191.247:28017",
"map": "Procedural Map",
"gamemode": "Vanilla",
"version": "2627",
"numplayers": 4,
"maxplayers": 50,
"bots": 0,
"secured": true,
"private": false,
"country": "JP",
"status": true,
"votes": 0,
"points": 63,
"add_date": 1779358596,
"last_update": 1780605631,
"banned": false,
"wipe": 1780596247,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 1,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 1600,
"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/11596680");
$data = json_decode($json, true);
var_dump($data);