Live Content API
The Live Content API is perfect for fast-moving events like sports, news, and commerce. Deliver real-time experiences easily and at scale.
The Live Content API allows you to deliver live, dynamic experiences to your users without the complexity and scalability challenges that typically come with building real-time functionality. It is available on all plans, including free plans. See the pricing page for usage details.
With the Live Content API, you can:
- Subscribe to changes and receive notifications whenever documents are created, updated, or deleted.
- Efficiently query for the exact content you need, and only receive updates for that content.
- Scale to handle high volumes of live updates, even during peak traffic periods.
The Live Content API is designed to integrate into your existing application. It provides an interface for subscribing to content changes and receiving real-time updates.
Usage limits and live requests
Active listeners are part of the Live Content API usage, but new requests contribute to your API CDN usage quota.
Requests should use site-wide caching techniques to minimize unnecessary requests and prevent unexpected usage spikes. The next-sanity
client does this automatically.
Start implementing the Live Content API by following one of our guides or experimenting with an example project.