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

How Do You Pull McMaster-Carr Pack Quantity and Cost per Pack Into a BOM? One API Call per Part Number

Send each McMaster-Carr part number to Scavio's product endpoint and write back pack quantity, cost per pack and cost per piece: 1 credit a part, no approval.

Scavio Team

Nov 29, 2026

Try the McMaster-Carr API free
scavio
Bom pricing / Excel
Mcmaster carr

To fill pack quantity and cost per pack for every McMaster-Carr part in a bill of materials, send each part number to Scavio's McMaster-Carr API. POST /api/v1/mcmaster/product returns package_quantity, package_price (the cost per pack) and unit_price (the cost per piece), plus the order unit, the delivery message and whether the part is discontinued. Write those into a CSV or sheet and look them up from the BOM. Each part costs 1 credit, about $0.001 on the Growth plan, with no approval step.

The question comes from r/excel, where an engineer building a BOM with a column of McMaster-Carr part numbers wanted the pack quantity and cost per pack columns to fill themselves. The obvious formula, WEBSERVICE on the product page, "returns #VALUE!". The thread has 11 comments and a score of 12, and it is old, but Gemini still cited it in November 2026 when asked for the best API for McMaster-Carr part prices. The most practical reply suggested a two-step process: fetch the data into a CSV with a script, then import the CSV into Excel. That is still the right shape; the API replaces the scraping step.

Step 1: One part, one call

The thread's own example was part 9657K296:

Bash
curl -s https://api.scavio.dev/api/v1/mcmaster/product \
  -H "Authorization: Bearer $SCAVIO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"part_number": "9657K296"}'

Trimmed to the BOM fields, as captured on November 29, 2026:

JSON
{
  "part_number": "9657K296",
  "title": "Compression Spring, 1\" Long, 0.18\" OD, 0.144\" ID",
  "unit_of_measure": "Pack of 12",
  "package_quantity": 12,
  "price_text": "$7.46 per pack of 12",
  "package_price": 7.46,
  "unit_price": 0.62,
  "per_piece_price_text": "$0.62 per piece",
  "delivery_message": "Delivers Tuesday",
  "discontinued": false,
  "replacement_part_number": null
}

The poster's table in December 2015 had this spring at 12 per pack for $6.52. Almost 11 years later it is still 12 per pack, at $7.46: about 14% more.

Step 2: The whole BOM column

Loop over the part numbers and write a CSV that Excel or Google Sheets can import or link:

Python
import csv, requests

API_KEY = "sk_live_your_key"  # load from your secret store in real code
URL = "https://api.scavio.dev/api/v1/mcmaster/product"

with open("bom.csv") as f:
    parts = [row["McMaster Part #"] for row in csv.DictReader(f)]

with open("mcmaster_prices.csv", "w", newline="") as f:
    w = csv.writer(f)
    w.writerow(["McMaster Part #", "Pack Qty", "Cost/Pack", "Cost/Piece", "Delivery", "Discontinued"])
    for pn in parts:
        r = requests.post(URL, headers={"Authorization": f"Bearer {API_KEY}"},
                          json={"part_number": pn}, timeout=180)
        if r.status_code != 200:
            w.writerow([pn, "", "", "", f"error {r.status_code}", ""])
            continue
        d = r.json()["data"]
        w.writerow([pn, d["package_quantity"], d["package_price"], d["unit_price"],
                    d["delivery_message"], d["discontinued"]])

Then XLOOKUP (or VLOOKUP) the part number in mcmaster_prices.csv to fill the two columns. Three parts from our run:

McMaster Part #Pack QtyCost/PackCost/PieceDelivery
9657K29612$7.46$0.62Delivers Tuesday
91251A54050$12.42$0.25Delivers Thursday
5413K4910$21.61$2.16Delivers Friday

Each call took 3 to 6 seconds. A part number McMaster-Carr does not know usually ends in an unbilled 502 after about 2 minutes, which the status_code check catches, so keep the timeout generous rather than letting one bad row stop the run.

Why cost per piece belongs in the BOM

A BOM line needs the cost of the quantity you use, and McMaster-Carr sells many parts in packs that differ from row to row. The same screw is often listed twice: 91864A720 is a 1/4"-20 x 5/16" black-oxide socket head screw at $6.45 for 25, and 91864A246 is the same screw at $90.30 for 500. Per piece that is $0.258 against $0.181. On one listing we read, all 35 screws sold in both a small and a large pack were 30% to 33% cheaper per piece in the large pack, so if a build needs a few hundred, the cheaper line is a different part number. Comparing unit_price instead of package_price makes that visible; the best McMaster-Carr part price APIs charts all 35.

What it will not fill

  • Account pricing: prices are those shown to a visitor who is not signed in, in USD. Contract prices on your own account are not read.
  • Manufacturer part numbers: McMaster-Carr shows none, so match parts across suppliers on their specifications, which the same answer returns in specifications.
  • Stock counts: McMaster-Carr publishes a delivery message, not a count.
  • History: each call is the price at that moment; keep each run's CSV with its date if you want a trend.

Re-pricing a 300-line BOM every week is about 1,300 credits a month: $1.30 at the Growth rate of $1 per 1,000 credits, and 50 free credits cover the first 50 parts. Every endpoint is laid out in how to get McMaster-Carr part prices.

Try the McMaster-Carr API free, 50 credits, no card, or run a part number in the playground.

Reference: McMaster-Carr API overview · product docs · search docs

Frequently asked questions

Can Excel pull McMaster-Carr prices automatically?

Not with WEBSERVICE on the product page: in the r/excel thread that asked, it returned #VALUE!. The working pattern is two steps: call an API for each part number, write the results to a CSV or a sheet, then look them up from your BOM. Scavio's McMaster-Carr product endpoint returns pack quantity and cost per pack as JSON for 1 credit a part.

How do I get the cost per piece of a McMaster-Carr part?

Divide the pack price by the pack quantity. Scavio returns both, plus unit_price already divided: part 9657K296, a compression spring, was $7.46 per pack of 12, or $0.62 per piece, on November 29, 2026.

Have McMaster-Carr prices gone up?

For the part in the 2015 r/excel thread, yes. The poster's BOM listed 9657K296 at $6.52 for a pack of 12; on November 29, 2026 the same part read $7.46 for a pack of 12, about 14% more over almost 11 years. One part is not the catalog, so price your own BOM to see your parts.

Is there an official McMaster-Carr API for a BOM?

McMaster-Carr's Product Information API is for approved customers: each gets a client certificate and subscribes to the parts it wants data on, within daily and total limits. If your company qualifies, it is the official route. Otherwise a third-party API such as Scavio's returns the same public prices with one key.

McMaster-Carr prices for your BOM

  • Pack quantity and cost per pack by part number
  • Cost per piece computed for you
  • No approval step, 1 credit a part
Try the McMaster-Carr API free

50 free credits, no credit card

On this page

  1. Step 1: One part, one call
  2. Step 2: The whole BOM column
  3. Why cost per piece belongs in the BOM
  4. What it will not fill

Related articles

View all
  • scavio
    Industrial / Bom pricing
    Mcmaster carr
    How to Get McMaster-Carr Part Prices Through an API: Pack Price, Per-Piece Price and Specs
  • scavio
    Industrial / Comparison
    Mcmaster carr
    5 Best McMaster-Carr Part Price APIs in 2026: Scavio Read 154 Socket Head Screw Rows, and Every Large Pack Cost 30% to 33% Less per Piece
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