Price Per Unit Calculator: Amazon, Walmart & Grocery avatar

Price Per Unit Calculator: Amazon, Walmart & Grocery

Pricing

from $1.00 / 1,000 product analyzeds

Go to Apify Store
Price Per Unit Calculator: Amazon, Walmart & Grocery

Price Per Unit Calculator: Amazon, Walmart & Grocery

Works out price per unit (item, load, 100 g, oz, 100 ml, fl oz) from Amazon, Walmart or grocery scraper rows, CSV or Sheet, ranks best value per search and flags overpriced and bigger packs that cost more. Per product. MCP, x402.

Pricing

from $1.00 / 1,000 product analyzeds

Rating

0.0

(0)

Developer

Adam Pearce

Adam Pearce

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

20 days ago

Last modified

Features

Limited permissions

Share

Which product in a search is really the cheapest, once you divide by what is in the pack? Give this actor the product rows your Amazon, Walmart or grocery scraper already returned (a dataset, CSV or Google Sheet) and it reads the pack size from every title, puts every product in a search on one unit and ranks the best value: per item, per load, per 100 g or oz, per 100 ml or fl oz.

A 150 load bottle of detergent can cost more per load than the 100 load bottle of the same brand. A 16 pack of coffee pods can cost more per pod than a 10 pack. A shelf price on special changes the whole ranking. A raw scrape shows prices, not value. This actor shows value, and flags the traps.

No scraping, no login, no AI fees: plain rules on rows you already have, so the same rows always give the same answer, for a tenth of a cent a product.

Who uses it

  • Amazon and Walmart sellers: see where your listing sits per unit against every rival in the search, and whether your bigger pack is priced worse per unit than your smaller one.
  • Deal sites, coupon and comparison sites: the real best value per search, ready to publish.
  • Grocery price trackers and analysts (Woolworths, Coles, ALDI, Tesco, Costco): every product on one unit, on special prices included.
  • Brands and category managers: price ladders by pack size, and which rivals undercut you per unit.
  • AI agents and n8n or Make flows: run the scraper, then ask "which one is the best value?" in one call.

Works with the rows you already have

  • Amazon: junglee/Amazon-crawler, apt_marble/amazon-search-results-scraper and look-alikes. junglee search rows hide Amazon's own unit price in getPriceBeforeDiscount; this actor spots that and reports it as storeUnitPrice, not as an old price.
  • Walmart, Target and grocery scrapers (Woolworths, Coles, ALDI, Tesco, Costco and others): a lower discount_price or special price is used as the paying price, and the store's own unit price ($4.25 / 1L) is read and checked against ours.
  • Your own sheet: one row per product with a title (or name) and a price, plus optional size, brand, url and a search or category column. Column names are read loosely, and money objects like {value, currency} are understood.

How it works (plain words)

  1. The pack size is read from the title and any size column: counts (ct, pods, capsules, tablets, sheets, rolls, servings), loads or washes, g, kg, oz, lb, ml, l, fl oz, gallons, and multipacks ("Pack of 6", "6 x 330 ml", "45 Ct, 2 Pack", "1.5L x 6"). Screen sizes, watts, months and the like are ignored.
  2. Products are grouped by their search term or category (or the column you choose).
  3. Each group is put on one unit: the unit most products in it have. For detergent, per load wins over per fl oz, because loads are what you buy. Imperial units are used when most of the group is imperial.
  4. Ranked cheapest per unit first, with the gap to the group median: best value, good value, fair, overpriced, very overpriced.
  5. Bigger-pack traps: a bigger pack of the same brand that costs more per unit than a smaller one is flagged, with the smaller pack named.

What you get

One row per product, cheapest per unit first within each group:

FieldWhat it means
group, rankInGroup, groupComparedThe search or group, the rank in it, and how many were compared
verdictbest_value, good_value, fair, overpriced, very_overpriced, not_compared
title, brand, id, urlThe product
price, currencyThe paying price (a lower special price wins)
unitPrice, unitLabelPrice on the group's one unit, e.g. 0.1597 per load
groupMedianUnitPrice, gapPctThe group median and how far above or below it this product is
sizeRead, quantityThe pack size read, and the words it came from
storeUnitPriceThe unit price the store showed, and which unit it matches
flagse.g. bigger_pack_costs_more_per_unit, size_not_found, other_unit_only
whyOne plain line explaining the verdict

The OUTPUT record: products read and compared, and per group the unit used, median, cheapest, dearest, spread (dearest divided by cheapest), overpriced count, bigger-pack traps and notes.

Input

FieldWhat it does
DatasetsOne or more product scraper datasets (in an integration, {{resource.defaultDatasetId}})
File or Google Sheet URLCSV, Excel, JSON or JSON Lines
Product rowsRows as JSON, for a quick run or an AI agent call
Compare within this columnGroup by a column, or all to compare everything together
Compare onAuto, or force per item, per load, per weight or per volume
Overpriced above the median by25% by default
Minimum products to compare3 by default
Only overpriced and bigger-pack trapsJust the problems
Keep my columnsCopies your input row into each output row
Also save as a fileCSV or Excel copy
Also append to a named datasetTrack unit prices across weekly runs

Run it with no input and it analyzes a public example file (made-up brands), so you can see the output first.

Pricing

Pay per event, no subscription:

  • $0.001 per product read with a title and a price (1,000 products = $1). Rows without a title or price are free.
  • $0.01 per CSV or Excel file, only if you ask for one.

Agent-ready

Pay per event, limited permissions and plain JSON in and out, so AI agents can call it through the Apify MCP server or pay per call with x402 at the Nero Labs Agent Tools shop (POST /unit-price).

FAQ

Does it scrape Amazon or the store? No. It only reads rows you already have, so it never logs in or touches a store.

Is it AI? No. Fixed rules, so results are fast, cheap and repeatable.

Why was a product not compared? No pack size was found in its title or size columns, or it only had a different unit from the rest of its group (it then gets otherUnitPrice).

Which currencies? Any. Products are only compared with others in the same currency.

If it saved you money or time, a review on the Apify Store helps a lot.