Docs
Real-Time Tweet Monitoring
Receive instant notifications when new tweets are detected from your monitored profiles.
π Quick Start
JavaScript
// 1. Include SignalR library
<script src="https://cdnjs.cloudflare.com/ajax/libs/microsoft-signalr/8.0.0/signalr.min.js"></script>
// 2. Connect to WebSocket
const connection = new signalR.HubConnectionBuilder()
.withUrl('https://api.twtmonitor.com/hub/monitoring')
.withAutomaticReconnect()
.build();
// 3. Listen for new tweets
connection.on('NewTweet', (tweet) => {
console.log('π¦ New Tweet:', tweet);
});
// 4. Connect and subscribe
connection.start()
.then(() => connection.invoke('SubscribeToMonitoring', 'YOUR_API_KEY'))
.then(() => console.log('β
Connected!'));C#
Python
π‘ Endpoint
URL: wss://api.twtmonitor.com/hub/monitoring
π¨ Events
NewTweet
NewTweetFired when a new tweet is detected.
Payload:
Connected
ConnectedConfirmation that you're subscribed.
Payload:
π Handling Disconnections
π¦ Full Example (HTML)
β‘ Performance
Latency: ~5-15ms
Auto-reconnect: Enabled
Multiple profiles: All monitored profiles included
Need help? Check our full documentation or contact support.
Authorizations
X-API-KeystringRequired
Your unique API Key for authentication
Responses
200
OK
No content
get
/websocket200
OK
No content
Last updated

