# Shop Search Merchants By Category API

> Searches for merchants within a shop.app category page.

Source: https://www.sandbase.ai/apis/shop-app/search-merchants-by-category
API reference: https://www.sandbase.ai/apis/shop-app/search-merchants-by-category#api

## Facts

- Provider: Shop
- Type: Data API
- Endpoint: `POST https://api.sandbase.ai/v1/api/shop-app/search-merchants-by-category`
- Price: $0.03 per call
- Capabilities: api, shop app, ecommerce
- Billing: pay per use from one SandBase balance; no provider account or subscription needed

## Call it

`POST https://api.sandbase.ai/v1/api/shop-app/search-merchants-by-category` with `Authorization: Bearer $SANDBASE_API_KEY` and the parameters as a JSON body.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `category` | string | yes |  |
| `page` | integer | no |  |
| `page_size` | integer | no |  |
| `max_rating` | number | no |  |
| `min_rating` | number | no |  |
| `max_reviews` | integer | no |  |
| `min_reviews` | integer | no |  |

## FAQ

### How do I use the Shop Search Merchants By Category API?

Send a POST request to https://api.sandbase.ai/v1/api/shop-app/search-merchants-by-category with your SandBase API key in the Authorization header (Bearer) and the parameters as a JSON body. You can also try it in the Playground on this page without writing code.

### How much does the Shop Search Merchants By Category API cost?

$0.03 per call, billed from your SandBase balance. You are only charged for calls you make; there is no subscription.

### What parameters does the Shop Search Merchants By Category API accept?

Required: category (string). Optional: page (integer), page_size (integer), max_rating (number), min_rating (number), max_reviews (integer) and min_reviews (integer). The Parameters table and the Playground on this page list every field.

### What does the Shop Search Merchants By Category API return?

A JSON response returned in the same HTTP request (synchronous).

### Do I need a Shop developer account or API key?

No. Shop Search Merchants By Category runs through SandBase, so one SandBase API key covers this endpoint and every other API and model in the catalog. You do not need to apply for Shop API access separately.

## README

### Shop Search Merchants By Category API

Searches for merchants within a shop.app category page.

#### Request

```bash
curl -X POST "https://api.sandbase.ai/v1/run" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "shop-app/search-merchants-by-category", "page": 1, "category": "women", "page_size": 20, "max_rating": 5.0, "min_rating": 3.0, "max_reviews": 500000, "min_reviews": 100}'
```

The result is returned in `outputs[0].data`.

#### Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `category` | string | Yes | Category slug to search within. Known categories: women, men, beauty, home, fitness-nutrition, baby-toddler, food-drinks, sporting-goods, toys-games, pet-supplies, accessories, electronics, arts-crafts, luggage-bags. Ali |
| `max_rating` | number | No | Maximum average rating. Merchants above this rating are excluded. |
| `max_reviews` | integer | No | Maximum number of product reviews the merchant may have. Merchants with more reviews are excluded. |
| `min_rating` | number | No | Minimum average rating (e.g. 4.5). Merchants below this rating are excluded. |
| `min_reviews` | integer | No | Minimum number of product reviews the merchant must have. Merchants with fewer reviews are excluded. |
| `page` | integer | No | Page number for pagination (1-indexed). |
| `page_size` | integer | No | Number of merchants per page. |

#### Pricing

Flat $0.03 per call. Failed calls are not charged.
