Prerequisites
Before you begin, make sure you have:- A Scrapest account (sign up at admin.scrape.st)
- Basic familiarity with APIs and webhooks
- A server or application that can receive HTTP requests
Step 1: Get Your API Key
- Sign in to the Scrapest Dashboard
- Navigate to API Keys in the sidebar
- Click Generate New API Key
- Give your key a descriptive name (e.g., “My First Integration”)
- Copy the API key and store it securely
Step 2: Choose Your Integration Approach
Scrapest offers several ways to access data from Twitter/X, Telegram, and Discord. Choose the one that best fits your use case:Webhooks (Recommended for most applications)
- Best for: Real-time event-driven applications
- How it works: We send data to your endpoint when events occur
- Setup time: 5-10 minutes
Streaming (For real-time applications)
- Best for: High-frequency data needs, live dashboards
- How it works: Maintain persistent connection for continuous data flow
- Setup time: 10-15 minutes
REST API (For on-demand access)
- Best for: One-time queries, user lookups, specific data retrieval
- How it works: Make HTTP requests when you need data
- Setup time: 2-5 minutes
Step 3: Set Up Your First Integration
Option A: Webhook Integration
- Create a webhook endpoint on your server:
- Register the webhook using our API:
- Start tracking a user or channel:
Option B: REST API Integration
- Make your first API call to get user information:
- Get specific tweet information:
Option C: Streaming Integration
- Set up WebSocket connection:
Step 4: Test Your Integration
Verify Webhook Delivery
- Create a test post from a tracked account/channel
- Check your server logs for the webhook payload
- Verify the data format and content
Test API Calls
Test Streaming
Set Up Monitoring
- Monitor webhook delivery success rates
- Track API usage and rate limits
- Set up alerts for failures or unusual activity
Scale Your Integration
- Implement retry logic for failed requests
- Use caching for frequently accessed data
- Consider batch processing for high-volume needs
Common Integration Patterns
Social Media Dashboard
Analytics Pipeline
Troubleshooting Common Issues
Webhook Not Receiving Data
- Check that your webhook URL is publicly accessible
- Verify your server responds with 200 OK status
- Ensure webhook is active in your dashboard
API Authentication Errors
- Verify your API key is correct and active
- Check that you’re using the correct endpoint URL
- Ensure API key has required permissions
Rate Limiting
- Implement exponential backoff for retries
- Monitor your usage in the dashboard
- Consider upgrading your plan for higher limits
Streaming Connection Issues
- Check your network connectivity
- Verify WebSocket headers are correct
- Implement automatic reconnection logic
Best Practices
Security
- Store API keys securely (environment variables, secret managers)
- Use HTTPS for all webhook endpoints
- Validate incoming webhook signatures
- Implement rate limiting on your endpoints
Performance
- Use appropriate data structures for high-volume processing
- Implement caching for frequently accessed data
- Use connection pooling for API requests
- Monitor and optimize your integration regularly
Reliability
- Implement comprehensive error handling
- Use retry logic with exponential backoff
- Set up monitoring and alerting
- Have backup plans for service disruptions
Next Steps
Now that you have your first integration working:- Explore Advanced Features: Learn about streaming options
- Review API Documentation: Check the REST API Reference
- Set Up Monitoring: Configure health monitoring
- Join the Community: Get help and share your experiences
Need Help?
- Documentation: Complete guides and API references
- Support Team: support@scrape.st
- Community: Discord and GitHub discussions
- Status Page: Real-time system status
Ready to explore more advanced features? Check out our Advanced Features guide.