Get WooCommerce Top Sellers Report
woocommerce_get_top_sellers_reportRetrieve top-selling products by quantity sold for a period or custom date range. Returns product ID, title, and quantity ordered.
Instructions
Retrieve the best-selling products (by quantity sold) for a period or custom date range.
Args:
period: 'week'|'month'|'last_month'|'year' (optional; omit if using date_min/date_max)
date_min / date_max (string, optional): YYYY-MM-DD custom range, overrides 'period'
response_format ('markdown'|'json'): default 'markdown'
Returns: list of products with product_id, title, and quantity sold, ordered by quantity descending. Defaults to the current week if no period/range given.
Examples:
Use when: "what were our best selling products this year" -> period="year"
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| period | No | Predefined period: 'week', 'month', 'last_month', 'year'. Overridden by date_min/date_max if provided. | |
| date_max | No | End date (YYYY-MM-DD), for a custom range | |
| date_min | No | Start date (YYYY-MM-DD), for a custom range | |
| response_format | No | Output format: 'markdown' for human-readable text or 'json' for machine-readable structured data | markdown |