---
title: 'Create an analytics bucket'
subtitle: 'Set up your first analytics bucket using the SDK or dashboard.'
description: 'Create an analytics bucket in your Supabase project with the SDK or the Dashboard, then store Apache Iceberg tables in it and query them with Iceberg clients.'
---
Create an analytics bucket to store large analytical datasets as Apache Iceberg tables.
This feature is in **private alpha**. API stability and backward compatibility are not guaranteed at this stage. Request access through the [Analytics Buckets request form](https://forms.supabase.com/analytics-buckets).
## Overview
Analytics buckets use [Apache Iceberg](https://iceberg.apache.org/), an open-table format for efficient management of large analytical datasets. You can interact with analytics buckets using tools such as [PyIceberg](https://py.iceberg.apache.org/), [Apache Spark](https://spark.apache.org/), or any client supporting the [Iceberg REST Catalog API](https://editor-next.swagger.io/?url=https://raw.githubusercontent.com/apache/iceberg/main/open-api/rest-catalog-open-api.yaml).
<$Partial path="pipelines-replication-unsupported.mdx" />
## Procedure
You can create an analytics bucket using either the Supabase SDK or the Supabase Dashboard.
### Using the Supabase SDK
To create the bucket in code, run the following in the language you use:
```typescript
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)
}
```
<$Show if="sdk:python">
```python
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)
```
$Show>
### Using the Supabase Dashboard
To create the bucket in the Dashboard:
1. Navigate to the **Storage** section in the Supabase Dashboard.
2. Click **Create Bucket**.
3. Enter a name for your bucket (e.g., `my-analytics-bucket`).
4. Select **Analytics Bucket** as the bucket type.
5. Click **Create**.
## Next steps
After you create your analytics bucket, you can:
- [Connect with Iceberg clients](/docs/guides/storage/analytics/connecting-to-analytics-bucket) like PyIceberg or Apache Spark
- [Query data with Postgres](/docs/guides/storage/analytics/query-with-postgres) using the Iceberg Foreign Data Wrapper
## Related resources
To read more about Analytics Buckets, see these pages:
- [Analytics Buckets](/docs/guides/storage/analytics/introduction): learn what they store and how they work.
- [Limits](/docs/guides/storage/analytics/limits): check the quotas that apply to your buckets.