---
updatedAt: 2025-09-24T23:44:58.000Z
agentTools:
  projectIndex: https://docs.zettablock.com/llms.txt
---

# Creating Custom Real-Time APIs

Learn how to create your first custom real-time API using our flexible query builder.

Real-time APIs are crucial for applications requiring up-to-the-second data. Follow these steps to set up a real-time API using ZettaBlock.

## Step 1: Choose a real-time table

To begin, select a table marked with the ⚡️ symbol, indicating this table has real-time support. Example real-time tables include any Ethereum table, Beacon chain tables, price tables and others.

<Image align="center" width="30%" src="https://files.readme.io/f0f6906-image.png" />

## Step 2: Run the query on the real-time database

<Image align="center" src="https://files.readme.io/ebb6b60-Screenshot_2024-04-19_at_14.27.02.png" />

## Step 3: Choose the refresh interval as "real-time"

Set the refresh interval of your API to "real-time" to ensure continuous data updates. Additionally, select your indexing columns and primary key as usual to optimize API performance and response times.

<Image align="center" src="https://files.readme.io/e2ffedd-Screenshot_2024-04-19_at_14.28.31.png" />

<br />