Live API Demo

UPC Product Scanner

Point your phone's camera at any product barcode and get instant product info — name, brand, category, and image — pulled live from a public database. No account, no API key, completely free.

This is a real-world example of the kind of tool we build for retail clients. A smoke shop, grocery, hardware store, or any product-based business can use a scanner like this for inventory checks, price lookups, or customer-facing product info — all running off a simple API call.

How It Works

Camera / Scanning html5-qrcode library — handles live camera stream and barcode decoding across iOS and Android
Product API Open Food Facts — a free, open-source product database with millions of items. No API key required.
API Call GET openfoodfacts.org/api/v2/product/{barcode}
Best For Food, grocery, and packaged goods. For specialty retail, a paid product database can extend coverage significantly.
Use Cases Inventory management, price checking, staff product lookup, customer self-service kiosks
Want a scanner for your business? →

Open on Your Phone

This demo requires a mobile device with a camera. Scan the code below or type the URL.

Scan to open UPC scanner on your phone
starviewdata.com/tools/upc-scanner

What Happens Behind the Scenes

1
Camera stream opens

The browser requests camera permission. The html5-qrcode library reads frames from the video stream in real time, looking for barcode patterns.

2
Barcode decoded

When a valid UPC-A, EAN-13, or other supported barcode is found, the numeric code is extracted — no photo is stored or sent anywhere.

3
API call fires

A single GET request goes to openfoodfacts.org/api/v2/product/[barcode]. The response comes back in under a second with everything known about that product.

4
Results rendered

Product name, brand, category, and image are pulled from the JSON response and displayed. The whole round trip from scan to result takes about 1–2 seconds.

Want richer data? Open Food Facts covers grocery well. For broader retail coverage — electronics, hardware, beauty, specialty retail — a paid product database like Go-UPC or Barcode Lookup can return results for virtually any SKU. The integration pattern is identical.