Tractor Supply product search
Search Tractor Supply's catalog by keywords with brand and any catalog facet (price band, rating, availability, autoship, same-day delivery, pickup, product attributes) through filter. Each product: part number, name, link, brand, the price at a store (the store nearest zip, else a default store), list price and savings, see-price-in-cart flag, rating, review count, availability (online only, in stores), pickup and truck-delivery flags, image, short description, manufacturer part number and variant count, catalog listing ids (category_ids, for /tractorsupply/v1/category), plus raw. Also returns the facets with counts and the filter value of each option. 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 |
|---|---|---|
qrequired | string | Keywords. Example: chicken feeder |
brand | string | Brand as the catalog spells it, e.g. DEWALT (comma list). |
filter | string | Facet filters: the filter value of an option in facets, e.g. ads_f43659_ntk_cs:"Cordless" (several separated by ;). |
zip | string | 5-digit ZIP code: prices of the nearest store. |
page | integer | Page number (default 1). Example: 1 |
limit | integer | Products per page, 1-48 (default 24). Example: 24 |
Every endpoint also takes fresh, raw, fields (see lean responses and caching).
Example
curl "https://api.api.sh/tractorsupply/v1/search?q=chicken+feeder" \
-H "x-api-key: $APISH_KEY" import os, requests
res = requests.get(
"https://api.api.sh/tractorsupply/v1/search",
params={"q": "chicken feeder"},
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/search");
url.searchParams.set("q", "chicken feeder");
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)
{"query": "chicken feeder","applied_filters": {"brand": [],"filter": []},"price_store": {"store_number": "2314","name": null},"total": 4843,"page": 1,"count": 24,"next_page": 2,"items": [{"part_number": "238255499","id": "2097041","name": "Grandpa's Feeders 20 lb. The Original and Genuine Automatic Chicken Feeder, Standard","url": "https://www.tractorsupply.com/tsc/product/grandpas-feeders-the-original-and-genuine-automatic-chicken-feeder-standard-20lb","brand": "Grandpa's Feeders","price": 189.99,"max_price": null,"list_price": null,"savings": null,"savings_percent": null,"see_price_in_cart": false,"map_price": null,"pickup_price": null,"store_number": "2314","rating": 4.2453,"review_count": 53,"availability": "ONLINE_ONLY","pickup_eligible": false,"truck_delivery": false,"ribbon": null,"image": "https://media.tractorsupply.com/is/image/TractorSupplyCompany/2382554?$456$","description": "Grandpa's Feeders 20 lb. The Original and Genuine Automatic Chicken Feeder, Standard","category_ids": ["24691"],"manufacturer_part_number": "CFD-SML","variant_count": null},{"part_number": "238255599","id": "2097042","name": "Grandpa's Feeders 40 lb. The Original and Genuine Automatic Chicken Feeder, Large","url": "https://www.tractorsupply.com/tsc/product/grandpas-feeders-the-original-and-genuine-automatic-chicken-feeder-large-40lb","brand": "Grandpa's Feeders","price": 234.99,"max_price": null,"list_price": null,"savings": null,"savings_percent": null,"see_price_in_cart": false,"map_price": null,"pickup_price": null,"store_number": "2314","rating": 4.3143,"review_count": 35,"availability": "ONLINE_ONLY","pickup_eligible": false,"truck_delivery": false,"ribbon": null,"image": "https://media.tractorsupply.com/is/image/TractorSupplyCompany/2382555?$456$","description": "Grandpa's Feeders 40 lb. The Original and Genuine Automatic Chicken Feeder, Large","category_ids": ["24691"],"manufacturer_part_number": "CFD-LRG","variant_count": null},"… 22 more"],"facets": [{"name": "Brand","field": "mfName_ntk_cs","options": [{"label": "Hatching Time","count": 214,"filter": "mfName_ntk_cs:\"Hatching Time\""},{"label": "Hill's Science Diet","count": 114,"filter": "mfName_ntk_cs:\"Hill's Science Diet\""},"… 8 more"]},{"name": "Price","field": "offer_price_min_10151","options": [{"label": "({0 TO 10])","count": 527,"filter": "offer_price_min_10151:({0 TO 10])"},{"label": "({10 TO 20])","count": 591,"filter": "offer_price_min_10151:({10 TO 20])"},"… 6 more"]},"… 351 more"],"cached": false,"credits_used": 1}