How BAPC Pretijya collects and compares prices
1. Collection, and the terms of use of every source
The owner's rule: collection must respect each website's terms of use. For every source BAPC records the terms page, the clause that allows or forbids automated access and reuse, the robots.txt result, the decision, who decided and when it must be reviewed again. Before every request the software checks that the decision is "allowed", the review is not overdue, robots.txt does not forbid the path, and the source is approved; otherwise it refuses and records the run as blocked with the reason. BAPC never logs in to a shop's website and never scrapes pages whose terms forbid it.
| Source | Decision | Terms and the clause that decides | robots.txt | Decided by, on | Next review | Waiting for |
|---|---|---|---|---|---|---|
| Open Prices (Open Food Facts) | Allowed: collected | openfoodfacts.github.io/open-prices/guides/API/ | none published | Bryan Sims (owner): "create these six apps", 23 Nov 2026; terms reviewed by the Pretijya builder | 2027-02-23 | — |
| Amazon Creators API | Refused: terms forbid | affiliate-program.amazon.com/help/operating/policies | not applicable | Pretijya builder for Bryan Sims (owner), 23 Nov 2026 | 2027-05-23 | Waiting for: Amazon Associates account with 10 qualifying sales in 30 days, Creators API credentials, and Amazon's prior written approval for aggregation and resale. |
| Best Buy Products API | Refused: terms forbid | developer.bestbuy.com/legal | not applicable | Pretijya builder for Bryan Sims (owner), 23 Nov 2026 | 2027-05-23 | Waiting for: A written data licence from Best Buy allowing price analysis and resale (no public offer exists). |
| Kroger Products API | Not collected: waiting | developer.kroger.com | none published | Pretijya builder for Bryan Sims (owner), 23 Nov 2026 | 2027-01-23 | Waiting for: A Kroger developer account (free) so the API terms can be read; then the owner decides. Resale very likely needs a written Kroger licence. |
| Licensed retailer and brand feeds | Not collected: waiting | pretijya.bapc.app/method#licensed-feeds | not applicable | Pretijya builder for Bryan Sims (owner), 23 Nov 2026 | 2027-05-23 | Waiting for: A signed feed licence from at least one retailer or brand (BAPC Data Licence, feed schedule). |
| Target.com | Refused: terms forbid | www.target.com/terms | not applicable | Pretijya builder for Bryan Sims (owner), 23 Nov 2026 | 2027-05-23 | Waiting for: A written data licence from Target. |
| Walmart affiliate product API | Refused: terms forbid | affiliates.walmart.com/terms | not applicable | Pretijya builder for Bryan Sims (owner), 23 Nov 2026 | 2027-05-23 | Waiting for: A written data licence from Walmart (for example through Walmart Data Ventures) allowing price tracking and resale. |
| eBay Browse API | Refused: terms forbid | developer.ebay.com/develop/apis/api-license-agreement | not applicable | Pretijya builder for Bryan Sims (owner), 23 Nov 2026 | 2027-05-23 | Waiting for: Written permission from eBay for price analytics and resale (eBay Developers Program, application keys plus a separate agreement). |
Licensed feeds. A retailer or brand can license its own product feed (the Google Merchant Center product data format it already produces) to BAPC in writing. The feed is read once a day only while the licence reference is recorded.
Open Prices. Prices people saw in shops and online, with the barcode, date and shop, shared under the Open Database License. BAPC Pretijya reads them through the documented API with a named User-Agent and a pause between pages, and never stores who contributed a price or their photo. Coverage depends on contributors, so some products and days have no price: a missing day is shown as missing, never filled in. Prices from Open Prices (prices.openfoodfacts.org), made available under the Open Database License (ODbL) 1.0. Thank you to the Open Food Facts contributors.
2. Daily price, promotion and stock tracking
One row per listing (a product at a retailer, per shop where prices differ by shop) per day: list price, sale price, the price a shopper pays, the promotion type (percent off, amount off, multi-buy, buy-one-get-one, clearance, rollback, coupon, loyalty price, sale) and the retailer's own words, unit price (per kg, per litre or each), stock (in stock, limited, out of stock, or unknown when the source does not say) and shipping cost where the source gives it. A daily round runs at 06:00 UTC.
3. Matching the same product across retailers
- GTIN (UPC/EAN as GTIN-14, check digit verified; in-store numbers for weighed goods never match across shops): certain.
- Brand and manufacturer part number, when no GTIN conflicts: confidence 0.95.
- Title similarity: words and letter groups of the cleaned title, adjusted for brand, size and pack count. At 0.88 or above the match is made automatically; from 0.6 to 0.88 it waits for a person in the review queue; below 0.6 the listing becomes a new product.
Measured precision. On BAPC's labelled benchmark of 24 listing pairs (synthetic pairs written by BAPC, labelled as such): 9 matched automatically, 0 wrongly, precision 100% (95% CI 70%–100%), recall 75%, 6 sent to review. On the live labelled sample (staff check random automatic matches): no labels yet; the console offers a stratified sample to label.
4. Changes and alerts
Each day's row is compared with the previous day the same listing was seen: price drop or rise (with the percentage), promotion started or ended, out of stock, back in stock, newly listed. Organizations keep watchlists with a threshold for price moves; each hit is stored once, emailed to the members chosen, and sent to the organization's webhooks as an alert.triggered event.
5. The retail market view
- Category price index: for products sold by at least two retailers in the same currency, 100 × the geometric mean of each retailer's price divided by the product's median price. 100 means priced at the market median.
- Price position: share of compared products where the retailer is cheapest, within 2% of the cheapest, and its average gap to the median.
- Assortment: distinct products seen per retailer and per category, and the overlap between retailers.
- Availability: per retailer and day, the shares in stock, limited and out of stock among listings whose stock is known.
Each retailer's price for a product is the median across its shops on the latest day seen in the window. Matches still waiting for review are left out.
6. Exports to pricing tools
The BAPC competitor-price feed (CSV and Parquet, one row per product, retailer and day, with a data dictionary, checksums and the licence of every row); a Pricefx Competition Data layout (the fields of its importproductcompetition call); and a Prisync batch product import layout. Competera, PROS and other tools take the generic feed through their configurable data upload.
7. API
Organization tokens (made by an admin, shown once, stored only as a SHA-256 hash), limited per minute by plan. Endpoints: /api/v1/products, /api/v1/products/{id}/history, /api/v1/changes, /api/v1/market, /api/v1/feed.csv and /api/v1/feed.json. Every response states the licence of its rows.
Limits
- Coverage today is what Open Prices contributors record; big online retailers are covered only where shoppers recorded their prices or the retailer licenses its feed.
- Stock is unknown for Open Prices rows.
- No customer personal data is collected: prices are facts about products. Licence: rows from Open Prices are ODbL; a database made from them is shared under the ODbL.
Home · Help · Data catalog