> ## 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.

# Keepa

> Amazon product price and sales-rank history, product search, best-seller lists, categories and seller data across 11 Amazon marketplaces.

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

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

Needs&#x20;

`KEEPA_API_KEY`

Endpoints

8

Auth

Key in query

[Vendor docs](https://github.com/keepacom/api_backend)

&#x20;·&#x20;

[Pricing](https://keepa.com/#!api)

## Setup

| Variable | | What it is |
| - | - | - |
| `KEEPA_API_KEY` | required | A Keepa private API access key (keepa.com > API). Sent as the key query parameter. |

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

## Notes

* Billed in tokens from a per-minute refill. Every answer carries tokensLeft, refillIn (ms), refillRate (per minute) and tokensConsumed; when tokens run out the API answers 503 until they refill.
* Prices are integers in the locale's smallest unit (4900 = \$49.00; in Japan 4900 = 4900 yen); -1 means no offer at that time.
* Times in csv histories are Keepa minutes: unix\_ms = (keepa\_minute + 21564000) \* 60000.
* domain is a number, not a hostname: 1 is amazon.com.
* Product finder, deals, lightning deals and product tracking (which writes) are not in this entry.

## Endpoints

GET

Get products by ASIN

Product objects with price, rank and review history, optionally stats, offers and buy box data.

[Open](#keepa-product)

GET

Get products by UPC, EAN or ISBN

Product objects for product codes; one code can map to several ASINs.

[Open](#keepa-product-by-code)

GET

Search products

Amazon products matching keywords, as product objects or just ASINs.

[Open](#keepa-search-products)

GET

Search categories

Amazon category nodes whose name matches keywords.

[Open](#keepa-search-categories)

GET

Look up categories

Category objects by node id, optionally with their parent tree.

[Open](#keepa-category)

GET

Get best sellers

ASIN list of the most popular products by sales in a category or product group.

[Open](#keepa-bestsellers)

GET

Get sellers

Amazon marketplace seller objects by seller id, optionally with the ASINs they list.

[Open](#keepa-seller)

GET

Get top sellers

Seller ids of the most rated Amazon marketplace sellers.

[Open](#keepa-topseller)

### Get products by ASIN

GET

`/product`

`keepa.product`

Product objects with price, rank and review history, optionally stats, offers and buy box data.

Input

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

      <th>
        Type
      </th>

      <th>
        In
      </th>

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

  <tbody>
    <tr><td>`domain` required</td><td>integer</td><td>query</td><td>Amazon locale: 1 com, 2 co.uk, 3 de, 4 fr, 5 co.jp, 6 ca, 8 it, 9 es, 10 in, 11 com.mx, 12 com.br. One of `1`, `2`, `3`, `4`, `5`, `6`, `8`, `9`, `10`, `11`, `12` Example `1`</td></tr>
    <tr><td>`asin` required</td><td>string</td><td>query</td><td>1-100 ASINs, comma separated (at most 20 with offers). Example `B0BSHF7WHW`</td></tr>

    <tr>
      <td>
        `stats`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Add a stats field (current, min/max and weighted mean prices) over the last N days (e.g. 90), or between two dates as 'start,end' (ISO 8601 such as 2015-12-31).
      </td>
    </tr>

    <tr>
      <td>
        `update`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Force a refresh when the stored data is older than this many hours. Default 1; 0 means live data and may cost an extra token.
      </td>
    </tr>

    <tr><td>`history`</td><td>integer</td><td>query</td><td>1 includes the csv price history; 0 leaves it out for a faster, smaller answer. One of `0`, `1`</td></tr>

    <tr>
      <td>
        `offers`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Number of marketplace offers to retrieve. Costs extra tokens; with offers at most 20 ASINs per call.
      </td>
    </tr>

    <tr><td>`rating`</td><td>integer</td><td>query</td><td>1 includes rating and review-count history even without offers. One of `0`, `1`</td></tr>
    <tr><td>`buybox`</td><td>integer</td><td>query</td><td>1 includes all buy box data in the product and stats. One of `0`, `1`</td></tr>
  </tbody>
</table>

[Vendor docs](https://github.com/keepacom/api_backend/blob/master/src/main/java/com/keepa/api/backend/structs/Request.java) · 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), [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), [Rainforest API](https://docs.webrouter.net/data-apis/rainforest.md#rainforest-product)

```python Python theme={null}
router.call_data_api("keepa.product", {'domain': 1, 'asin': 'B0BSHF7WHW'})
```

```text MCP theme={null}
call_data_api(endpoint="keepa.product", params={"domain": 1, "asin": "B0BSHF7WHW"})
```

> [!NOTE]
>
> * Offers and live data (update 0) cost extra tokens; tokensConsumed in the answer gives the charge.

### Get products by UPC, EAN or ISBN

GET

`/product`

`keepa.product.by_code`

Product objects for product codes; one code can map to several ASINs.

Input

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

      <th>
        Type
      </th>

      <th>
        In
      </th>

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

  <tbody>
    <tr><td>`domain` required</td><td>integer</td><td>query</td><td>Amazon locale: 1 com, 2 co.uk, 3 de, 4 fr, 5 co.jp, 6 ca, 8 it, 9 es, 10 in, 11 com.mx, 12 com.br. One of `1`, `2`, `3`, `4`, `5`, `6`, `8`, `9`, `10`, `11`, `12` Example `1`</td></tr>

    <tr>
      <td>
        `code`

        required
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        UPC, EAN or ISBN-13 codes, comma separated, up to 100.
      </td>
    </tr>

    <tr>
      <td>
        `stats`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Add a stats field (current, min/max and weighted mean prices) over the last N days (e.g. 90), or between two dates as 'start,end' (ISO 8601 such as 2015-12-31).
      </td>
    </tr>

    <tr>
      <td>
        `update`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Force a refresh when the stored data is older than this many hours. Default 1; 0 means live data and may cost an extra token.
      </td>
    </tr>

    <tr><td>`history`</td><td>integer</td><td>query</td><td>1 includes the csv price history; 0 leaves it out for a faster, smaller answer. One of `0`, `1`</td></tr>

    <tr>
      <td>
        `offers`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Number of marketplace offers to retrieve. Costs extra tokens; with offers at most 20 ASINs per call.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://github.com/keepacom/api_backend/blob/master/src/main/java/com/keepa/api/backend/structs/Request.java) · 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), [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), [Rainforest API](https://docs.webrouter.net/data-apis/rainforest.md#rainforest-product)

> [!NOTE]
>
> * Same path as keepa.product with code instead of asin; never send both.

### Search products

GET

`/search`

`keepa.search.products`

Amazon products matching keywords, as product objects or just ASINs.

Input

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

      <th>
        Type
      </th>

      <th>
        In
      </th>

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

  <tbody>
    <tr><td>`domain` required</td><td>integer</td><td>query</td><td>Amazon locale: 1 com, 2 co.uk, 3 de, 4 fr, 5 co.jp, 6 ca, 8 it, 9 es, 10 in, 11 com.mx, 12 com.br. One of `1`, `2`, `3`, `4`, `5`, `6`, `8`, `9`, `10`, `11`, `12` Example `1`</td></tr>
    <tr><td>`type` required</td><td>string</td><td>query</td><td>Must be product. One of `product` Example `product`</td></tr>
    <tr><td>`term` required</td><td>string</td><td>query</td><td>Keywords. Example `usb c hub`</td></tr>

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

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        0-9, 10 results each; keep other parameters identical. Without page the first 40 results come back.
      </td>
    </tr>

    <tr>
      <td>
        `stats`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Add a stats field (current, min/max and weighted mean prices) over the last N days (e.g. 90), or between two dates as 'start,end' (ISO 8601 such as 2015-12-31).
      </td>
    </tr>

    <tr>
      <td>
        `update`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Force a refresh when the stored data is older than this many hours. Default 1; 0 means live data and may cost an extra token.
      </td>
    </tr>

    <tr><td>`history`</td><td>integer</td><td>query</td><td>1 includes the csv price history; 0 leaves it out for a faster, smaller answer. One of `0`, `1`</td></tr>
    <tr><td>`asins-only`</td><td>integer</td><td>query</td><td>1 returns only the ASINs. One of `0`, `1`</td></tr>
  </tbody>
</table>

[Vendor docs](https://github.com/keepacom/api_backend/blob/master/src/main/java/com/keepa/api/backend/structs/Request.java) · 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), [Open Food Facts](https://docs.webrouter.net/data-apis/openfoodfacts.md#openfoodfacts-products-search), [Rainforest API](https://docs.webrouter.net/data-apis/rainforest.md#rainforest-search)

```python Python theme={null}
router.call_data_api("keepa.search.products", {'domain': 1, 'type': 'product', 'term': 'usb c hub'})
```

```text MCP theme={null}
call_data_api(endpoint="keepa.search.products", params={"domain": 1, "type": "product", "term": "usb c hub"})
```

> [!NOTE]
>
> * At most 50 results per search term.

### Search categories

GET

`/search`

`keepa.search.categories`

Amazon category nodes whose name matches keywords.

Input

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

      <th>
        Type
      </th>

      <th>
        In
      </th>

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

  <tbody>
    <tr><td>`domain` required</td><td>integer</td><td>query</td><td>Amazon locale: 1 com, 2 co.uk, 3 de, 4 fr, 5 co.jp, 6 ca, 8 it, 9 es, 10 in, 11 com.mx, 12 com.br. One of `1`, `2`, `3`, `4`, `5`, `6`, `8`, `9`, `10`, `11`, `12` Example `1`</td></tr>
    <tr><td>`type` required</td><td>string</td><td>query</td><td>Must be category. One of `category` Example `category`</td></tr>

    <tr>
      <td>
        `term`

        required
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Space-separated keywords, all must match, each at least 3 characters.
      </td>
    </tr>

    <tr><td>`parents`</td><td>integer</td><td>query</td><td>1 includes each category's tree. One of `0`, `1`</td></tr>
  </tbody>
</table>

[Vendor docs](https://github.com/keepacom/api_backend/blob/master/src/main/java/com/keepa/api/backend/structs/Request.java) · Same job: [Adzuna](https://docs.webrouter.net/data-apis/adzuna.md#adzuna-jobs-categories), [Best Buy](https://docs.webrouter.net/data-apis/bestbuy.md#bestbuy-categories-search), [handelsregister.ai](https://docs.webrouter.net/data-apis/handelsregister-ai.md#handelsregister-ai-signals-catalog), [Listen Notes](https://docs.webrouter.net/data-apis/listennotes.md#listennotes-genres)

### Look up categories

GET

`/category`

`keepa.category`

Category objects by node id, optionally with their parent tree.

Input

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

      <th>
        Type
      </th>

      <th>
        In
      </th>

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

  <tbody>
    <tr><td>`domain` required</td><td>integer</td><td>query</td><td>Amazon locale: 1 com, 2 co.uk, 3 de, 4 fr, 5 co.jp, 6 ca, 8 it, 9 es, 10 in, 11 com.mx, 12 com.br. One of `1`, `2`, `3`, `4`, `5`, `6`, `8`, `9`, `10`, `11`, `12` Example `1`</td></tr>

    <tr>
      <td>
        `category`

        required
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Category node id, or up to 10 comma separated (same token cost).
      </td>
    </tr>

    <tr><td>`parents`</td><td>integer</td><td>query</td><td>1 includes each category's tree. One of `0`, `1`</td></tr>
  </tbody>
</table>

[Vendor docs](https://github.com/keepacom/api_backend/blob/master/src/main/java/com/keepa/api/backend/structs/Request.java) · Same job: [Adzuna](https://docs.webrouter.net/data-apis/adzuna.md#adzuna-jobs-categories), [Best Buy](https://docs.webrouter.net/data-apis/bestbuy.md#bestbuy-categories-search), [handelsregister.ai](https://docs.webrouter.net/data-apis/handelsregister-ai.md#handelsregister-ai-signals-catalog), [Listen Notes](https://docs.webrouter.net/data-apis/listennotes.md#listennotes-genres)

### Get best sellers

GET

`/bestsellers`

`keepa.bestsellers`

ASIN list of the most popular products by sales in a category or product group.

Input

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

      <th>
        Type
      </th>

      <th>
        In
      </th>

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

  <tbody>
    <tr><td>`domain` required</td><td>integer</td><td>query</td><td>Amazon locale: 1 com, 2 co.uk, 3 de, 4 fr, 5 co.jp, 6 ca, 8 it, 9 es, 10 in, 11 com.mx, 12 com.br. One of `1`, `2`, `3`, `4`, `5`, `6`, `8`, `9`, `10`, `11`, `12` Example `1`</td></tr>

    <tr>
      <td>
        `category`

        required
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        A category node id, or a websiteDisplayGroupName (product group).
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://github.com/keepacom/api_backend/blob/master/src/main/java/com/keepa/api/backend/structs/Request.java) · Same job: [Rainforest API](https://docs.webrouter.net/data-apis/rainforest.md#rainforest-bestsellers)

### Get sellers

GET

`/seller`

`keepa.seller`

Amazon marketplace seller objects by seller id, optionally with the ASINs they list.

Input

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

      <th>
        Type
      </th>

      <th>
        In
      </th>

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

  <tbody>
    <tr><td>`domain` required</td><td>integer</td><td>query</td><td>Amazon locale: 1 com, 2 co.uk, 3 de, 4 fr, 5 co.jp, 6 ca, 8 it, 9 es, 10 in, 11 com.mx, 12 com.br. One of `1`, `2`, `3`, `4`, `5`, `6`, `8`, `9`, `10`, `11`, `12` Example `1`</td></tr>

    <tr>
      <td>
        `seller`

        required
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Seller id, or up to 100 comma separated (one id when storefront is used).
      </td>
    </tr>

    <tr><td>`storefront`</td><td>integer</td><td>query</td><td>1 adds the seller's listed ASINs (up to 100,000); extra tokens only when data exists. One of `0`, `1`</td></tr>
  </tbody>
</table>

[Vendor docs](https://github.com/keepacom/api_backend/blob/master/src/main/java/com/keepa/api/backend/structs/Request.java)

> [!NOTE]
>
> * A seller that is not found consumes no tokens.

### Get top sellers

GET

`/topseller`

`keepa.topseller`

Seller ids of the most rated Amazon marketplace sellers.

Input

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

      <th>
        Type
      </th>

      <th>
        In
      </th>

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

  <tbody>
    <tr><td>`domain` required</td><td>integer</td><td>query</td><td>Amazon locale: 1 com, 2 co.uk, 3 de, 4 fr, 5 co.jp, 6 ca, 8 it, 9 es, 10 in, 11 com.mx, 12 com.br. One of `1`, `2`, `3`, `4`, `5`, `6`, `8`, `9`, `10`, `11`, `12` Example `1`</td></tr>
  </tbody>
</table>

[Vendor docs](https://github.com/keepacom/api_backend/blob/master/src/main/java/com/keepa/api/backend/structs/Request.java)

```python Python theme={null}
router.call_data_api("keepa.topseller", {'domain': 1})
```

```text MCP theme={null}
call_data_api(endpoint="keepa.topseller", params={"domain": 1})
```


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