DigiKey
DigiKey Categories API
The product categories of DigiKey, the electronic component distributor. Without a category id: the top-level categories as DigiKey's product index lists them, with the full subtree and product counts for some of them. With a category id: that category with its subcategories, product counts and new-product counts, and its breadcrumbs. leaf true marks a category whose rows search returns. us, ca 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/jsoncategory_idstring | integerA category id (categories[].id) or a DigiKey category link, to read its subcategories and product counts. Leave it out for the top-level categories.
Example: 32
countrystringdefault:usus (digikey.com, USD), ca (digikey.ca, CAD) or de (digikey.de, EUR, German labels, prices without VAT). Anything else is a 400, 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 the index listed 50 top-level categories, 10 of them with their subcategories and counts (subcategories_listed true); category 32, Integrated Circuits (ICs), read 639,037 products in 12 subcategories, 4 of them leaf categories such as Microcontroller, Microprocessor, FPGA, SOM Modules (id 721, 2,454 products). Send a leaf id to search as category_id for its rows; a category that is not a leaf opens one level further here.
| 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)
top = client.digikey.categories()["data"]
print(top["total_categories"], [c["name"] for c in top["categories"]][:5])
ics = client.digikey.categories(category_id="32")["data"]
for c in ics["categories"]:
print(c["id"], c["name"], c["product_count"], c["leaf"])Response