ScavioScavio
Pricing
Tools
Sign InsGet Startedg
Blog
Digikey5 min readNov 29, 2026

How Do You Normalize DigiKey and Mouser Price Tiers and Stock? Read Both on One Key and Map Five Fields

Read DigiKey and Mouser through Scavio on one key and one envelope, then map five fields. The STM32F103C8T6 read $8.81 at DigiKey and $7.90 at Mouser on Nov 29.

Scavio Team

Nov 29, 2026

Try the DigiKey API free
scavio
Mouser / Bom pricing
Digikey

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:

DigiKeyMouser
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 break5001,000 ($4.15)
Stock9,549 in stock0 in stock ("On Order"), 19,500 on order
Packaging on the rowTraynot 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

MeaningDigiKey rowMouser row
Distributor part numberdigikey_part_numbermouser_part_number
Manufacturer part numbermpnmfr_part_number
Units in stockquantity_availablein_stock_quantity (null when none), plus on_order_quantity
Packagingpricing[].packagingprice_breaks[].packaging
Break tablepricing[].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:

Python
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:

Bash
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 502 or 503 means 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. A 404 for 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.

DigiKey and Mouser prices on one key

  • Price breaks per packaging from both
  • One envelope with fetched_at on every answer
  • No OAuth app per distributor
Try the DigiKey API free

50 free credits, no credit card

On this page

  1. The same part at both distributors
  2. The five fields to map
  3. Stock versus lead time
  4. Freshness, limits and partial failures

Related articles

View all
  • scavio
    Electronic components / Bom pricing
    Digikey
    How to Get DigiKey Part Prices, Price Breaks and Stock Through an API
  • scavio
    Electronics / Bom pricing
    Mouser
    How to Get Mouser Part Prices and Stock Through an API: Price Breaks, On-Order Dates and Lead Time
ScavioScavio

One scraper API for every social, search, e-commerce and real estate platform. Built for AI agents.

Product

  • Features
  • Pricing
  • Dashboard
  • Affiliates

Developers

  • Documentation
  • API Reference
  • Quickstart
  • MCP Integration
  • Python SDK

Alternatives

  • Tavily Alternative
  • SerpAPI Alternative
  • Firecrawl Alternative
  • Exa Alternative
  • Serper Alternative
  • Tavily vs Scavio
  • SerpAPI vs Scavio
  • All alternatives
  • Compare Scavio vs alternatives

Search APIs

  • Google Search API
  • Amazon Product API
  • YouTube API
  • Reddit API
  • Walmart Product API
  • TikTok API
  • Instagram API

Tools

  • All Tools

Ask AI about Scavio

© 2026 Scavio. All rights reserved.

Featured on TAAFT
Terms of ServicePrivacy Policy