Connect with other Animal Crossing players! Send private direct messages, share island screenshots, trade Dodo codes, and chat live in Town Square Plaza.
Direct Messages (DMs)Private 1-on-1 chats with real islanders & screenshot sharing.
Island Friends ListSee when your friends are online, playing, or available to trade.
Town Square PlazaLive community chatroom for general chat, trades & tips.
Base URL: https://genacnh.com/api
Content-Type: application/x-www-form-urlencoded | application/json
Accept: application/json
Authentication Header
Provide your Bot Token (issued via Developer Portal) in the HTTP request header:
X-Bot-Token: gen_bot_tok_1a2b3c4d5e6f7g8h9i0j...
Rate Limits & Imunify360 WAF
Recommended Polling & Heartbeat Frequencies
Endpoint Action
Recommended Interval
Hard Rate Limit
/v1/island/heartbeat
Every 20โ30 seconds
Max 1 request / 5 seconds
/v1/island/update
On Dodo change / status toggle
Max 1 request / 5 seconds
/v1/island/subscribers
On resident visitor join
Max 60 requests / minute
๐ก๏ธ Imunify360 & Sentinel Integration: Custom bot client requests should include a custom User-Agent and your authorized X-Bot-Token header to bypass web flood rate-limit triggers automatically.
HTTP Status Codes
Code
Status
Description
200
OK
Request processed successfully
400
Bad Request
Missing required parameters or invalid payload
401
Unauthorized
Missing or invalid X-Bot-Token header
500
Internal Error
Server execution exception
GET/api/v1/public/active-hosts
โจ No API Key Required Ultra-Fast 15s Cached JSON
Designed specifically for third-party companion mobile apps (e.g., ACNH Guide, Horizon Pedia, Nookazon bots, Twitch overlays, and Discord bots). Query live, automated Animal Crossing: New Horizons treasure islands with real-time Dodo codes, queue capacity, and categories.
Free Forever: This public directory endpoint is free to integrate into any iOS, Android, macOS, Windows, or web companion application.
CORS Enabled: Headers include Access-Control-Allow-Origin: * allowing direct client-side requests from React Native, Flutter, Swift, and web applications.
Attribution Requirement: When listing GenACNH islands in your companion app, provide a clickable button or label linking to https://genacnh.com/islands.php (e.g., "Powered by GenACNH" or "View on GenACNH").
Client Caching: We recommend caching results client-side for 15โ30 seconds before re-fetching to optimize user battery life and network bandwidth.
Live Interactive API Sandbox
Test the live endpoint directly in your browser. Choose your query filters and execute a real-time HTTP GET request.
GET https://genacnh.com/api/v1/public/active-hosts
Click "Send Live Request" above to test the API in real time...
Twitch & Kick Chatbot Integration
Allow viewers in your Twitch, Kick, or YouTube stream chat to query live, automated Dodo codes with a simple !dodo or !islands command.
1. Nightbot One-Click Command
Paste this command directly into your Twitch chat (or Nightbot Dashboard):
Add a live, transparent glassmorphic Dodo code HUD directly onto your OBS / Streamlabs stream layout. It automatically polls the server every 10 seconds and animates when a Dodo code changes.
Ready-to-use /islands Discord slash command with interactive embeds and direct join action buttons:
const { SlashCommandBuilder, EmbedBuilder, ActionRowBuilder, ButtonBuilder, ButtonStyle } = require('discord.js');
module.exports = {
data: new SlashCommandBuilder()
.setName('islands')
.setDescription('View live open Animal Crossing treasure islands & Dodo codes')
.addStringOption(option =>
option.setName('category')
.setDescription('Filter island by item category')
.addChoices(
{ name: 'All Categories', value: 'all' },
{ name: 'DIY Recipes', value: 'diys' },
{ name: 'Materials & Gold', value: 'materials' },
{ name: 'Max Bells', value: 'maxbells' },
{ name: 'Furniture Sets', value: 'furniture' },
{ name: 'Villagers in Boxes', value: 'villagers' }
)
),
async execute(interaction) {
await interaction.deferReply();
const category = interaction.options.getString('category') || 'all';
try {
const res = await fetch(`https://genacnh.com/api/v1/public/active-hosts?category=${category}&type=free&limit=5`);
const data = await res.json();
if (!data.success || !data.hosts || data.hosts.length === 0) {
return interaction.editReply('๐๏ธ **All treasure islands are currently full or restarting.** Check live queue: https://genacnh.com/islands.php');
}
const embed = new EmbedBuilder()
.setTitle('๐๏ธ GenACNH Live Public Treasure Islands')
.setDescription(`Found **${data.total_active_hosts}** online public islands. Fly via Dodo Code at your airport!`)
.setColor(0x2dd4bf)
.setThumbnail('https://genacnh.com/images/logo/GenACNH_Logo.png')
.setTimestamp()
.setFooter({ text: 'Powered by GenACNH Island Automation Network', iconURL: 'https://genacnh.com/images/logo/GenACNH_Logo.png' });
data.hosts.forEach(isl => {
const statusDot = (isl.available_slots > 0) ? '๐ข OPEN' : '๐ด FULL';
embed.addFields({
name: `${isl.name} ยท ${isl.category_label}`,
value: `๐ **Dodo Code:** \`${isl.dodo_code}\`\n๐ฅ **Visitors:** ${isl.current_visitors}/${isl.max_visitors} (${statusDot})\n๐ *${isl.description}*`,
inline: false
});
});
const row = new ActionRowBuilder().addComponents(
new ButtonBuilder()
.setLabel('View Live Map Directory')
.setStyle(ButtonStyle.Link)
.setURL('https://genacnh.com/islands.php')
);
await interaction.editReply({ embeds: [embed], components: [row] });
} catch (err) {
console.error('GenACNH API Error:', err);
await interaction.editReply('โ Failed to fetch treasure island status. Please try again in a few seconds.');
}
}
};
Discord 30s Auto-Updating Status Channel
Keep a dedicated #treasure-islands Discord channel automatically updated in real time every 30 seconds:
const { Client, GatewayIntentBits, EmbedBuilder } = require('discord.js');
const client = new Client({ intents: [GatewayIntentBits.Guilds] });
const STATUS_CHANNEL_ID = "YOUR_DISCORD_CHANNEL_ID_HERE";
let statusMessageId = null;
async function updateIslandStatusChannel() {
try {
const channel = await client.channels.fetch(STATUS_CHANNEL_ID);
if (!channel) return;
const res = await fetch("https://genacnh.com/api/v1/public/active-hosts?type=free&limit=10");
const data = await res.json();
const embed = new EmbedBuilder()
.setTitle("๐๏ธ Live Animal Crossing Treasure Islands Directory")
.setDescription(`Real-time Dodo Codes for open automated treasure islands.\n*Updated every 30 seconds.*`)
.setColor(0x10b981)
.setThumbnail("https://genacnh.com/images/logo/GenACNH_Logo.png")
.setTimestamp()
.setFooter({ text: "GenACNH Island Automation Network" });
if (data.hosts && data.hosts.length > 0) {
data.hosts.forEach(isl => {
embed.addFields({
name: `๐ ${isl.name} (${isl.category_label})`,
value: `๐ซ **Dodo:** \`${isl.dodo_code}\` | **Queue:** ${isl.current_visitors}/${isl.max_visitors} (${isl.status})`,
inline: true
});
});
} else {
embed.addFields({ name: "Offline", value: "All islands are currently cycling. Please check back shortly!" });
}
if (!statusMessageId) {
const msg = await channel.send({ embeds: [embed] });
statusMessageId = msg.id;
} else {
const msg = await channel.messages.fetch(statusMessageId);
await msg.edit({ embeds: [embed] });
}
} catch (e) {
console.error("Status channel update error:", e);
}
}
client.once('ready', () => {
console.log(`Bot logged in as ${client.user.tag}`);
updateIslandStatusChannel();
setInterval(updateIslandStatusChannel, 30000); // Poll every 30s
});
client.login("YOUR_DISCORD_BOT_TOKEN_HERE");
Discord.py (v2.0+) Slash Command
Asynchronous slash command for Python Discord bots using aiohttp:
import discord
from discord import app_commands
from discord.ext import commands
import aiohttp
class IslandCog(commands.Cog):
def __init__(self, bot):
self.bot = bot
@app_commands.command(name="islands", description="Display live ACNH treasure islands & Dodo codes")
@app_commands.describe(category="Filter by item theme (e.g. diys, materials, maxbells, all)")
async def islands(self, interaction: discord.Interaction, category: str = "all"):
await interaction.response.defer()
url = f"https://genacnh.com/api/v1/public/active-hosts?category={category}&type=free&limit=5"
async with aiohttp.ClientSession() as session:
async with session.get(url) as resp:
if resp.status != 200:
return await interaction.followup.send("โ Could not connect to GenACNH API.")
data = await resp.json()
hosts = data.get("hosts", [])
if not hosts:
return await interaction.followup.send("๐๏ธ No public islands currently open. Check https://genacnh.com/islands.php")
embed = discord.Embed(
title="๐๏ธ GenACNH Live Treasure Islands",
description=f"Showing **{len(hosts)}** active automated islands. Fly via Dodo Code!",
color=0x2DD4BF
)
embed.set_thumbnail(url="https://genacnh.com/images/logo/GenACNH_Logo.png")
embed.set_footer(text="Powered by GenACNH Island Automation Network", icon_url="https://genacnh.com/images/logo/GenACNH_Logo.png")
for isl in hosts:
embed.add_field(
name=f"{isl['name']} ({isl['category_label']})",
value=f"๐ **Dodo:** `{isl['dodo_code']}`\n๐ฅ **Capacity:** {isl['current_visitors']}/{isl['max_visitors']} ({isl['status']})\n๐ [View on GenACNH]({isl['web_url']})",
inline=False
)
await interaction.followup.send(embed=embed)
async def setup(bot):
await bot.add_cog(IslandCog(bot))
WEBHOOK Treasure Island Webhooks & Custom Bot Integration
Building your own hosting software, automation script, or companion bot? GenACNH provides an open, real-time webhook broadcasting pipeline. Whether you are developing in C# (.NET), Python, Node.js, Go, or any other stack, your custom program can broadcast live airport gates, send automated heartbeat pings, stream visitor logs, and announce island closures directly to the GenACNH communityโall via clean, standard HTTP POST requests without needing custom web servers or database setups.
1. Authentication & Program Configuration
First, obtain your dedicated Bot Application Token from your Developer Studio. Store this token securely within your program's configuration (such as an environment variable, appsettings.json, or custom config class):
๐ก Developer Tip: Include your token in the X-Bot-Token HTTP header with every request, and set a custom User-Agent (e.g., MyCustomBot/1.0). GenACNH's Sentinel security engine automatically recognizes and authorizes your program.
2. The 4 Core Island Events to Implement
To give your islanders a seamless experience, trigger outbound HTTP POST requests from your program during these key moments in your host loop:
Gate Opened / New Dodo
When your bot opens the airport gates or generates a new Dodo Code, post to /api/v1/island/update with is_online=1. Your island immediately appears live on islands.php and Discord feeds.
30s Heartbeat Ping
Run an asynchronous recurring timer (every 20 to 30 seconds) sending a lightweight ping to /api/v1/island/heartbeat. This confirms your program is actively running and maintains the green live badge.
Visitor Traffic Logging
When players land or depart, send the updated visitor headcount via current_visitors. This enables live airport queue tracking so visitors can check capacity before boarding flights.
Graceful Offline Notice
When your application shuts down or closes the island gates, send a final update with is_online=0 (or empty Dodo). This instantly unlists the island so visitors never fly into a closed gate.
3. Direct Webhook HTTP Payload Schema
Transmit status updates using standard HTTP POST requests. Both application/x-www-form-urlencoded and application/json payloads are accepted:
Safe Spacing: Send full island updates only when state changes occur. Minimum recommended interval is 3 seconds between updates and 10 seconds between heartbeats.
Token Security: Always keep your bot token private. If compromised, you can regenerate it instantly in your Developer Studio.
Live Preview: As soon as a webhook returns 200 OK, your island is updated across GenACNH live directories, Discord bots, and OBS stream widgets.
POST/api/v1/island/update
Registers or updates Treasure Island status, live Dodo Code, categories, custom banner background, and pass pricing.
Hosters can brand their Treasure Island with a custom photo banner and provide a high-resolution Item Layout Map. When configured, your island displays a ๐บ๏ธ MAP badge in the directory, a Quick Map preview modal, and an interactive zoomable layout guide on the boarding page.
How to Configure Layout Maps
In Developer Portal: Click the Add/Edit Map button next to any of your listed islands.
In Your Bot Configuration: Include "map_url": "https://i.imgur.com/your-item-map.png" in your program's configuration or settings payload.
Via REST API: Pass map_url in your POST /api/v1/island/update payload.
Recommended Specifications
Asset Type
Aspect Ratio
Recommended Resolution
Formats
Island Banner
16:9
1200 x 675 px
JPG, PNG, WEBP
Item Layout Map
1:1 or 4:3
1080 x 1080 px to 2048 x 2048 px
PNG, JPG, WEBP
POST/api/v1/island/heartbeat
Periodic keep-alive ping (call every 30โ60s) to retain online status.
Request Parameters
Param
Type
Req
Description
island_id
int
Yes
ID of the Treasure Island
Response (200 OK)
{
"success": true,
"status": "online"
}
POST/api/v1/island/visitor
Tracks visitor arrivals and departures for real-time capacity monitoring.
Fetch and decode live active treasure islands in Swift for native iOS and iPadOS companion applications:
import Foundation
struct GenACNHResponse: Codable {
let success: Bool
let totalActiveHosts: Int
let freePublicHosts: Int
let hosts: [IslandHost]
enum CodingKeys: String, CodingKey {
case success
case totalActiveHosts = "total_active_hosts"
case freePublicHosts = "free_public_hosts"
case hosts
}
}
struct IslandHost: Codable, Identifiable {
let id: Int
let name: String
let category: String
let categoryLabel: String
let description: String
let dodoCode: String
let isFree: Bool
let status: String
let currentVisitors: Int
let maxVisitors: Int
let availableSlots: Int
let webUrl: String
enum CodingKeys: String, CodingKey {
case id, name, category, description, status
case categoryLabel = "category_label"
case dodoCode = "dodo_code"
case isFree = "is_free"
case currentVisitors = "current_visitors"
case maxVisitors = "max_visitors"
case availableSlots = "available_slots"
case webUrl = "web_url"
}
}
func fetchActiveTreasureIslands(completion: @escaping ([IslandHost]?) -> Void) {
guard let url = URL(string: "https://genacnh.com/api/v1/public/active-hosts?type=free&status=open") else { return }
URLSession.shared.dataTask(with: url) { data, _, error in
guard let data = data, error == nil else {
completion(nil)
return
}
let response = try? JSONDecoder().decode(GenACNHResponse.self, from: data)
DispatchQueue.main.async {
completion(response?.hosts)
}
}.resume()
}
Kotlin (Android Companion Apps)
Query live automated islands using OkHttp or Coroutines in Android applications: