# Amazon Best Sellers Rankings: UK and JP Category Lists (`bardach_technologies/amazon-bestsellers-rankings`) Actor

Public Amazon Best Sellers category rankings (UK and Japan, first page, about 30 items): rank, ASIN, title, price, rating, rating count, image, optional rank change since your last run. No login. Blocks stop that store and are free.

- **URL**: https://apify.com/bardach_technologies/amazon-bestsellers-rankings.md
- **Developed by:** [Bardach Technologies](https://apify.com/bardach_technologies) (community)
- **Categories:** E-commerce, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.80 / 1,000 ranking row delivereds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Amazon Best Sellers Rankings: UK and JP Category Lists

Reads the public Best Sellers list of an Amazon category as a visitor who is **not signed in** and gives you one row per ranked
item: rank, ASIN, title, product link, price when the list shows one, star rating, number of ratings and image link. Optionally each
row also shows how far the item moved since your last run.

**Two stores, first page only.** Only amazon.co.uk and amazon.co.jp were tested as category pages, so only these two are offered.
The first page of a list shows about 30 items to a visitor who is not signed in (the list has more). Other stores are not claimed:
on 19.11.2026 amazon.de answered an empty page for the same kind of address, and amazon.com and amazon.fr were not read as category pages.

### What you get per row

`rank`, `asin`, `title`, `url`, `price` (`amount`, `currency`, `text`, empty when the list shows none), `rating`, `ratingCount`, `imageUrl`,
`category`, `categoryNode`, `categoryUrl`, `marketplace`, `domain`, `scrapedAt`, and `previousRank`, `rankChange`, `previousScrapedAt`
(empty unless you switch on the comparison and an earlier ranking exists). One free `status` row per category page says `ok`,
`empty`, `not_found`, `wrong_category`, `blocked`, `failed`, `notTried` or `skipped_max_charge`, with the reason.

### What it never delivers

No seller details, reviewer names or any customer data: the list page shows none and none is read. Contact data is kept out as
well: an item whose title holds a phone number or an e-mail address gives no row, and `imageUrl` is only kept on Amazon's own image
hosts, without a query, port or any phone or e-mail form (else it is empty). The block evidence text is masked the same way (`[removed]`).

### Input

```json
{
  "categories": ["electronics"],
  "marketplaces": ["UK", "JP"],
  "maxItemsPerCategory": 30,
  "compareWithLastRun": true
}
```

A node path is read in every store you chose; a full Best Sellers category link of one of the two stores can be given instead and is read only in its own store (and that store must be in
`marketplaces`). Stores: UK, JP. At most 200 categories and 400 pages per run. One list is read once per store: the same numeric
category under another parent path (`electronics/430555031`, `computers/430555031`) is the same page and is not read or charged again.

| Field | Meaning |
|---|---|
| `maxItemsPerCategory` | 1 to 50, default 50; the first page shows about 30 items, so about 30 is the most you get. |
| `requestDelaySeconds` | 1 to 10, default 1: the pause between two requests to the same store. |
| `proxyConfiguration` | Default no proxy. Allowed: no proxy or the Apify datacentre group only; any other group is refused, and so is a group with `useApifyProxy` off. |

### Output example (shape only; the values are made up; `<store-host>` and `<image-host>` stand for the real host, and real rows hold the full links)

```json
{"type": "ranking", "marketplace": "UK", "domain": "www.amazon.co.uk", "categoryNode": "electronics", "category": "Electronics & Photo", "categoryUrl": "https://<store-host>/gp/bestsellers/electronics", "rank": 1, "asin": "B000000000", "title": "Example AA batteries, 20 pack", "url": "https://<store-host>/dp/B000000000", "price": {"amount": 5.14, "currency": "GBP", "text": "£5.14"}, "rating": 4.6, "ratingCount": 943275, "imageUrl": "https://<image-host>/images/I/example.jpg", "previousRank": 3, "rankChange": 2, "previousScrapedAt": "2026-11-18T10:00:00+00:00", "scrapedAt": "2026-11-19T10:00:00+00:00"}
```

### Rank change since the last run

Switch on `compareWithLastRun`. `rankChange` is the previous rank minus the current rank: 2 means the item moved up two places. An item
that was not in your last ranking has empty `previousRank` and `rankChange`. The last delivered ranking of each category and store is
kept in a key-value store named `amazon-bestsellers-rankings-state` in your own account; nothing else is kept.

### How it behaves

- The store's robots.txt is read first, once per store. A page it forbids is not requested and a file that cannot be read stops the store (a missing file allows reading). An answer that is not robots text (a web page, JSON, a file that is not plain text) counts as unreadable. When the store redirects a category to another form of its address, that address must be allowed by robots.txt too, or it is not requested.
- Plain GET requests, one per category page, **never faster than one per second**, a generic client name, no cookies, no sign-in.
- A sign-in redirect, a robot check (CAPTCHA), a JavaScript check page, HTTP 401, 403, 407 (also from the proxy), 429, 451 or 503, or an answer that is not a Best Sellers
  page **stops that store**: the page is a free `blocked` row, the remaining inputs of that store are free `notTried` rows, and the
  evidence (address and redirect target without their query, status, a few headers and up to 4,000 characters of the page's visible text; scripts, form values and token-like strings are left out) is kept in the record `BLOCK-EVIDENCE-<store>`. That visible text is page text kept in your run's storage.
  Nothing is retried through another address, proxy or browser.
  The stop also holds after a restart of the run, and the evidence is saved the moment the block is seen.
- A normal Best Sellers page without ranked items is a free `empty` row, not a block.
- Every list is checked to be the category you asked for: the address after any redirect and the category the page names as its own must both match. Otherwise you get a free `wrong_category` row, no ranking rows and no charge. The next category is still read.
- Only network errors, answers cut off in transfer and HTTP 500, 502 and 504 are asked again (twice, same route).
- Default is no proxy. You may choose Apify Proxy (automatic or the datacentre group); any other proxy group (for example RESIDENTIAL) is
  refused. A proxy is not a way around a block: a store keeps one proxy session, and if the chosen proxy cannot be used the run fails and sends nothing directly.

### What you lose by these rules

- A blocked store gives nothing more in that run. Three failed, empty or `wrong_category` pages in a row also stop a store, counted across a restart: its remaining pages are free `notTried` rows, even if they would have worked.
- A page cut off in transfer gives no rows at all (a free `failed` row) after its retries, and the saved ranking for rank change stays as it was.
- `price.currency` is what the page shows. A bare `$`, a yen sign outside the JP store or a price without a symbol gives an empty currency, with amount and text kept.
- After a restart on a list that moved, items and ranks already delivered are skipped, so the rows can mix two moments and a rank can be missing.
- If a restarted run cannot see every row already saved or charged in its output, it fails rather than risk a second charge; the rest of that run is not delivered.
- A restart never charges rows an earlier attempt of the run saved: if the run was stopped between saving a group of rows and charging it, that group stays unbilled.
- Only page 1 is read; a link to a later page is refused.
- If a page stops naming its category (no canonical link), every such page is a free `wrong_category` row, and a run where all pages are like that fails.
- A price or rating count of no believable size is left empty and the row stays. An item whose title is over 1,000 characters, has no letter or digit, is a placeholder (`n/a`, `null`, `undefined` and the like) or holds a phone number or e-mail address gives no row; such items are counted in `invalidItemsLeftOut` of the page's status row.
- If the saved ranking cannot be read or saved, rows are still delivered, rank change stays empty and the saved ranking is not replaced.
- Without a `categories` field the prefilled electronics category is read and charged; an explicitly empty list ends the run at once.
- A category Amazon has merged or moved gives a free `wrong_category` row rather than the new category's list: ask for the new category yourself. A list page that does not name its category is treated the same way, even if it was the right one.

### Pricing (pay per event)

| Event | Price | When |
|---|---|---|
| `ranking-row` | USD 0.0008 | one per valid ranked item saved |

A first page of 30 items costs USD 0.024 (USD 0.80 per 1,000 rows). Blocked, empty, not found, wrong category, failed and not tried pages, items without
rank, ASIN or title, duplicate items and rows already written earlier in the same run cost nothing; status rows are free. Apify itself charges
`apify-actor-start` (USD 0.00005) once per run, even when the input is empty or bad. The run stops cleanly at your maximum charge.

### Measured (19.11.2026, plain requests from one Mac, no proxy, 8 requests, tiny samples)

- amazon.co.uk, amazon.de, amazon.fr, amazon.co.jp and amazon.com answered 200 for the Best Sellers start page; no CAPTCHA, sign-in wall, 403 or 429 was seen.
- Electronics category page: amazon.co.uk and amazon.co.jp each showed 30 ranked items (rank 1 to 30, with price except one UK item, and rating on every item). amazon.de answered 200 with an empty page.
- Not measured: anything on Apify's servers, page 2 of a list, nested categories, stores other than UK and JP, long runs.

### Terms and legal

Amazon's Conditions of Use (updated 14.08.2026) exclude data mining, robots and similar data gathering tools. Using this Actor on Amazon's pages is your own decision under those conditions. The listings are Amazon's and its sellers' content. This Actor is not affiliated with or endorsed by Amazon.

# Actor input Schema

## `categories` (type: `array`):

A Best Sellers node path such as electronics or electronics/430555031, or a category link such as https://www.amazon.co.uk/gp/bestsellers/electronics, one per entry, up to 200. A node path is read in every store chosen below; a link only in its own store. Duplicates are read once. Empty list: the run ends at once and charges nothing. Without this field the prefilled electronics category is read; an explicitly empty list ends the run at once without a request.

## `marketplaces` (type: `array`):

Only the stores whose category page was read and parsed in the 19.11.2026 test are offered: UK and JP. Other stores are not offered because they were not tested (amazon.de answered an empty page for the electronics category).

## `maxItemsPerCategory` (type: `integer`):

Ranked items delivered per category page, 1 to 50. The first page shows about 30 items to a visitor who is not signed in, so this is a ceiling, not a promise.

## `compareWithLastRun` (type: `boolean`):

When on, each row shows previousRank, rankChange (previous rank minus rank; positive means it moved up) and previousScrapedAt, taken from the last ranking this Actor delivered for the same category and store on your account. The first run has no earlier ranking, so those fields stay empty. The last ranking is kept in a key-value store named amazon-bestsellers-rankings-state in your account.

## `requestDelaySeconds` (type: `number`):

Pause between two requests to the same store, 1 to 10. The Actor never goes faster than one request per second. Default 1.

## `proxyConfiguration` (type: `object`):

Default: no proxy (direct requests). You may choose the Apify datacentre pool; any other proxy group (for example RESIDENTIAL) is refused, because the price is set for direct and datacentre requests.

## Actor input object example

```json
{
  "categories": [
    "electronics"
  ],
  "marketplaces": [
    "UK"
  ],
  "maxItemsPerCategory": 50,
  "compareWithLastRun": false,
  "requestDelaySeconds": 1,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `results` (type: `string`):

One ranking row per valid ranked item, then one free status row per category page: ok, empty, not_found, wrong_category, blocked, failed, notTried or skipped_max_charge, with the reason.

## `summary` (type: `string`):

How the run ended (complete, stoppedEarly or incomplete), rows delivered and charged, blocked stores, bytes transferred and the proxy used.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "categories": [
        "electronics"
    ],
    "marketplaces": [
        "UK"
    ],
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("bardach_technologies/amazon-bestsellers-rankings").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "categories": ["electronics"],
    "marketplaces": ["UK"],
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("bardach_technologies/amazon-bestsellers-rankings").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "categories": [
    "electronics"
  ],
  "marketplaces": [
    "UK"
  ],
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call bardach_technologies/amazon-bestsellers-rankings --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,bardach_technologies/amazon-bestsellers-rankings"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/mT3Xh7B6y1Yeh1r9s/builds/XQHJjfRRajmbwjZsY/openapi.json
