Batch Processing
๐ฐ Save 50% on Costs with Batch Processing
Process multiple forecasts in a single request and significantly reduce your API costs while gaining access to advanced analytics and insights.
Pricing Comparison at highest tier:
๐ Key Benefits
Cost Efficiency
- โ 50% cost reduction per forecast
- โ No minimum batch size requirements
- โ Pay only for what you use
Enhanced Analytics
- โ ABC classification analysis
- โ Customer concentration insights
- โ Price elasticity analysis
Performance
- โ Parallel processing for faster results
- โ Reduced network overhead
- โ Scalable to thousands of forecasts
Advanced Features
- โ Webhook support for async processing
- โ Better accuracy through more training time
- โ Batch-level statistics and insights
๐ Advanced Analytics (Batch Only)
ABC Classification
Automatically categorize your items into A, B, and C categories based on forecast values to prioritize inventory management and resource allocation.
Customer Concentration
Identify your most valuable customers and understand revenue distribution across your customer base for strategic planning.
Price Elasticity
Analyze how price changes affect demand patterns to optimize pricing strategies and maximize revenue.
๐ง Technical Specifications
Request Limits
- Maximum entities per batch: 1,000
- Supported data types: JSON
- Compression: GZip supported
Response Format
- Individual forecasts: Full forecast data for each item
- Batch summary: Aggregated statistics
- Analytics: ABC classification, concentration analysis, more
- Processing time: Included in response
๐ก Best Practices
Optimizing Batch Performance
-
โข
Group similar data types: Combine items with similar forecasting patterns for better method selection.
-
โข
Use appropriate batch sizes: Balance between cost savings and processing time requirements.
-
โข
Leverage webhooks: Use asynchronous processing for large batches to avoid timeout issues.
-
โข
Monitor batch analytics: Use the provided insights to optimize your forecasting strategy.
๐ Example Usage
curl -X POST "https://api.forecastapi.com/v2/batch/forecast" \
-H "Authorization: Bearer your-api-key" \
-H "Content-Type: application/json" \
-d '{
"forecasts": [
{
"data": [
{"date": "2024-01-01", "value": 100},
{"date": "2024-02-01", "value": 150}
],
"frequency": "M",
"data_type": "sales",
"periods": 3
},
{
"data": [
{"date": "2024-01-01", "value": 200},
{"date": "2024-02-01", "value": 180}
],
"frequency": "M",
"data_type": "sales",
"periods": 3
}
],
"options": {
"include_analytics": true,
"confidence_level": 0.95
}
}'
๐ฏ Getting Started
Ready to start saving with batch processing? Check out our API reference for detailed endpoint documentation and examples.