apps/docs/content/guides/storage/analytics/creating-analytics-buckets.mdx
This feature is in Private Alpha. API stability and backward compatibility are not guaranteed at this stage. Request access through this form.
</Admonition>Analytics buckets use Apache Iceberg, an open-table format for efficient management of large analytical datasets. You can interact with analytics buckets using tools such as PyIceberg, Apache Spark, or any client supporting the Iceberg REST Catalog API.
<Admonition type="note" title="About replication">Analytics Buckets are still available, but replication into Analytics Buckets via Supabase Pipelines is no longer supported. If you want to use Analytics Buckets, bring your own ingestion pipeline.
</Admonition>You can create an analytics bucket using either the Supabase SDK or the Supabase Dashboard.
<Tabs scrollable size="small" type="underlined" defaultActiveId="javascript" queryGroup="language"
<TabPanel id="javascript" label="JavaScript">
import { createClient } from '@supabase/supabase-js'
const supabase = createClient('https://your-project-id.supabase.co', 'your-service-key')
const { data, error } = await supabase.storage.analytics.createBucket('analytics-data')
if (error) {
console.error('Failed to create analytics bucket:', error)
} else {
console.log('Analytics bucket created:', data)
}
from supabase import create_client
supabase = create_client('https://your-project-id.supabase.co', 'your-service-key')
response = supabase.storage.analytics().create('analytics-data')
print('Analytics bucket created:', response)
my-analytics-bucket).<Image alt="Create Analytics Bucket in Dashboard" width="644" height="402" src="/docs/img/storage/iceberg-bucket.png" />
Once you've created your analytics bucket, you can: