Dollar Tree
Dollar Tree Store Stock API
Units of one Dollar Tree (dollartree.com, the US and Canada discount variety store chain) item at a Dollar Tree store, as Dollar Tree's product page reports them for the store chosen: the store's units on hand and status, the nearby stores Dollar Tree returns (up to about 63; none at some rural stores) with their units, ship-to-home from a named distribution centre (its whole cases, Dollar Tree's own order quantity and estimated dates) and ship-to-store from a named distribution centre. Takes a store number. United States only. Costs 1 credit; the slowest endpoint.
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/jsonitem_idstringrequiredA Dollar Tree item number (items[].item_id, the number at the end of a dollartree.com product link, e.g. 221159 or FD1402202). Send item_id or url. UPCs are not item numbers.
Example: 221159
urlstringA dollartree.com product link (items[].url, https://www.dollartree.com/<name>/<item number>) instead of item_id.
Example: https://www.dollartree.com/the-home-store-9-in-uncoated-white-paper-plates-40-pc-pack/221159
storestringrequiredA Dollar Tree store number (stores[].store_number, e.g. 5126). Required: a ZIP alone does not pick a store on Dollar Tree's product page (call stores with the ZIP first).
Example: 5126
zipstringOptional: the store's ZIP, sent along with the store as Dollar Tree's own store picker does.
Example: 10035
statestringOptional: the store's two-letter state, sent along with the store.
Example: NY
countrystringdefault:usus (www.dollartree.com, USD), the default and the only market for store-stock. Dollar Tree Canada has no shopping site: ca answers 400, not charged (for Canada Scavio serves store).
Example: us
us— United States, www.dollartree.com, English, USD. 1 credit. The default.
languagestringdefault:enen, the default and only value: Dollar Tree publishes its US site and its Canadian store pages in English. Any other value answers 400, not charged.
Example: en
en— English (default).
Notes
Markets. Dollar Tree (dollartree.com, the US and Canada discount variety store chain; Dollar Tree, Inc. reported 9,511 stores at the end of its third quarter of fiscal 2026, October 31, 2026, in 48 contiguous states and seven Canadian provinces, and $19.4 billion in net sales for fiscal 2025; Family Dollar has been a separate company since July 2025 and is not served): country us (www.dollartree.com, English, USD) is the default and serves every endpoint; country ca serves Dollar Tree Canada's store pages (locations.dollartreecanada.com, English, no prices) on store only, because Dollar Tree Canada has no shopping site. Field names are English; prices are numbers in USD. Every answer echoes market { country, language, currency, locale }. This endpoint costs 1 credit and answers for country us. store is required: a Dollar Tree store number (stores[].store_number). A ZIP alone does not pick a store on Dollar Tree's product page, so a ZIP without a store answers 400, not charged: call stores with the ZIP first for the store numbers near it. zip and state are optional and are sent along with the store as Dollar Tree's own store picker does. On 2026-11-25 the 9-in. White Paper Plates, 40-ct. Packs (221159) read 116 units at store 5126 (2182 3rd Avenue, New York, NY), and Dollar Tree listed 63 nearby stores by store number, 59 of them in stock with 5,884 units between them; ship_to_home named distribution centre 99006 with 2,374 whole cases of 30 and max_order_units 75,570, with an estimated delivery of 2026-12-02 (express 2026-11-30), and ship_to_store (distribution centre 99010) was not available. On 2026-11-24 the Snickers Peanut Candy, 5-pc Pack (390213) read 342 units at store 2461 (Naperville, IL) and in stock at all 22 nearby stores Dollar Tree listed. units are the store's units on hand as Dollar Tree reports them; stores sell single units (unit_size 1). store.status is Dollar Tree's on-hand status as given (AVAILABLE, LIMITED_STOCK, OUT_OF_STOCK); it is null when Dollar Tree gives none, and its product page then shows the item as Unavailable. Dollar Tree returns up to about 63 nearby stores, and none at some rural stores; they come as store numbers only: stores and store give their addresses. ship_to_home is delivery from the distribution centre Dollar Tree names (dc_number): cases are that centre's whole cases of case_size units, and max_order_units is Dollar Tree's own ship-to-home quantity as given, the most units its page lets a shopper order for delivery. max_order_units is the same at every store and is not that centre's stock, so it is not cases x case_size. ship_to_store is shipping to the chosen store for pickup from the distribution centre Dollar Tree names (dc_number), with its units and whole cases as given. Counts are as Dollar Tree reports them at call time, not a pickup promise. This is the slowest Dollar Tree endpoint: about 15 to 60 seconds (up to about 70 seen); set a client timeout of 300 seconds. An unknown item or store is a charged 404. A Dollar Tree item number is items[].item_id, the number at the end of a dollartree.com product link (221159 is The Home Store 9-in. White Paper Plates, 40-ct. Packs; 380886 is Heavy-Duty 10-in Ultra Paper Plates, 10-pc Pack). Most are digits; some carry an FD prefix (FD1402202, a Febreze refill): send them as given. Search with an item number answers with that item. UPCs are not item numbers, and Dollar Tree's search does not match UPCs: upcs on items and products are listed as Dollar Tree gives them, zero-padded (000000040000596370). A store number is digits, such as 5126 (2182 3rd Avenue, New York, NY) or 2461 (Naperville, IL): stores lists them, and store-stock takes one.
| Endpoint | Credits | Markets |
|---|---|---|
search | 1 credit | us |
product | 1 credit | us |
store-stock | 1 credit | us |
category | 1 credit | us |
categories | 1 credit | us |
brand | 1 credit | us |
deals | 1 credit | us |
stores | 5 credits | us |
store | 1 credit | us, ca |
reviews | 1 credit | us |
Request
from scavio import ScavioClient
# store-stock takes about 15 to 60 seconds: give it a long timeout.
client = ScavioClient(api_key="sk_live_your_key", timeout=300)
# 1. The stores near a ZIP (5 credits), 2. units at the nearest one (1 credit).
stores = client.dollartree.stores(zip="60540")["data"]["stores"]
store = stores[0]["store_number"]
d = client.dollartree.store_stock(item_id="390213", store=store)["data"]
print(d["item"]["name"], "at store", d["store"]["store_number"], d["store"]["units"], "units")
in_stock = [s for s in d["nearby_stores"] if s["in_stock"]]
print(len(in_stock), "of", len(d["nearby_stores"]), "nearby stores in stock")
home = d["ship_to_home"]
print("ship to home from DC", home["dc_number"], home["cases"], "cases of", home["case_size"], "eta", home["eta"])
print("most units orderable for delivery:", home["max_order_units"])Response