Yes, you can price a BOM across DigiKey and Mouser without two OAuth setups: read both through Scavio's DigiKey API and Mouser API on one key. Every answer comes back in the same envelope, with data, response_time, fetched_at and credits_used, and each part row carries that distributor's own price breaks and stock. The item fields are named differently per distributor, so you map five of them once: part number, manufacturer part number, stock, packaging and the break table. Each call costs 2 credits.
A developer on r/embedded asked how others normalize pricing and stock across Mouser, DigiKey and TME. The pain points were different auth and rate limits, "inconsistent price tiers", stock versus lead-time semantics, and partial outages; the poster had built an internal schema and cached for 15 to 60 minutes to stay inside the limits. The thread is the one Google AI Mode cited when we asked it for the best API for DigiKey part prices. Here is how the DigiKey and Mouser half looks with captured data.
The same part at both distributors
We searched the STMicroelectronics STM32F103C8T6 at both on November 29, 2026, one call each. DigiKey's row (DigiKey part 497-6063-ND, Tray) and Mouser's row (Mouser part 511-STM32F103C8T6), as returned:
| DigiKey | Mouser | |
|---|---|---|
| Unit price at 1 | $8.81 | $7.90 |
| At 10 | $6.783 | $5.53 |
| At 100 | $5.7193 | $4.51 |
| At 500 | $5.29356 | $4.19 |
| Highest break | 500 | 1,000 ($4.15) |
| Stock | 9,549 in stock | 0 in stock ("On Order"), 19,500 on order |
| Packaging on the row | Tray | not stated on the row |
The breaks do not line up (DigiKey had 50 where Mouser had 25), and Mouser's tape-and-reel variant, STM32F103C8T6TR, was a separate row with 724 in stock and a reel break at 2,400. That is the "inconsistent price tiers" problem in one part: compare unit prices at your own quantity, per packaging, not break by break.
The five fields to map
| Meaning | DigiKey row | Mouser row |
|---|---|---|
| Distributor part number | digikey_part_number | mouser_part_number |
| Manufacturer part number | mpn | mfr_part_number |
| Units in stock | quantity_available | in_stock_quantity (null when none), plus on_order_quantity |
| Packaging | pricing[].packaging | price_breaks[].packaging |
| Break table | pricing[].price_breaks[] {quantity, unit_price, extended_price} | price_breaks[] {packaging, quantity, unit_price} |
DigiKey nests one break table per packaging, each with its own min_order_quantity; Mouser lists breaks flat and tags each with its packaging. This Python turns both into one shape:
def price_at(breaks, qty):
"""Unit price for qty from [(quantity, unit_price)], or None below the first break."""
fit = [p for q, p in sorted(breaks) if q <= qty]
return fit[-1] if fit else None
def from_digikey(it):
return [{
"distributor": "DigiKey",
"sku": it["digikey_part_number"],
"mpn": it["mpn"],
"stock": it["quantity_available"] or 0,
"packaging": p["packaging"],
"breaks": [(b["quantity"], b["unit_price"]) for b in p["price_breaks"]],
} for p in it["pricing"]]
def from_mouser(it):
by_pack = {}
for b in it["price_breaks"]:
by_pack.setdefault(b["packaging"], []).append((b["quantity"], b["unit_price"]))
return [{
"distributor": "Mouser",
"sku": it["mouser_part_number"],
"mpn": it["mfr_part_number"],
"stock": it["in_stock_quantity"] or 0,
"packaging": pack,
"breaks": breaks,
} for pack, breaks in by_pack.items()]Run on the two captured rows, with price_at at 1, 100 and 500 pieces:
DigiKey 497-6063-ND Tray 9549 8.81 5.7193 5.29356
Mouser 511-STM32F103C8T6 None 0 7.9 4.51 4.19
The calls behind it:
curl -s https://api.scavio.dev/api/v1/digikey/search \
-H "Authorization: Bearer $SCAVIO_API_KEY" -H "Content-Type: application/json" \
--max-time 300 -d '{"query": "STM32F103", "category_id": "685", "filters": {"-2": ["5"]}}'
curl -s https://api.scavio.dev/api/v1/mouser/search \
-H "Authorization: Bearer $SCAVIO_API_KEY" -H "Content-Type: application/json" \
--max-time 300 -d '{"query": "STM32F103C8T6"}'Stock versus lead time
Keep the two apart, as the thread suggests. DigiKey's quantity_available is units on hand, and a row's stock lists DigiKey, factory and marketplace lines separately; /api/v1/digikey/product adds standard_lead_time, the manufacturer's standard lead time as DigiKey states it (40 weeks for this part). Mouser's row gives in_stock_quantity, on_order_quantity and an on_order list of expected dates when Mouser shows them, and its product endpoint adds the factory lead time. Neither is a ship date.
Freshness, limits and partial failures
- Freshness: Scavio keeps no response cache. Each call fetches the page when you ask and returns
fetched_at, so a 15 to 60 minute cache like the poster's is your decision, not a hidden one upstream. - Limits: one Scavio key and one plan limit instead of a developer app per distributor. DigiKey's own Product Information API, for comparison, documents 120 requests a minute and 1,000 a day.
- Failures: a
502or503means the distributor's data was temporarily unavailable and is not charged, so retry it; in our DigiKey test one category search failed that way and succeeded on the next try. A404for an unknown part is charged. - Not covered: TME. DigiKey category searches return page 1, 25 rows, so narrow with filters; Mouser searches page 25 parts at a time.
The full walkthrough of each DigiKey call is in how to get DigiKey part prices and stock, and the five options for DigiKey data are compared in the best DigiKey part price APIs. RS Components uses the same key for UK, German and Australian stock.
Try the DigiKey API free, 50 credits, no card, or run both searches in the playground.
Reference: DigiKey API · DigiKey search docs · DigiKey product docs · Mouser API · Mouser search docs
Frequently asked questions
Is there one API for DigiKey and Mouser prices?
Scavio reads both on one key: /api/v1/digikey/* and /api/v1/mouser/* return the same envelope with data, response_time, fetched_at and credits_used, and each answer holds that distributor's own price breaks and stock. Nexar, the API behind Octopart, returns offers from many distributors for one part in a single query, with stock and lead time per offer.
Why do DigiKey and Mouser price tiers not line up?
Each distributor sets its own quantity breaks and packaging. On November 29, 2026 the STM32F103C8T6 tray part at DigiKey had breaks at 1, 10, 50, 100, 250 and 500, while Mouser's row had 1, 10, 25, 100, 250, 500 and 1,000. Compare them by working out the unit price at your build quantity on each side, not break by break.
Should I cache distributor prices?
That depends on how fresh your BOM has to be. Stock moves with every order, so store each reading with the time it was taken and set your cache window to match. Scavio keeps no response cache: each call fetches the page when you ask and returns fetched_at, so your own cache decides how old a price may be.
Does Scavio cover TME?
No. Scavio's electronic component distributors are DigiKey, Mouser and RS Components, with McMaster-Carr for mechanical parts. For TME you would keep its own API alongside.