Command Palette
Search for a command to run...
Sandbox vs Production
Key differences between sandbox and production APIs
Quick Comparison
Detailed Comparison
| Feature | Sandbox | Production |
|---|---|---|
| Base URL | /api/v1/sandbox/* | /api/v1/public/* |
| Data Source | Mock Data | Real Breaches |
| Authentication | Required | Required |
| Rate Limits | 300/min | 300/min |
| Billing | Free | Charged |
| Response Time | ~50ms | 100-2000ms |
| Data Freshness | Static | Live Updates |
| Result Accuracy | Mock | Real Intelligence |
When to Use Each Environment
Development & Testing
Build and debug your integration
Learning the API
Understand data structures and responses
Client Demos
Show functionality without real data
CI/CD Pipelines
Automated testing without costs
Load Testing
Test performance without billing
Live Applications
Production workloads with real users
Security Investigations
Real breach intelligence research
Compliance Monitoring
Ongoing breach monitoring
Threat Intelligence
Current breach data analysis
Customer Notifications
Alert users about real breaches
Key Differences in Detail
Sandbox
- • Generated mock data with realistic patterns
- • Consistent, predictable responses
- • Fixed breach dates and sources
- • No personally identifiable information
- • Same data structure as production
Production
- • Real breach data from actual incidents
- • Continuously updated database
- • Variable result sets based on query
- • Contains sensitive information
- • Billions of real breach records
Sandbox
- • No charges or billing
- • Mock balance responses ($25.00)
- • Mock usage statistics
- • Unlimited testing (within rate limits)
- • Perfect for development budgets
Production
- • Charged per row returned
- • Real balance deduction
- • Actual usage tracking
- • Cost optimization important
- • Subscription plans and limits
Sandbox
- • Ultra-fast responses (~50ms)
- • No database queries
- • Consistent performance
- • Ideal for rapid development
- • No infrastructure scaling needed
Production
- • Variable response times (100-2000ms)
- • Complex database operations
- • Performance depends on query complexity
- • Optimized for accuracy over speed
- • Auto-scaling infrastructure
Transitioning from Sandbox to Production
Moving from development to production is designed to be seamless. Here's what you need to change:
From (Sandbox):
https://api.leakzero.io/api/v1/sandbox/search/regularTo (Production):
https://api.leakzero.io/api/v1/public/search/regularProduction may return different error patterns than sandbox:
- • Insufficient balance errors
- • Rate limit variations under load
- • Data-dependent validation errors
- • Network timeout handling
Set up monitoring for production usage to track costs and performance:
- • Regular balance checks
- • Usage pattern analysis
- • Cost optimization opportunities
- • Performance monitoring
Best Practices
Use environment variables to manage endpoints:
# Development
API_BASE_URL=https://api.leakzero.io/api/v1/sandbox
# Production
API_BASE_URL=https://api.leakzero.io/api/v1/public