👉 Join our next builder talk: Architecting multi-surface content at Powerhouse Museum

The Live Content API is now Generally Available

The Live Content API is now production-ready for all Sanity users. This enables real-time content delivery at scale with minimal implementation overhead.

  • Knut Melvær

    Knut Melvær

    Head of Developer Community and Education

Published

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:

  • E-commerce: Real-time inventory and pricing updates
  • News/Media: Live content updates without page refresh
  • Sports/Gaming: Live scores and stats
  • Interactive applications: Any scenario requiring immediate content synchronization

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:

  • Leverages our global CDN infrastructure
  • Provides automatic cache invalidation
  • Implements granular update propagation
  • Uses connection pooling for efficient resource management

API Limits and availability

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

  • Free & Team plans: Basic concurrent connection limits
  • Enterprise: Configurable limits and retention periods
  • See the pricing page for detailed quotas

What's next

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

Sanity