Browse a category or brand
ab_browseBrowse and filter products by category, brand, price, stock, and attributes, with sorting, to find items like cheapest shampoo for oily hair or Graph brushes under 800,000 Toman.
Instructions
List the products of a category or brand (or the whole shop) with sorting, price range, stock and attribute filters.
Use for "cheapest shampoo for oily hair", "Graph brushes under 800,000 Toman", "newest sunscreens". Pass a category slug (ab_categories), a brand slug (ab_brands), both, or neither (whole shop). Attribute filters (volume, hair/skin type, gender, origin) come from ab_filters. Variable products show their cheapest variant as final_price and max_price as the top of the range. Details: ab_product; reviews: ab_reviews.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number, from 1. | |
| sort | No | Order of the listing. 'default' puts in-stock items first (relevance for a search). | default |
| brand | No | Brand slug from ab_brands, e.g. 'graph' or 'la-roche-posay'. | |
| limit | No | Products per page. | |
| filters | No | Attribute filters from ab_filters: attribute -> values (any of them matches), e.g. {'bulk': ['250-میلی-لیتر'], 'hair': ['چرب']}. | |
| category | No | Category slug from ab_categories, e.g. 'hair-shampoo' or 'sunscreen'. | |
| max_price | No | Maximum current price in Toman, e.g. 2000000. | |
| min_price | No | Minimum current price in Toman, e.g. 1000000. | |
| on_sale_only | No | Only discounted items. | |
| in_stock_only | No | Only items that can be ordered now. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||