How it works
SocialRouter monitors every extraction request and records:- Success/failure rate per provider, platform, and extraction type
- Response times to detect degraded performance
- Error patterns to identify systemic issues
Automatic failover
When the primary provider returns an error, SocialRouter transparently retries with the next available provider:- Request sent to primary provider (cheapest or preferred)
- Provider returns an error
- SocialRouter selects a fallback provider
- Retry with fallback — if it succeeds, you get the result
- You are only charged for the successful extraction
provider field so you know which provider fulfilled the request.
Failover is transparent. Your code doesn’t need to handle retries — SocialRouter does it for you.
Customizing provider selection
Let SocialRouter decide (default)
Smart routing picks the cheapest available provider and falls back automatically. Best for most use cases.Pin to a provider
If you know a provider is more reliable for your specific use case:Per-key credit limits for safety
Use per-key credit limits to prevent runaway costs if a provider starts returning errors and triggering repeated fallbacks:- Set a
dayorhourlimit on keys used in automated pipelines - Monitor usage via the usage endpoint
Best practices
Use automatic routing for production
Let SocialRouter handle provider selection and failover. This maximizes uptime with zero effort.
Monitor your extractions
Check the usage endpoint regularly to spot changes in provider distribution — a sudden shift might indicate a provider issue.
Set up credit limits on automated keys
Automated pipelines should have per-key credit limits to cap costs in case of unexpected provider behavior.