Tractor Supply category products
The products of a Tractor Supply catalog listing (a product's category_ids value, e.g. 27015 = drill bits) with facet filters, store prices and paging as in search. Pass next_page back as page; null on the last page.
Every response includes credits_used: the credits this call cost.
Part of the Tractor Supply API: 6 endpoints with prices, use cases and example responses.
Parameters
| name | type | description |
|---|---|---|
categoryrequired | string | Listing id from a product's category_ids in search results, e.g. 27015. Example: 27015 |
filter | string | Facet filters from facets (separated by ;). |
zip | string | ZIP code for the nearest store's prices. |
page | integer | Page number. Example: 1 |
limit | integer | Products per page, 1-48. Example: 24 |
Every endpoint also takes fresh, raw, fields (see lean responses and caching).
Example
curl "https://api.api.sh/tractorsupply/v1/category?category=27015" \
-H "x-api-key: $APISH_KEY" import os, requests
res = requests.get(
"https://api.api.sh/tractorsupply/v1/category",
params={"category": "27015"},
headers={"x-api-key": os.environ["APISH_KEY"]},
timeout=120,
)
res.raise_for_status()
data = res.json() const url = new URL("https://api.api.sh/tractorsupply/v1/category");
url.searchParams.set("category", "27015");
const res = await fetch(url, { headers: { "x-api-key": process.env.APISH_KEY } });
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
const data = await res.json(); Response
A JSON object with the fields described above, plus raw (the source's own data), cached, fetched_at and credits_used. Errors return {"success": false, "error": "…"} with the HTTP status (see errors). A lookup that ran but found nothing (404) costs the price above; refused calls and errors on our side are free (what's charged).
Example response (real call, trimmed: lists cut to 2 items, long text shortened, raw left out)
{"category": "27015","applied_filters": {"brand": [],"filter": []},"price_store": {"store_number": "2314","name": null},"total": 454,"page": 1,"count": 24,"next_page": 2,"items": [{"part_number": "380566199","id": "23381","name": "DEWALT 14 pc. Pilot Point Drill Bit Set with No-Spin Shank","url": "https://www.tractorsupply.com/tsc/product/dewalt-14-piece-pilot-point-drill-bit-set","brand": "DEWALT","price": 33.99,"max_price": null,"list_price": null,"savings": null,"savings_percent": null,"see_price_in_cart": false,"map_price": null,"pickup_price": 33.99,"store_number": "2314","rating": 3,"review_count": 5,"availability": "ONLINE_IN_STORES","pickup_eligible": true,"truck_delivery": false,"ribbon": null,"image": "https://media.tractorsupply.com/is/image/TractorSupplyCompany/3805661?$456$","description": "DEWALT 14 pc. Pilot Point Drill Bit Set with No-Spin Shank","category_ids": ["27015"],"manufacturer_part_number": "DW1169","variant_count": null},{"part_number": "390230899","id": "23938","name": "Mibro 6 pc. Spade Bit Wood Drilling Set","url": "https://www.tractorsupply.com/tsc/product/mibro-6-piece-spade-bit-wood-drilling-set","brand": "Mibro","price": 28.99,"max_price": null,"list_price": null,"savings": null,"savings_percent": null,"see_price_in_cart": false,"map_price": null,"pickup_price": 28.99,"store_number": "2314","rating": 5,"review_count": 2,"availability": "ONLINE_IN_STORES","pickup_eligible": true,"truck_delivery": false,"ribbon": null,"image": "https://media.tractorsupply.com/is/image/TractorSupplyCompany/3902308?$456$","description": "Mibro 6 pc. Spade Bit Wood Drilling Set","category_ids": ["27015"],"manufacturer_part_number": "476940","variant_count": null},"… 22 more"],"facets": [{"name": "Brand","field": "mfName_ntk_cs","options": [{"label": "Century Drill & Tool","count": 271,"filter": "mfName_ntk_cs:\"Century Drill & Tool\""},{"label": "VESSEL","count": 114,"filter": "mfName_ntk_cs:\"VESSEL\""},"… 8 more"]},{"name": "Price","field": "offer_price_min_10151","options": [{"label": "({0 TO 10])","count": 232,"filter": "offer_price_min_10151:({0 TO 10])"},{"label": "({10 TO 20])","count": 116,"filter": "offer_price_min_10151:({10 TO 20])"},"… 4 more"]},"… 14 more"],"cached": false,"credits_used": 1}