Evaluate Multiple Prices API Endpoint
We've launched a new API endpoint that enables you to evaluate the output of multiple prices for a given customer and time range. This powerful endpoint supports up to 100 prices in a single request, helping you build more detailed usage dashboards and audit invoice calculations.
Key capabilities:
- Evaluate up to 100 prices in a single API call for improved performance
- Use ingested or preview events - evaluate against real usage data or test with up to 500 preview events
- Advanced filtering and grouping with computed properties for granular analysis
- Inline price definitions - test new pricing models without creating them first
Common use cases:
- Build detailed usage breakdowns for customer dashboards
- Audit and verify invoice line item subtotals
- Test pricing changes before implementation
- Display usage patterns grouped by custom dimensions (e.g., by hour, region, or product feature)
Example grouping: Group usage by hour and custom property: ["hour_floor_timestamp_millis(timestamp_millis)", "region"]
Example filtering: Filter for specific usage: product_type = 'premium' AND region = 'us-east'
The endpoint is available now at POST /prices/evaluate
. Check out our Querying data with SQL page for additional details and examples.