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:

Individual forecasts: $0.10 per forecast
Batch forecasts: $0.05 per forecast

๐Ÿš€ 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.