DigiKey
DigiKey Search API
Search DigiKey, the electronic component distributor, by keywords, a manufacturer part number or a DigiKey part number. With query alone DigiKey answers with its category view: the parts whose manufacturer part number matches and the categories holding matches, with product counts. With a category id it returns page 1 of that category's listing, 25 rows in DigiKey's order, each with DigiKey and manufacturer part numbers, price breaks per packaging, stock, lifecycle status, RoHS, datasheet and the category's spec columns, plus the filters you can narrow it with and a per-filter check. us and de. 2 credits.
Authorizations
AuthorizationstringheaderrequiredBearer authentication header of the form Bearer <token>, where <token> is your Scavio API key (e.g. Bearer sk_live_your_key).
Body
application/jsonquerystringKeywords, a manufacturer part number or a DigiKey part number, 1-120 characters. Send query, category_id or both.
Example: LM317
category_idstring | integerA leaf category id (categories[].id of a search or of categories, where leaf is true) or a DigiKey category link: returns page 1 of that category, narrowed by query and filters.
Example: 699
filtersobjectWith category_id: {<facet id>: [<option id>, ...]} from facets[] and common_filters[], e.g. {"-1": ["296"]} for Manufacturer Texas Instruments or {"-2": ["5"]} for In Stock. Up to 10 filters of 1-25 option ids each.
Example: {"-1": ["296"], "-2": ["5"]}
countrystringdefault:usus (digikey.com, USD) or de (digikey.de, EUR, German labels, prices without VAT). ca is a 400 here (use product and categories for digikey.ca), not charged.
Notes
DigiKey. DigiKey (digikey.com, the electronic component distributor) lists semiconductors, passives, connectors, electromechanical parts, development boards and tools, each under a DigiKey part number per packaging. Three markets: us (digikey.com, USD, the default), ca (digikey.ca, CAD: product and categories only, no search) and de (digikey.de, EUR, German labels, prices without VAT plus the with-VAT figure). Prices are DigiKey's list prices for a visitor who is not signed in. DigiKey offers its own official API, with developer registration, keys and rate limits; this is a separate option on one Scavio key, with the same key and response envelope as Mouser, RS Components and every other Scavio platform. search and categories cost 2 credits, product 2 (4 when a DigiKey part number needs a second page read). On 2026-11-28 LM7805 alone read DigiKey's category view: 4 categories holding matches, led by Voltage Regulators - Linear, Low Drop Out (LDO) Regulators (id 699, 17 products). LM317 in category 699 with filters {"-1": ["296"], "-2": ["5"]} (Manufacturer Texas Instruments, In Stock) read 62 products, filter_check applied for both; the first row, LM317LIDR (DigiKey 296-20678-1-ND, Cut Tape), showed 78,226 in stock at 0.33 USD for 1 and 0.14522 for 1,000, and 0.1465 on Tape & Reel from 2,500. Only page 1 of a category listing is returned (25 rows): narrow it with query and filters, taking ids from facets[] and common_filters[]. An exact part number can land on one product: result_type product, with product filled as in the product endpoint.
| Endpoint | What it returns | Credits per call |
|---|---|---|
search | Keywords or a part number: exact part matches and the categories holding matches with counts; with a category id, page 1 of that category (25 rows) with price breaks per packaging, stock, specs and filters | 2 |
product | One part by DigiKey link or DigiKey part number: price breaks per packaging, stock, lead time, lifecycle status, compliance codes, specs, documents, substitutes and related parts | 2 (4 when a DigiKey part number needs a second page read) |
categories | The top-level categories, or one category with its subcategories and product counts | 2 |
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key", timeout=300)
# Step 1: which categories hold the part.
d = client.digikey.search(query="LM317")["data"]
for c in d["categories"]:
print(c["id"], c["name"], c["product_count"])
# Step 2: in-stock Texas Instruments rows of one category, with price breaks.
d = client.digikey.search(query="LM317", category_id="699", filters={"-1": ["296"], "-2": ["5"]})["data"]
print(d["total"], d["filter_check"])
for it in d["items"]:
print(it["mpn"], it["digikey_part_number"], it["quantity_available"], it["unit_price"])Response