DigiKey FastAdd URL Guide: Bulk Add Parts to Cart from Third Party Tooling
If you’re leveraging DigiKey part numbers in your own tooling like Excel, python, home grown ERP systems, or even KiCad, you can build your own URL that will load a cart with a list of parts. Here’s how to structure the URL and what each parameter means.
The FastAdd tool allows for both GET and POST methods for submitting needed information and each will be covered below.
Base URL
https://www.digikey.com/classic/ordering/fastadd.aspx
Key Parameters
| Parameter | Description |
|---|---|
part1, part2, partN… |
*Required DigiKey part numbers to add to the cart (e.g., 1050-ABX00052-ND) |
qty1, qty2, qtyN… |
*Required Quantity for each part (e.g., 1, 5, 100) |
cref1, cref2, crefN… |
Customer Reference is often used for customer internal part numbers, line item notes, or PCB reference designators, this is printed on sales documentation and product pick labels |
newcart |
false (default) to add to the current cart on DigiKey’s website and true to start a with a new empty cart. newcart is only recognized in the URL and not in POST body. |
utm_source |
External Tool or Source Identifier (e.g., bomalizer.ai) so DigiKey can attribute traffic/referrals. This always needs to be appended to the URL if used, sending in a POST Body is not supported. |
utm_content |
Internal tracking ID or campaign reference (e.g., 7za42ddr) free form text use as you wish. |
GET method
GET Example 1: Simple Single Part Cart Addition
https://www.digikey.com/classic/ordering/fastadd.aspx?part1=1050-ABX00052-ND&qty1=1&cref1=cpn123
GET Example 2: Multiple Parts with Tracking
https://www.digikey.com/classic/ordering/fastadd.aspx?part1=1050-ABX00052-ND&qty1=1&cref1=cpn123&part2=1050-ABX00162-ND&qty2=1&cref2=bobs-board&utm_source=bomalizer.ai&utm_content=7za42ddr
GET Limitations
The max safe character count of the URL is around 1700 characters, more characters will cause errors. As long as you avoid newcart=true you can build several urls and visit them in sequence to load your cart.
POST Method
One can also POST data to the URL if you have control of the web application in question through <form> submissions or requisite javascript methods.
POST Simple Example
<form action="https://www.digikey.com/classic/ordering/fastadd.aspx" method="post" target="_blank">
<label>Part number:<input type="text" name="part1" value="1050-ABX00052-ND" required></label>
<label>Qty:<input type="number" name="qty1" value="1" required></label>
<label>Cref:<input type="text" name="cref1" value="cpn123"></label>
<button type="submit">Submit to DigiKey</button>
</form>
POST Interactive Example
An interactive more full featured demo can be found here. Example code can be inspected on page.
POST Limitations
Exact limits are not specified, but more adding more than 400 parts at a time is not recommended.
Alternative ways to get lists of parts in your cart
- Try the DigiKey API, anyone can register and start immediately at a rate limit of 1000 calls per day without any additional approvals. There isn’t currently a direct Cart API, but you can load parts into a List or Quote, which is one click away from getting the parts into a cart. You could also skip the cart completely and use the Ordering API to submit an order to DigiKey.
- Use the DigiKey MyLists Third Party API
- Upload a file or paste structured text directly in the cart at the bottom of the page.
- Upload files to MyLists tool on the website which click away from adding to the cart.
