Check if a price is a good deal
check_dealCheck if a product's current price is a good deal by comparing it to historical average, lowest, and highest prices for a given period.
Instructions
Rate whether a product's current price is a good deal compared with its recorded price history, with the average, lowest and highest price in the period. History builds up each time CartScout reads the product, so a product seen for the first time has little to compare against.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Full URL of one product page, e.g. https://www.allbirds.com/products/mens-tree-runner-nz-ochre | |
| days | No | Period to compare against, capped by the plan. | |
| refresh | No | Fetch the current price first so the rating includes today (1 extraction). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| days | Yes | Days of history analyzed, limited by the plan. | |
| verdict | Yes | One-sentence explanation of the rating. | |
| currency | No | ||
| refreshed | No | True when the current price was fetched just before rating. | |
| data_points | No | ||
| deal_rating | Yes | How the current price compares with its recorded history, from the lowest price in the period through great, good and fair to high; insufficient_data while the product has less than a day of history. | |
| lowest_price | No | ||
| average_price | No | Time-weighted average price over the period. | |
| current_price | No | ||
| highest_price | No | ||
| price_changes | No | ||
| lowest_price_at | No | ||
| highest_price_at | No | ||
| in_stock_percent | No | ||
| last_observed_at | No | ||
| percent_vs_average | No | ||
| current_availability | No | unknown |