# Namshi Keyword Rank Tracker (`ikmal_suzali_atr/namshi-rank`) Actor

Full Namshi search results per keyword (UAE (English), UAE (Arabic), Saudi Arabia (English), Saudi Arabia (Arabic)) 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/namshi-rank.md
- **Developed by:** [AtTheRate AI](https://apify.com/ikmal_suzali_atr) (community)
- **Stats:** 2 total users, 1 monthly users, 100.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

## Namshi Keyword Rank Tracker

Shows where a brand or style ranks for a keyword on Namshi in the UAE and Saudi Arabia, in English or Arabic, and which competitors bought the sponsored slots above it. One row per search result, with an absolute position and the full commercial detail of the card.

### What you get

- Absolute rank per keyword: `keyword`, `page` and a `position` that keeps counting across pages.
- `is_sponsored` on every result, read from the placement source Namshi attaches to the product. The raw value stays on the row as `source`, so an ads placement is distinguishable from an organic one.
- Full price picture at that rank: `price`, `original_price`, `discount_percent` and `currency` (AED for the UAE locales, SAR for Saudi).
- Shopper-facing signals that drive click-through: `badges`, `tags` such as "Selling out fast", `is_rocket` for express delivery and `is_outlet`.
- `total_results` from Namshi's own search metadata on every row, so a share-of-search denominator is not estimated.
- Ratings where Namshi shows them, as `rating` and `rating_count`, plus `brand` on every card.

### Input

Pass a keyword list, a storefront and how deep to go.

```json
{
  "keywords": ["sneakers"],
  "locale": "uae-en",
  "pages": 1,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": ["RESIDENTIAL"],
    "apifyProxyCountry": "AE"
  },
  "delayMs": 1200,
  "callsPerSession": 60
}
```

- `keywords` (required): the search terms to rank. Duplicates are ignored.
- `locale`: `uae-en`, `uae-ar`, `saudi-en` or `saudi-ar`. Default `uae-en`.
- `pages`: result pages per keyword, 1 to 10.
- `proxyConfiguration`: residential in the storefront's country, AE for UAE and SA for Saudi. AE is the default.

### Output

One dataset row per search result position.

```json
{
  "platform": "namshi",
  "locale": "uae-en",
  "keyword": "sneakers",
  "page": 1,
  "position": 1,
  "id": "ZF9E7E40C437E79672D07Z",
  "sku": "ZF9E7E40C437E79672D07Z-11",
  "name": "Kids' White Velcro Strap Sneakers Shoes",
  "brand": "U.S. Polo Assn.",
  "price": 79,
  "original_price": 269,
  "discount_percent": 71,
  "currency": "AED",
  "rating": 5,
  "rating_count": 1,
  "in_stock": true,
  "is_sponsored": true,
  "source": "ads",
  "tags": ["Unisex", "Selling out fast", "50+ sold recently"],
  "total_results": 19148,
  "product_url": "https://www.namshi.com/uae-en/buy-u-s-polo-assn-kids-white-velcro-strap-sneakers",
  "captured_at": "2026-09-12T02:58:58.198Z"
}
```

`seller` is null on Namshi, which sells as a single retailer. `rating` and `rating_count` are null on cards with no reviews yet, and `stock_label` is null unless the site is warning about low stock.

### Use cases

- Share of search per brand: count your `id` values inside the top N positions per keyword, against `total_results`.
- Paid-slot share: group `is_sponsored` by `brand` to see who is buying the head terms in your category.
- Organic rank versus discount depth, by pairing `position` with `discount_percent`, to see how much promotion a top slot is costing competitors.
- UAE against Saudi comparison: run the same keywords on `uae-en` and `saudi-en` and diff rank, price and currency.
- English against Arabic search behaviour, by running the same term on `uae-en` and `uae-ar`.

### Notes and limits

- `pages` is capped at 10 per keyword. A verified `sneakers` capture at `pages: 1` on `uae-en` returned 84 results, and a `saudi-en` capture returned 60, so page size varies with the keyword.
- Sponsored density is high on head terms. The verified UAE run reported 26 sponsored results out of 84.
- Sponsored placements are only served on a session-backed request, so the proxy country affects what appears, not just whether the run succeeds.
- Results are deduplicated by parent SKU within a keyword, so the same style shown twice is counted once.
- Arabic locales return Arabic names in the same fields, with the same rank semantics.

### FAQ

**Do I need a proxy?** Yes. Residential in the storefront's country, AE for the UAE locales and SA for the Saudi ones. The input defaults to AE.

**How many results can I get?** Up to 10 pages per keyword. Verified single-page captures returned 84 results on `uae-en` and 60 on `saudi-en`.

**Does it need a login or an API key?** No. No Namshi account and no API key.

**Why is `seller` always null?** Namshi is a first-party retailer rather than a marketplace of independent sellers, so no seller name is published on the card. Use `brand` instead.

# Actor input Schema

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

Search keywords to rank. Duplicates are ignored.

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

Which storefront / locale.

## `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. A residential proxy in the storefront's country is recommended (AE for the default). On our own servers it is ignored and our residential proxy is used.

## Actor input object example

```json
{
  "keywords": [
    "sneakers"
  ],
  "locale": "uae-en",
  "pages": 0,
  "delayMs": 1200,
  "callsPerSession": 60,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "AE"
  }
}
```

# 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": [
        "sneakers"
    ],
    "pages": 0
};

// Run the Actor and wait for it to finish
const run = await client.actor("ikmal_suzali_atr/namshi-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": ["sneakers"],
    "pages": 0,
}

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

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,ikmal_suzali_atr/namshi-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/ctJ6YLmPUejNyZ0OR/builds/Kw5xwNcfo2s8KHiGn/openapi.json
