Homeโ€บQuery Libraryโ€บAmazon

Are you winning the buy box on your most important ASINs?

Buy box percentage is one of the strongest predictors of Amazon sales velocity. This query pulls it from your Sales & Traffic data and ranks your ASINs by buy box performance.

๐Ÿ“Š Amazon Seller Central๐Ÿ‘ฅ Amazon FBA sellers๐Ÿ”ค Plain-English โ†’ SQL
Part of the Explore all Amazon analytics queries โ†’

This is part of the Taptic Data Amazon query library. Explore related queries: SQL query for Amazon return rate by SKU, SQL query for Amazon net margin after FBA fees, SQL query for Amazon buy box percentage by ASIN, and more.

Show me buy box percentage by ASIN for the last 30 days, ranked worst to best
โ†“
Amazon Buy Box Percentage by ASIN โ€” generated by Taptic Data AI
SELECT
  asin,
  ROUND(AVG(buy_box_percentage) * 100, 2)  AS avg_buy_box_pct,
  SUM(units_ordered)                        AS units_ordered,
  ROUND(SUM(ordered_product_sales_amount), 2) AS revenue,
  COUNT(DISTINCT date)                      AS days_tracked
FROM amazon_sales_traffic
WHERE date::date >= CURRENT_DATE - INTERVAL '30 days'
  AND buy_box_percentage IS NOT NULL
  AND asin IS NOT NULL
GROUP BY asin
HAVING COUNT(DISTINCT date) >= 7
ORDER BY avg_buy_box_pct ASC
LIMIT 50
Schema-aware SQL generated from plain English14 lines

This query was generated by Taptic Data from plain English against a real Amazon Seller Central schema. In Taptic, you type the question โ€” the AI writes the SQL, runs it, and returns the result. You can edit the SQL, ask for explanations, and save it as a refreshable report. This type of analysis is commonly used in amazon fba analytics and ecommerce alerts.

Breaking it down line by line

  1. Reads from amazon_sales_traffic which contains daily ASIN-level performance metrics from the Business Reports API
  2. Averages buy_box_percentage across days and multiplies by 100 for percentage display
  3. HAVING clause filters to ASINs with at least 7 days of data โ€” removes noise from newly listed products
  4. Orders ascending (lowest buy box first) so your most at-risk ASINs appear at the top
  5. Includes revenue and units to help you prioritize which low-buy-box ASINs matter most

Result description

A ranked table of ASINs with their average buy box percentage, units ordered, revenue, and days tracked โ€” sorted worst-first so you can immediately identify and act on at-risk listings.

The business impact

Winning the buy box is the difference between making sales and watching a competitor make them on your own listing. Amazon's algorithm weights price, fulfillment speed, and seller metrics. A sudden drop in buy box % is an early warning signal that requires immediate investigation.

New to this metric? What is the Amazon buy box? โ€” definition, formula, and business context.

All queries and use cases on this page relate to analyzing your Amazon Seller Central data in Taptic. To see the full analytics workflow, explore amazon fba analytics, ecommerce alerts.

Common questions

How do I generate a "Amazon Buy Box Percentage by ASIN" query automatically?
In Taptic Data, type "Show me buy box percentage by ASIN for the last 30 days, ranked worst to best" and the AI generates schema-aware SQL against your real Amazon Seller Central data โ€” no manual writing required.
What database does this query work with?
This query is designed for Amazon Seller Central. Taptic reads your live schema so the generated SQL always matches your actual table and column names.
Can I edit the generated SQL?
Yes. Taptic shows you the exact SQL it generated. You can edit it directly, ask the AI to explain any line, or request a revision in plain English.
Can I save this as a scheduled report?
Yes. Once you run this query in Taptic, you can save it as a report, add charts and KPIs, and schedule it to email your team on any cadence โ€” daily, weekly, or monthly.

Skip the SQL. Ask the question.

In Taptic Data, you type "Show me buy box percentage by ASIN for the last 30 days, ran..." and this SQL runs automatically against your real Amazon Seller Central data.

Try Taptic Free โ€” $29.99/mo

No credit card required. Connect your data source in under 5 minutes.

Next step
Run this query on your own Amazon Seller Central data
Connect ๐Ÿ›’ Amazon Seller Central to Taptic Data and this SQL generates automatically from plain English โ€” against your real schema, your real tables.
Analytics hub
More Amazon queries, use cases, and analytics resources in one place.
Explore all Amazon analytics queries โ†’