# Amazon Products By Category API

> Get paginated Amazon products for a numeric category node in a selected country marketplace, with configurable result sorting.

Source: https://www.sandbase.ai/model/amazon/category-products
API reference: https://www.sandbase.ai/model/amazon/category-products/docs

## Facts

- Provider: Amazon
- Type: Data API
- Endpoint: `POST https://api.sandbase.ai/v1/api/amazon/category-products`
- Price: $0.02 per call
- Capabilities: api, amazon, ecommerce
- Billing: pay per use from one SandBase balance; no provider account or subscription needed

## Call it

`POST https://api.sandbase.ai/v1/api/amazon/category-products` with `Authorization: Bearer $SANDBASE_API_KEY` and the parameters as a JSON body.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `categoryId` | string | yes |  |
| `country` | string | no | US, AU, BR, CA, CN, FR, DE, IN, IT, MX, NL, SG, ES, TR, AE, GB, JP, SA, PL, SE, BE, EG, ZA, IE |
| `sortBy` | string | no | RELEVANCE, LOWEST_PRICE, HIGHEST_PRICE, REVIEWS, NEWEST, BEST_SELLERS |
| `page` | integer | no |  |

## FAQ

### How do I use the Amazon Products By Category API?

Send a POST request to https://api.sandbase.ai/v1/api/amazon/category-products 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 Amazon Products By Category API cost?

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

### What parameters does the Amazon Products By Category API accept?

Required: categoryId (string). Optional: country (one of US, AU, BR, CA, CN, FR, DE, IN, IT, MX, NL, SG, ES, TR, AE, GB, JP, SA, PL, SE, BE, EG, ZA, IE), sortBy (one of RELEVANCE, LOWEST_PRICE, HIGHEST_PRICE, REVIEWS, NEWEST, BEST_SELLERS) and page (integer). The Parameters table and the Playground on this page list every field.

### What does the Amazon Products By Category API return?

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

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

No. Amazon Products 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 Amazon API access separately.

## README

### Amazon Products By Category API

Get paginated Amazon products for a numeric category node in a selected country marketplace, with configurable result sorting.

The response is the platform's original data structure.

#### Request

```bash
curl -X POST "https://api.sandbase.ai/v1/run" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "amazon/category-products", "categoryId": "electronics"}'
```

#### Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `categoryId` | string | Yes | Numeric Amazon category node ID taken from the node query parameter of a category URL. |
| `country` | string | No | Country code for the Amazon product. |
| `sortBy` | string | No | Sort by. |
| `page` | integer | No | Page number for pagination. |

#### Pricing

Flat price per call. Failed calls and empty results are not charged.
