> ## Documentation Index
> Fetch the complete documentation index at: https://docs.webrouter.net/llms.txt
> Use this file to discover all available pages before exploring further.

# Rainforest API

> Real-time Amazon product data from Traject Data's Rainforest API: product pages, search results, seller offers, bestseller lists and search suggestions on every Amazon domain, as structured JSON.

![](https://mintcdn.com/webrouter/T_A5Quwg50s_JK2y/logo/data-apis/rainforest.webp?fit=max\&auto=format\&n=T_A5Quwg50s_JK2y\&q=85\&s=e470939401c3f619eac5fea69dda6bfc)

[Web Catalog · Commerce](https://docs.webrouter.net/data-apis.md?category=commerce)

Needs&#x20;

`RAINFOREST_API_KEY`

Endpoints

5

Auth

Key in query

[Vendor docs](https://docs.trajectdata.com/rainforestapi/product-data-api/overview) · [Pricing](https://www.rainforestapi.com/pricing) · Serves `amazon.com`

## Setup

| Variable | | What it is |
| - | - | - |
| `RAINFOREST_API_KEY` | required | A Rainforest API key (app.rainforestapi.com), sent as the api\_key query parameter. |

Put them in your environment or `.env`; [Data APIs](https://docs.webrouter.net/vendors.md) covers the other ways.

## Notes

* Every call is GET /request with type naming the data; each endpoint here fixes type.
* Billed in credits: 1 per page retrieved, more for some options; request\_info.credits\_used and credits\_remaining in each answer show the cost.
* Give asin (or gtin) with amazon\_domain. The vendor's url parameter, which takes a raw Amazon page URL, is left out.
* Calls are run against Amazon in real time when made, not served from a stored index.

## Endpoints

GET

Get an Amazon product

The product page of one ASIN as structured data: title, price and buybox, ratings, images, variants and more.

[Open](#rainforest-product)

GET

Search Amazon products

Search results for a term on one Amazon site: position, ASIN, title, price, rating, sponsored flag.

[Open](#rainforest-search)

GET

Get an Amazon product's offers

The seller offers for one ASIN, filterable by condition, Prime and free shipping.

[Open](#rainforest-offers)

GET

Get an Amazon bestsellers list

Ranked bestsellers of one Amazon category, with ASIN, title, price and rating.

[Open](#rainforest-bestsellers)

GET

Get Amazon search suggestions

The search-box suggestions Amazon shows for a typed term.

[Open](#rainforest-autocomplete)

### Get an Amazon product

GET

`/request`

`rainforest.product`

The product page of one ASIN as structured data: title, price and buybox, ratings, images, variants and more.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`type` required</td><td>string</td><td>query</td><td>Always product. One of `product` Example `product`</td></tr>
    <tr><td>`amazon_domain`</td><td>string</td><td>query</td><td>Amazon site, e.g. amazon.com, amazon.co.uk, amazon.de (see the supported domains list). Example `amazon.com`</td></tr>
    <tr><td>`asin`</td><td>string</td><td>query</td><td>Amazon ASIN; use with amazon\_domain. Example `B073JYC4XM`</td></tr>

    <tr>
      <td>
        `gtin`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        GTIN, ISBN, UPC or EAN, converted to an ASIN first; use with amazon\_domain.
      </td>
    </tr>

    <tr>
      <td>
        `fields`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Comma-separated product fields to keep, dot notation for nested ones.
      </td>
    </tr>

    <tr>
      <td>
        `include_summarization_attributes`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        Add the per-attribute ratings and customers\_say summary.
      </td>
    </tr>

    <tr>
      <td>
        `variant_prices`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        Add each variant's price; costs 2 credits instead of 1.
      </td>
    </tr>

    <tr>
      <td>
        `language`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Display language of the Amazon page.
      </td>
    </tr>

    <tr>
      <td>
        `currency`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Currency to request the Amazon page in.
      </td>
    </tr>

    <tr>
      <td>
        `customer_location`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Country the page is viewed from, for cross-border prices and shipping.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://docs.trajectdata.com/rainforestapi/product-data-api/parameters/product) · Same job: [Best Buy](https://docs.webrouter.net/data-apis/bestbuy.md#bestbuy-products-get), [Etsy Open API v3](https://docs.webrouter.net/data-apis/etsy.md#etsy-listings-get), [Keepa](https://docs.webrouter.net/data-apis/keepa.md#keepa-product), [Open Food Facts](https://docs.webrouter.net/data-apis/openfoodfacts.md#openfoodfacts-product-get), [Outscraper](https://docs.webrouter.net/data-apis/outscraper.md#outscraper-amazon-products)

```python Python theme={null}
router.call_data_api("rainforest.product", {'type': 'product', 'amazon_domain': 'amazon.com', 'asin': 'B073JYC4XM'})
```

```text MCP theme={null}
call_data_api(endpoint="rainforest.product", params={"type": "product", "amazon_domain": "amazon.com", "asin": "B073JYC4XM"})
```

> [!NOTE]
>
> * asin or gtin is required (one of them), or the call is a 400.
> * 1 credit per call; variant\_prices, include\_safety\_product\_resources and similar options cost more, as listed per option. A gtin lookup is cached for 2 months.

### Search Amazon products

GET

`/request`

`rainforest.search`

Search results for a term on one Amazon site: position, ASIN, title, price, rating, sponsored flag.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`type` required</td><td>string</td><td>query</td><td>Always search. One of `search` Example `search`</td></tr>
    <tr><td>`amazon_domain`</td><td>string</td><td>query</td><td>Amazon site, e.g. amazon.com, amazon.co.uk, amazon.de (see the supported domains list). Example `amazon.com`</td></tr>
    <tr><td>`search_term` required</td><td>string</td><td>query</td><td>Search term. Example `memory cards`</td></tr>

    <tr>
      <td>
        `category_id`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Category id to search within (from the Categories API).
      </td>
    </tr>

    <tr><td>`sort_by`</td><td>string</td><td>query</td><td>Sort order. One of `bestseller_rankings`, `most_recent`, `price_low_to_high`, `price_high_to_low`, `featured`, `average_review`</td></tr>

    <tr>
      <td>
        `refinements`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Comma-separated refinement values returned in a previous search's refinements array.
      </td>
    </tr>

    <tr>
      <td>
        `exclude_sponsored`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        Leave sponsored results out; default false.
      </td>
    </tr>

    <tr>
      <td>
        `direct_search`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        Do not let Amazon auto-correct the spelling.
      </td>
    </tr>

    <tr>
      <td>
        `number_of_results`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        How many results to return, at most what the page shows.
      </td>
    </tr>

    <tr>
      <td>
        `page`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Page to fetch; see pagination.total\_pages in the answer.
      </td>
    </tr>

    <tr>
      <td>
        `max_page`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Fetch pages 1..N and join them; each page fetched is a credit.
      </td>
    </tr>

    <tr>
      <td>
        `language`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Display language of the Amazon page.
      </td>
    </tr>

    <tr>
      <td>
        `currency`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Currency to request the Amazon page in.
      </td>
    </tr>

    <tr>
      <td>
        `customer_location`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Country the page is viewed from, for cross-border prices and shipping.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://docs.trajectdata.com/rainforestapi/product-data-api/parameters/search) · Same job: [Best Buy](https://docs.webrouter.net/data-apis/bestbuy.md#bestbuy-products-search), [Etsy Open API v3](https://docs.webrouter.net/data-apis/etsy.md#etsy-listings-search), [Keepa](https://docs.webrouter.net/data-apis/keepa.md#keepa-search-products), [Open Food Facts](https://docs.webrouter.net/data-apis/openfoodfacts.md#openfoodfacts-products-search)

```python Python theme={null}
router.call_data_api("rainforest.search", {'type': 'search', 'amazon_domain': 'amazon.com', 'search_term': 'memory cards'})
```

```text MCP theme={null}
call_data_api(endpoint="rainforest.search", params={"type": "search", "amazon_domain": "amazon.com", "search_term": "memory cards"})
```

> [!NOTE]
>
> * 1 credit per page fetched (max\_page multiplies it); include\_products\_count, which runs product calls for top results, is left out because each one is another credit.

### Get an Amazon product's offers

GET

`/request`

`rainforest.offers`

The seller offers for one ASIN, filterable by condition, Prime and free shipping.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`type` required</td><td>string</td><td>query</td><td>Always offers. One of `offers` Example `offers`</td></tr>
    <tr><td>`amazon_domain`</td><td>string</td><td>query</td><td>Amazon site, e.g. amazon.com, amazon.co.uk, amazon.de (see the supported domains list). Example `amazon.com`</td></tr>
    <tr><td>`asin`</td><td>string</td><td>query</td><td>Amazon ASIN; use with amazon\_domain. Example `B073JYC4XM`</td></tr>

    <tr>
      <td>
        `gtin`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        GTIN, ISBN, UPC or EAN, converted to an ASIN first; use with amazon\_domain.
      </td>
    </tr>

    <tr>
      <td>
        `offers_prime`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        Prime-eligible offers only.
      </td>
    </tr>

    <tr>
      <td>
        `offers_free_shipping`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        Free-shipping offers only.
      </td>
    </tr>

    <tr>
      <td>
        `offers_condition_new`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        New-condition offers only.
      </td>
    </tr>

    <tr>
      <td>
        `show_different_asins`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        Include offers Amazon shows for other ASINs (e.g. when this one is out of stock).
      </td>
    </tr>

    <tr>
      <td>
        `page`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Page to fetch; see pagination.total\_pages in the answer.
      </td>
    </tr>

    <tr>
      <td>
        `max_page`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Fetch pages 1..N and join them; each page fetched is a credit.
      </td>
    </tr>

    <tr>
      <td>
        `language`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Display language of the Amazon page.
      </td>
    </tr>

    <tr>
      <td>
        `currency`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Currency to request the Amazon page in.
      </td>
    </tr>

    <tr>
      <td>
        `customer_location`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Country the page is viewed from, for cross-border prices and shipping.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://docs.trajectdata.com/rainforestapi/product-data-api/parameters/offers) · Same job: [Best Buy](https://docs.webrouter.net/data-apis/bestbuy.md#bestbuy-openbox-get)

```python Python theme={null}
router.call_data_api("rainforest.offers", {'type': 'offers', 'amazon_domain': 'amazon.com', 'asin': 'B073JYC4XM'})
```

```text MCP theme={null}
call_data_api(endpoint="rainforest.offers", params={"type": "offers", "amazon_domain": "amazon.com", "asin": "B073JYC4XM"})
```

> [!NOTE]
>
> * asin or gtin is required (one of them), or the call is a 400.
> * 1 credit per page fetched.

### Get an Amazon bestsellers list

GET

`/request`

`rainforest.bestsellers`

Ranked bestsellers of one Amazon category, with ASIN, title, price and rating.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`type` required</td><td>string</td><td>query</td><td>Always bestsellers. One of `bestsellers` Example `bestsellers`</td></tr>
    <tr><td>`amazon_domain`</td><td>string</td><td>query</td><td>Amazon site, e.g. amazon.com, amazon.co.uk, amazon.de (see the supported domains list). Example `amazon.com`</td></tr>

    <tr>
      <td>
        `category_id`

        required
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Bestsellers category id from the Categories API.
      </td>
    </tr>

    <tr>
      <td>
        `top_free`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        The Top 100 Free list instead of Paid, where a category has both.
      </td>
    </tr>

    <tr>
      <td>
        `page`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Page to fetch; see pagination.total\_pages in the answer.
      </td>
    </tr>

    <tr>
      <td>
        `max_page`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Fetch pages 1..N and join them; each page fetched is a credit.
      </td>
    </tr>

    <tr>
      <td>
        `language`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Display language of the Amazon page.
      </td>
    </tr>

    <tr>
      <td>
        `currency`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Currency to request the Amazon page in.
      </td>
    </tr>

    <tr>
      <td>
        `customer_location`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Country the page is viewed from, for cross-border prices and shipping.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://docs.trajectdata.com/rainforestapi/product-data-api/parameters/bestsellers) · Same job: [Keepa](https://docs.webrouter.net/data-apis/keepa.md#keepa-bestsellers)

> [!NOTE]
>
> * 1 credit per page fetched.

### Get Amazon search suggestions

GET

`/request`

`rainforest.autocomplete`

The search-box suggestions Amazon shows for a typed term.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`type` required</td><td>string</td><td>query</td><td>Always autocomplete. One of `autocomplete` Example `autocomplete`</td></tr>
    <tr><td>`amazon_domain` required</td><td>string</td><td>query</td><td>Amazon site, e.g. amazon.com, amazon.co.uk, amazon.de (see the supported domains list). Example `amazon.com`</td></tr>
    <tr><td>`search_term` required</td><td>string</td><td>query</td><td>Typed term. Example `memory c`</td></tr>

    <tr>
      <td>
        `autocomplete_alias`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Department to scope suggestions to; default all departments.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://docs.trajectdata.com/rainforestapi/product-data-api/parameters/autocomplete)

```python Python theme={null}
router.call_data_api("rainforest.autocomplete", {'type': 'autocomplete', 'amazon_domain': 'amazon.com', 'search_term': 'memory c'})
```

```text MCP theme={null}
call_data_api(endpoint="rainforest.autocomplete", params={"type": "autocomplete", "amazon_domain": "amazon.com", "search_term": "memory c"})
```

> [!NOTE]
>
> * 1 credit per call.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.