# Amazon Latin America Keyword Rank Tracker (`ikmal_suzali_atr/amazon-latam-rank`) Actor

Full Amazon Latin America search results per keyword (Brazil (amazon.com.br), Mexico (amazon.com.mx)) with position and sponsored flag — see where a brand ranks and who holds the paid slots. Dual-mode: the same code runs as an ATR BullMQ worker.

- **URL**: https://apify.com/ikmal\_suzali\_atr/amazon-latam-rank.md
- **Developed by:** [AtTheRate AI](https://apify.com/ikmal_suzali_atr) (community)
- **Stats:** 2 total users, 1 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.00 / 1,000 results

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 Latin America Keyword Rank Tracker

Tracks where any brand ranks for a keyword on amazon.com.br and amazon.com.mx, and which competitors hold the sponsored slots above it. Every result on the search page is captured in order, organic and paid alike, with price, rating and review count attached. Run it daily on your keyword set to see rank movement, new entrants and ad pressure in Brazil and Mexico.

### What you get

- The full search page in shopper order: `keyword`, `page`, `position` and one row per result.
- `is_sponsored` on every row, read from the Patrocinado label on the card, so paid slots and organic ranks are separable.
- Competitor pricing at the moment of capture: `price`, `original_price` and `currency` (BRL or MXN).
- Social proof next to the rank: `rating`, `rating_count` and `badges`.
- Identity per result: `asin`, `name`, `brand`, `image_url` and `product_url`.
- `total_results` for the keyword, the `delivery` line on the card, and `captured_at` on every row for a clean time series.

### Input

Give it keywords and a storefront. The defaults are sensible for a daily rank pull.

```json
{
  "keywords": ["shampoo"],
  "locale": "br",
  "pages": 1,
  "proxyConfiguration": { "useApifyProxy": true, "apifyProxyGroups": ["RESIDENTIAL"], "apifyProxyCountry": "BR" },
  "delayMs": 1500,
  "callsPerSession": 80
}
```

- `keywords` (required): the search terms to rank. Duplicates are ignored.
- `locale`: `br` for amazon.com.br, `mx` for amazon.com.mx. Default `br`.
- `pages`: result pages per keyword. Amazon exposes at most 7.
- `proxyConfiguration`: residential proxy in the storefront's country. The actor already defaults to residential BR.

### Output

One row per search result position.

```json
{
  "platform": "amazon-latam",
  "locale": "br",
  "keyword": "shampoo",
  "page": 1,
  "position": 1,
  "id": "B09BNSDXTV",
  "asin": "B09BNSDXTV",
  "name": "Shampoo Wella Professionals Elements 250ml",
  "brand": null,
  "price": 105.9,
  "original_price": null,
  "currency": "BRL",
  "rating": 4.6,
  "rating_count": 130,
  "in_stock": true,
  "is_sponsored": true,
  "badges": [],
  "delivery": "Entrega GRATIS: sab., 19 de set. no seu primeiro pedido",
  "product_url": "https://www.amazon.com.br/dp/B09BNSDXTV",
  "total_results": 20000,
  "captured_at": "2026-09-12T02:57:15.226Z"
}
```

`seller` is always null on search rows, Amazon does not print it on a result card. `brand` is null for most products: today's Amazon cards carry no brand line, and the brand is part of `name`. It is filled for books and media, where the card prints a byline. For a reliable brand per product, pass the ASINs to the matching Amazon product details actor. `original_price` is null when nothing is struck through.

### Use cases

- Daily keyword rank tracking for your own ASINs: filter on `brand` or `asin` and chart `position` over `captured_at`.
- Share of search in Brazil and Mexico: count your rows against all rows per `keyword` and `page`.
- Ad-slot share: `is_sponsored` shows who buys the top of page one and how that shifts week to week.
- Competitor price watching on the terms you care about, using `price` and `original_price`.

### Notes and limits

- Amazon serves at most 7 result pages per keyword, so `pages` above 7 gains nothing. A page carries roughly 48 to 60 results.
- A residential proxy inside the storefront's country is required, BR for Brazil and MX for Mexico. Datacentre addresses get a captcha or a bot interstitial.
- Both storefronts use a comma as the decimal separator. Prices are parsed with that convention, so `price` is a plain number.
- Sponsored detection is per card and reflects the auction at capture time. Two runs an hour apart can legitimately differ.
- A keyword that returns nothing is reported as an empty capture with its context, not counted as a clean capture.
- Live runs: "shampoo" on amazon.com.br returned 60 rows with 12 sponsored on one page, and amazon.com.mx returned 60 rows with 12 sponsored.

### FAQ

**Do I need a proxy?** Yes. Use a residential proxy in the storefront's country, BR for amazon.com.br and MX for amazon.com.mx. The actor already defaults to residential BR.

**How many results can I get?** Up to 7 pages per keyword, roughly 48 to 60 results a page, so about 300 to 400 rows per keyword per run.

**Does it need a login or an API key?** No. Only public search pages, no Amazon account and no advertising credentials.

**How is a sponsored slot detected?** From the Sponsored label Amazon prints on the result card, so `is_sponsored` matches what a shopper in that country sees.

# Actor input Schema

## `keywords` (type: `array`):

Search keywords to rank. Duplicates are ignored.

## `locale` (type: `string`):

Which Amazon storefront.

## `pages` (type: `integer`):

Result pages to capture per keyword. Leave at 0 to capture every result page; the run stops as soon as the results end.

## `delayMs` (type: `integer`):

Pause between page fetches.

## `callsPerSession` (type: `integer`):

Re-mint the session after this many page fetches.

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

On the Apify platform this decides egress. Residential proxy in the storefront's country is recommended (BR for the default locale). On our own servers it is ignored and our residential proxy is used.

## Actor input object example

```json
{
  "keywords": [
    "shampoo"
  ],
  "locale": "br",
  "pages": 0,
  "delayMs": 1500,
  "callsPerSession": 80,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "BR"
  }
}
```

# Actor output Schema

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

One row per search result position.

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

Counts for the run: what was requested, captured, skipped and failed.

# 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 = {
    "keywords": [
        "shampoo"
    ],
    "pages": 0
};

// Run the Actor and wait for it to finish
const run = await client.actor("ikmal_suzali_atr/amazon-latam-rank").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 = {
    "keywords": ["shampoo"],
    "pages": 0,
}

# Run the Actor and wait for it to finish
run = client.actor("ikmal_suzali_atr/amazon-latam-rank").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 '{
  "keywords": [
    "shampoo"
  ],
  "pages": 0
}' |
apify call ikmal_suzali_atr/amazon-latam-rank --silent --output-dataset

```

## MCP server setup

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

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/kDS6P3eJ6NUEGvuDV/builds/rlVxniBfToVzFGTi1/openapi.json
