# Amazon Search API

> Search Amazon by keyword: organic results with ASIN, title, price, old price, rating, reviews, Prime and delivery info, plus sponsored products and pagination.

Source: https://www.sandbase.ai/apis/amazon/search
API reference: https://www.sandbase.ai/apis/amazon/search/docs

## Facts

- Provider: Amazon
- Type: Data API
- Endpoint: `POST https://api.sandbase.ai/v1/api/amazon/search`
- Price: $0.01 per call
- Free allowance: 100 calls per organization per UTC day, shared across eligible APIs
- Capabilities: api, amazon, ecommerce, product data
- Billing: pay per use from one SandBase balance; no provider account or subscription needed

## Call it

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

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `k` | string \| number \| boolean | yes |  |
| `s` | any | no |  |
| `dc` | any | no |  |
| `rh` | string \| number \| boolean | no |  |
| `node` | string \| number \| boolean | no |  |
| `page` | string \| number \| boolean | no |  |
| `device` | string \| number \| boolean | no |  |
| `language` | string \| number \| boolean | no |  |
| `delivery_zip` | string \| number \| boolean | no |  |
| `amazon_domain` | string \| number \| boolean | no |  |
| `json_restrictor` | string \| number \| boolean | no |  |
| `shipping_location` | string \| number \| boolean | no |  |

## FAQ

### How do I use the Amazon Search API?

Send a POST request to https://api.sandbase.ai/v1/api/amazon/search 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 Search API cost?

$0.01 per call. Every organization gets 100 free calls per UTC day, shared across eligible SandBase APIs including this one; after that each call is billed at this price from your SandBase balance. There is no subscription.

### What parameters does the Amazon Search API accept?

Required: k (string | number | boolean). Optional: s (any), dc (any), rh (string | number | boolean), node (string | number | boolean), page (string | number | boolean) and device (string | number | boolean) and 5 more. The Parameters table and the Playground on this page list every field.

### What does the Amazon Search API return?

A JSON result. This endpoint runs asynchronously, so the response tells you how to fetch the finished result.

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

No. Amazon Search 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 Search

Search Amazon by keyword: organic results with ASIN, title, price, old price, rating, reviews, Prime and delivery info, plus sponsored products and pagination.

#### 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/search", "k": "wireless earbuds"}'
```

This API runs asynchronously. `/v1/run` returns a task `id` with status `pending`; poll `GET https://api.sandbase.ai/v1/run/{id}` until `status` is `completed` and read the result from `outputs[0].data`.

#### Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `k` | string/number/boolean | Yes | The query you want to search. You can use anything that you would use in a regular Amazon search. This parameter can't be used with the `node` parameter. |
| `amazon_domain` | string/number/boolean | No | The Amazon domain to use. It defaults to `amazon.com`. Head to Amazon domains for a full list of supported Amazon domains. |
| `dc` | any | No | The exclusion of results from an auto-corrected query when the original query is spelled wrong. It can be set to `true` to exclude these results, or `false` to include them (default). |
| `delivery_zip` | string/number/boolean | No | ZIP Postal code. To filter the shipping products by a selected area. |
| `device` | string/number/boolean | No | The device to use to get the results. It can be set to `desktop` (default) to use a regular browser, `tablet` to use a tablet browser (currently using iPads), or `mobile` to use a mobile browser. |
| `json_restrictor` | string/number/boolean | No | The fields you want to include in the output, reducing payload size for faster response. See the JSON Restrictor documentation for more details. |
| `language` | string/number/boolean | No | The language to use for the Amazon search. It's a locale name represented as _. (e.g., on amazon.com `en_US` for English, `es_US` for Spanish, or on amazon.co.jp `ja_JP` for Japanese). Head to Amazon … |
| `node` | string/number/boolean | No | Specifies the category for Amazon search results. You can find the appropriate node value by browsing Amazon’s website and accessing a specific category. The node ID is typically included in the URL a… |
| `page` | string/number/boolean | No | The page number. It's used for pagination. (e.g., `1` (default) is the first page of results, `2` is the 2nd page of results, `3` is the 3rd page of results, etc.). |
| `rh` | string/number/boolean | No | Items filtering based on their attributes. The structure is a list of `key:value` pairs separated by `,`. For example `n:16318031,p_n_cpf_eligible:21512497011,p_72:1248897011` to filter for products i… |
| `s` | any | No | Sorting results. Available options: `relevanceblender` - Featured (default) `price-asc-rank` - Price: Low to High `price-desc-rank` - Price: High to Low `review-rank` - Avg. Customer Review `date-desc… |
| `shipping_location` | string/number/boolean | No | Shipping country. To filter the shipping products by a selected country. |

#### Pricing

Flat price per call. Failed calls are not charged.
