Mouser adds a tariff to some parts because US import tariffs are set by a part's country of origin and its HTS classification, so the same function made in a different country can carry a very different charge. You can see both before you order: Scavio's Mouser API returns, for any Mouser part number, the country of origin, the assembly and diffusion countries, the USHTS and other HTS codes and the ECCN, together with the price breaks and stock, in one POST /api/v1/mouser/product call. It costs 2 credits a part, about $0.002 on the Growth plan. It does not return the tariff amount on your order.
The question comes from r/AskElectronics, where a buyer found the one part they needed in stock only at Mouser, with a tariff of 56% on it, against about 8% on parts they had bought from DigiKey for another project. They asked "Where is Mouser getting this 56% tariff rate from?" and got a generic reply from customer service. The thread drew 50 comments and a score of 33. The most upvoted reply pointed at what Mouser paid when it last brought the stock in and at rules that change often; another noted that DigiKey lets you filter out tariffed parts. Neither showed what the parts actually were. The page data does.
Step 1: Read a part's origin and codes
curl -s https://api.scavio.dev/api/v1/mouser/product \
-H "Authorization: Bearer $SCAVIO_API_KEY" \
-H "Content-Type: application/json" \
-d '{"mouser_part_number": "863-MC7805BDTG"}'Trimmed to the fields that matter here, as captured on November 29, 2026:
{
"mouser_part_number": "863-MC7805BDTG",
"mfr_part_number": "MC7805BDTG",
"manufacturer": "onsemi",
"price": 0.48,
"in_stock_quantity": 17641,
"country_of_origin": "Malaysia",
"assembly_country_of_origin": "China",
"country_of_diffusion": "Czech Republic",
"compliance": {
"ushts": "8542390090",
"cnhts": "8542399000",
"cahts": "8542390000",
"jphts": "8542390990",
"taric": "8542399000",
"mxhts": "8542399999",
"eccn": "EAR99"
}
}One 5 V regulator, three countries: Mouser lists the Czech Republic for diffusion, China for assembly and Malaysia as the country of origin. That is the kind of detail that decides which tariff line applies, and it is invisible on a BOM that lists only part numbers.
Step 2: Do it for every part you are about to order
Six parts we read the same day, all from Mouser's US storefront:
| Mouser part | Manufacturer | Origin | Assembly | Diffusion | USHTS | In stock |
|---|---|---|---|---|---|---|
| 595-NE555P | Texas Instruments | Mexico | Mexico | United States | 8542390090 | 67,158 |
| 595-NE555DR | Texas Instruments | Mexico | Mexico | United States | 8542390090 | 40,317 |
| 863-MC7805BDTG | onsemi | Malaysia | China | Czech Republic | 8542390090 | 17,641 |
| 556-ATMEGA328P-AU | Microchip Technology | Thailand | United States | Not available | 8542310015 | 12,827 |
| 511-STM32F103C8T6TR | STMicroelectronics | Taiwan | Not available | Not available | 8542310025 | 724 |
| 932-MIKROE-192 | Mikroe | Serbia | Not available | Not available | 8473301180 | 31 |
"Not available" is what Mouser lists when it gives no value. A short loop builds the same table for a whole BOM:
import requests
API_KEY = "sk_live_your_key" # load from your secret store in real code
parts = ["595-NE555P", "863-MC7805BDTG", "556-ATMEGA328P-AU"]
for pn in parts:
r = requests.post("https://api.scavio.dev/api/v1/mouser/product",
headers={"Authorization": f"Bearer {API_KEY}"},
json={"mouser_part_number": pn}, timeout=300)
d = r.json()["data"]
print(pn, d["country_of_origin"], d["assembly_country_of_origin"],
d["compliance"].get("ushts"), d["in_stock_quantity"], d["price"])With the origin next to each line, you can see which parts are likely to draw a tariff before you place the order, and look for the same function from another country of origin. Search helps there: POST /api/v1/mouser/search with the generic part number ("NE555", "LM7805") lists every manufacturer's version with stock and price breaks, 25 a page, and each one's origin is one product call away.
What the API does not tell you
- The tariff amount: it is set on your order, for your destination, under the rules in force that day. Check it in your Mouser cart before you pay.
- Why Mouser lists one country over another: the fields are returned as Mouser lists them. Origin rules are a customs question, not a data one.
- Other distributors' tariff filters: Scavio also reads DigiKey and RS Components on the same key, with each one's own fields, if you want to compare where the same manufacturer part is stocked.
Reading origin and HTS codes for a 200-line BOM is 200 product calls, 400 credits: $0.40 at the Growth rate of $1 per 1,000 credits, and 50 free credits cover 25 parts. The same calls return every price break and the stock, laid out in how to get Mouser part prices and stock; for the other ways to get Mouser data, including Mouser's own free Search API, see the best Mouser part price APIs.
Try the Mouser API free, 50 credits, no card, or look up a part's origin in the playground.
Reference: Mouser API overview · product docs · search docs
Frequently asked questions
Why does Mouser charge a tariff on some parts and not others?
US import tariffs are set by a product's HTS classification and its country of origin, so two similar parts made in different countries can carry very different charges. Mouser lists each part's country of origin and HTS codes, and Scavio's Mouser API returns them per part: on November 29, 2026 the onsemi MC7805BDTG read Malaysia as origin and China as assembly country, and the TI NE555P read Mexico.
How do I find a Mouser part's country of origin?
Send the Mouser part number to Scavio's /api/v1/mouser/product. The answer carries country_of_origin, assembly_country_of_origin and country_of_diffusion as Mouser lists them, plus a compliance object with USHTS, CNHTS, CAHTS, JPHTS, TARIC, MXHTS and ECCN. It costs 2 credits a part.
Does the API tell me the tariff amount Mouser will charge?
No. Scavio returns the inputs a tariff depends on, the part's origin and HTS codes, along with its price breaks and stock. The tariff charge on an order is set when you order and depends on your shipping destination and the rules in force that day, so check it in your Mouser cart.
Can I see where every part on my BOM is made?
Yes. Loop over the Mouser part numbers and read country_of_origin and compliance.ushts for each. A 200-line BOM is 200 product calls, 400 credits, which is $0.40 on the Growth plan; 50 free credits cover 25 parts.