⚡️ Today OpenSea is launching a beta version of the Stream API, a new websocket-based service that enables developers to receive events as they occur across our marketplace.
We’ve built the Stream API to support a range of use cases that rely on dynamic data, such as price fluctuation, listings, bids and ownership changes. Instead of polling for updates, you subscribe to receive events as they occur.
Developer docs: https://docs.opensea.io/reference/stream-api-overview
The Stream API makes it easier to build new features such as:
- Push notifications to alert people when they receive new bids
- Activity feed that provides a timelines of sales from a collection
- Real-time dashboard that visualizes key trends and metrics
We’ve created a JavaScript SDK to manage connections and subscriptions to the Stream API and its events: https://github.com/ProjectOpenSea/opensea-stream-js-sdk
And a example where we’ve used the Stream API to send events to a Discord webhook: https://github.com/ProjectOpenSea/opensea-stream-discord-webhook
To learn more, check out our blog post: https://nft.mirror.xyz/HhXSvsS7ZhVns6FuJB1rUGP53gW-qDVCv5gfx9cDGco
Reach out on Discord if you have any questions, issues or feedback.
We can’t wait to see what you build!🏗️
Top comments (0)