Sanity Pioneers: Get early access to betas, extra AI credits, and a direct line to the engineering team. Apply now
Live Content API

Instant, real-time content delivery at scale

Build live experiences with minimal effort.

Read the docs
import { client } from "@/sanity/client";
import { defineLive } from "next-sanity";

const { sanityFetch, SanityLive } = defineLive({ client });

export default async function Page() {
  const {data: products} = await sanityFetch({ query: PRODUCTS_QUERY });

  return (
    <section>
      {products.map((product) => (
        <article key={product._id}>
          <a href={`/product/${product.slug}`}>{product.title}</a>
        </article>
      ))}
      <SanityLive />
    </section>
  );
}

API-fresh, CDN-fast

Now, it’s just live by default. Sanity has absolutely come in to crush it with this one!

Sonny Sangha

Youtuber

Why build apps any other way?

Learn more

Explore the Next.js track on Sanity Learn

Start learning
illustration of Sanity Learn interface
Course by Sonny Sangha

Build a Real-Time E-Commerce App with the Live Content API

Watch the course

Get started in minutes

Real-time updates made easy on every plan. Start building today!