Home & Garden Products API

An interactive demo of the Affiliate.com Products API for home and garden products: pick a department, build filters with the real fields and operators, and see the request that returns the results.

Affiliate.com Home & Garden Products API graphic

Home shoppers rarely buy one thing. They look for a rug that goes with a sofa, towels in a color, a hose long enough to reach the bed, and they compare several stores before they decide. The Affiliate.com Products API lets a developer search the whole Home & Garden area across merchants and affiliate networks with one request, and get the same fields back for every result. This guide to the Home & Garden Products API shows what that looks like on live data, last pulled on November 23, 2026. It has an interactive demo you can change, the request behind every result, and notes on keeping a home and garden page accurate.

What counts as Home & Garden

In the current Shopify Standard Product Taxonomy, Home & Garden is one of the 26 top-level categories and has 21 second-level groups. They include Decor, Kitchen & Dining, Lawn & Garden, Lighting, Linens & Bedding, Bathroom Accessories, Household Appliances, Household Supplies and Pool & Spa, among others. The API does not filter on that taxonomy directly, so the searches in this article use keywords.

Who builds with a home and garden API

Home and garden products suit an API because the range is wide and the buying is visual. A home blog that earns through affiliate links wants room guides built from real products with real prices. A seasonal page wants patio furniture or string lights while they are in stock and on sale. A comparison page needs the same kind of product from several retailers side by side.

A shopping assistant that gets asked for a rug under a set price in a particular size needs real listings to recommend, with the price and availability attached. The work is the same in every case: search by what the shopper would type, keep what is in stock, and show a price the reader can trust.

Try the search

This demo runs on real results from the Affiliate.com Products API, refreshed weekly and last pulled on November 23, 2026. Pick a department and one of the quick filters, which are already set to a sensible starting point. The request below the results updates with every change, and clicking a product shows the record the API returns for it. To go further, open Customize filters and build your own with the API’s fields, operators and sort options.

How the request is built

Every control in the demo uses the API’s own field names and operators, and each filter adds one criterion to the search array. The criteria are joined together. That is the whole model: start with a keyword search, then narrow.

ControlWhat it adds to the request
Departmentname LIKE a short list of keyword phrases for that department, such as throw pillow, bath towel or garden hose
In stock, USD, imageavailability = InStock, currency = USD and image_url NOT NULL
final_price, sale_discountA numeric criterion with one of the operators the API accepts for those fields: <, <=, >, >=, = or BETWEEN (two values joined as min|max)
on_saleon_sale = true
merchant.namemerchant.name LIKE the merchant you picked
sort_by, sort_ordersort_by can be relevance, final_price, regular_price, sale_discount or name, and sort_order is asc or desc. Sort order is ignored when sorting by relevance

One criterion is always present: it limits results to listings that have an image. The fields list trims each result to what a product card needs.

The phrases behind each department

Each tab searches a short list of phrases joined with ||, which means any of them can match. Phrases such as throw pillow or garden hose are more precise than a single word, and the list is easy to widen or narrow.

DepartmentPhrases the demo searches
Decorthrow pillow, wall art, area rug, picture frame, candle, decorative vase
Bed & bathbath towel, duvet cover, sheet set, shower curtain, bath mat, comforter
Kitchen & diningdinnerware set, cookware set, kitchen towel, cutlery set, food storage container
Lightingfloor lamp, table lamp, string lights, ceiling light, led strip lights
Lawn & gardengarden hose, garden planter, patio umbrella, outdoor furniture, garden tools, raised garden bed
Storagestorage bins, shoe rack, closet organizer, laundry basket, storage shelf

Fields worth building on

FieldWhat it gives you
name, brandThe listing title and brand as the merchant publishes them.
regular_price, final_price, sale_discountThe full price, the price a shopper pays now, and the discount. All three can be used as filters.
availabilityInStock, OutOfStock or Unknown. Filtering on InStock keeps unavailable items off the page.
image_urlThe product image the merchant supplies. A NOT NULL filter on it keeps image-less listings out of a grid.
merchant.name, network.nameThe retailer and the affiliate network the listing comes from.
categoryThe merchant’s own category text. Labels differ between merchants, so this article filters by keyword instead.

Why this search uses keywords instead of a category

The category field holds each merchant’s own label, and merchants do not share one vocabulary. In a test search for home products with the same filters as the demo, in stock and in US dollars, the 100 results carried 22 different labels, such as “Home & Garden > Decor > Throw Pillows”, “Home > Decor > Wall Art”, “Home & Living > Bath & Beauty > Bathroom Accessories > Bath Towels” and “Patio & Garden > Patio & Outdoor Decor”.

Searching by the words Home & Garden in that field has the opposite problem. The first 100 results came from only 6 merchants, with 65 from one marketplace and 26 from an e-book seller, and none from Walmart or Wayfair, which supplied 86 of the 100 results in the keyword search because they file their products under their own labels.

A keyword search reaches every merchant, and the other filters keep the results tidy. The catch is that one word is too loose. A bare “garden” also matched books, CDs and records in a test, so the demo searches for phrases such as garden hose, throw pillow and bath towel instead.

{
  "per_page": 5,
  "search": [
    { "field": "name", "operator": "LIKE", "value": "throw pillow||area rug||bath towel||garden hose" },
    { "field": "availability", "operator": "=", "value": "InStock" },
    { "field": "currency", "operator": "=", "value": "USD" }
  ],
  "fields": ["name", "category", "final_price", "merchant.name"]
}

Getting started in three steps

Moving from the demo to your own page takes three steps, and the request panel above already contains the second one.

StepWhat to do
1. Get a keyRequest an API key from Affiliate.com. Every request sends it as a Bearer token in the Authorization header, which is why the demo above never needs one.
2. Send a searchPOST a search array to https://api.affiliate.com/v1/products. Begin with a keyword phrase for your department, then add availability, currency and price filters until the results look right.
3. Read the recordsEach result carries the name, price, availability, image and merchant. Show the fields you need and keep the time you fetched them, so a page can say how fresh its prices are.

Keeping a home and garden page current

Freshness is worth measuring rather than assuming. In a check on November 12, 2026, every one of 100 home and garden records had been updated within the previous seven days, and 81 of them within the previous 24 hours. Some merchants refresh within hours and others every day or two. The sample in this article is rebuilt every day, and the date near the top shows when it was last pulled.

A product grid is only useful while its prices and availability are right. The guide on how often product pages should be updated covers a sensible refresh schedule, and planning holiday content with product data lists what to check before gift guide season, when decor and kitchen items are in demand. For a page that saves picks for a reader, building wishlists and collections shows the pattern.

If the search sits behind a chat assistant rather than a web page, the same catalog is available through the MCP server. Product Data MCP vs. Product Data API explains how to choose between the two layers.

One API call
Find home and garden products in one API call
  • ✓One request searches merchants across affiliate networks
  • ✓Prices, discounts and availability on every result
  • ✓In-stock, US-dollar listings filtered in the request itself
Get API access →
Request
POST https://api.affiliate.com/v1/products
Authorization: Bearer YOUR_API_KEY

{
  "per_page": 12,
  "search": [
    { "field": "name", "operator": "LIKE", "value": "throw pillow||area rug||bath towel||garden hose" },
    { "field": "availability", "operator": "=", "value": "InStock" },
    { "field": "currency", "operator": "=", "value": "USD" },
    { "field": "image_url", "operator": "NOT NULL" }
  ]
}