Skip to main content

Advanced Features

Once you’re comfortable with the basics, Scrapest offers powerful advanced features for sophisticated integrations and high-performance applications.

Real-Time Streaming

WebSocket Connections

For applications requiring instant data delivery and bidirectional communication: WebSocket Documentation
const ws = new WebSocket("wss://scrape.st/ws", [], {
  headers: { "x-api-key": "YOUR_API_KEY" },
});

ws.onmessage = (event) => {
  const data = JSON.parse(event.data);
  // Process real-time data
};
Use Cases:
  • Live dashboards and monitoring
  • Real-time analytics
  • Interactive applications
  • High-frequency trading

Server-Sent Events (SSE)

For unidirectional real-time data with automatic reconnection: Public SSE - Free, public data with privacy protection Private SSE - Full data access with token authentication
const eventSource = new EventSource("https://scrape.st/stream/private?token=TOKEN");
eventSource.onmessage = (event) => {
  const data = JSON.parse(event.data);
  // Process streaming data
};

Next Steps

Ready to dive deeper into specific features?
Need help with a specific advanced feature? Check our detailed documentation or contact support.