Get sales data is a WordPress ability from Burst Statistics — usable via Easy MCP AI, which connects Claude, ChatGPT, and any AI assistant to your site.

Install Free Plugin →

Get sales data

Read-only

Return ecommerce sales metrics — products, sale counts, and revenue — for a date range (Burst Pro only).

Requires the Burst Statistics plugin on WordPress 6.6+. All abilities register only when the 'Enable Abilities API' setting is turned on in Burst, and the current user needs the 'manage_burst_statistics' capability. The sales-data and subscriptions-data abilities additionally require Burst Pro (the BURST_PRO constant) to be active.

What it does

This ability returns Burst Pro's ecommerce sales datatable, grouped by product by default, with sales count and revenue metrics filtered to purchase-type transactions. Optional date_start/date_end, metrics, filters, group_by, and limit (1-500) inputs let you narrow or reshape the query, and requested metrics are validated against Burst's datatable allow-list. It requires Burst Pro to be active and returns a 503 error otherwise, letting an AI assistant pull ecommerce performance numbers directly instead of opening a separate sales report.

See it in action

You ask your AI assistant

"Which products generated the most revenue in Burst over the last quarter?"

Inputs

Name Type Required Description
date_start integer No Unix timestamp for start date.
date_end integer No Unix timestamp for end date.
metrics array No Metrics to retrieve. Defaults to product, sales, and revenue.
filters array No Additional filter objects for sales retrieval.
group_by array No Grouping columns for sales results. Defaults to product.
limit integer No Maximum number of rows to return (1-500). Defaults to 100.

Returns

An object with 'dimensions', 'metrics', 'rows' (grouped product sales rows filtered to purchase-type transactions), and 'row_count'.

Permission

The current user must have the 'manage_burst_statistics' capability, and Burst Pro must be active (the BURST_PRO constant defined) or the ability returns a 503 error. The ability is registered only when Burst's 'Enable Abilities API' setting is on.

Newsletter

The AI + WordPress space moves fast. Keep up.

New tools, workflow ideas, and product updates — be the first to know what's next.

No spam, unsubscribe anytime.