The Live Content API is now Generally Available (ssr)

Written by Knut Melvær

Missing Image!

We launched the beta of the Live Content API in Fall 2024. It has graduated from beta and is now production-ready for all Sanity users. This release enables real-time content delivery at scale with minimal implementation overhead.

What is the Live Content API?

The Live Content API solves the challenge of delivering real-time content updates to a large audience without complex infrastructure or performance bottlenecks. It provides a simple API surface that lets you subscribe to content changes and automatically update your applications when content changes.

Watch this talk from Next.js Conf 2024 to learn about Live by default web experiences:

Key features

Implementation example

Here's how easy it is to implement live product updates in Next.js:

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>
   );
}

Powerful use cases

The Live Content API enables seamless real-time experiences across various domains:

Technical resources

Ready to implement live content updates? We've got you covered:

How it works

Scaling and performance

The Live Content API is built on our robust infrastructure to deliver exceptional performance:

API Limits and availability

The Live Content API is available on all plans with the following considerations:

What's next

Get started with live content delivery today! Check our documentation for detailed implementation guides and best practices.