# eBay Keyword Rank Tracker (`ikmal_suzali_atr/ebay-rank`) Actor

Full eBay search results per keyword (Germany (ebay.de), United Kingdom (ebay.co.uk), France (ebay.fr), Italy (ebay.it), Spain (ebay.es)) 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/ebay-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

## eBay Keyword Rank Tracker

Tracks where any brand or listing ranks for a keyword on five eBay Europe storefronts (Germany, United Kingdom, France, Italy and Spain), and which competitors hold the promoted slots above it. Every search result gets its own row with an absolute `position`, so you can measure share of search and paid-slot share on the same data.

### What you get

- Absolute rank per keyword: `keyword`, `page` and a continuous `position` that keeps counting across pages.
- A reliable `is_sponsored` flag. eBay publishes its own listing ledger on the search page, and the promoted marker is read from there rather than guessed from the card layout.
- `ledger_rank`, eBay's own zero-based slot index for the result, next to the position the shopper actually sees.
- Commercial detail per result: `price`, `original_price`, `currency`, `in_stock`, `seller`, `condition` and an `attributes` list holding the card badges (condition, Buy It Now, delivery text).
- `total_results`, eBay's own count for the keyword, on every row, so a share denominator comes from the site itself.
- Duplicate keywords are collapsed to one capture, so a messy keyword list does not burn compute.

### Input

Pass a keyword list and a storefront. `pages` decides how deep each keyword is captured.

```json
{
  "keywords": ["shampoo"],
  "locale": "de",
  "pages": 1,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": ["RESIDENTIAL"],
    "apifyProxyCountry": "DE"
  },
  "delayMs": 1200,
  "callsPerSession": 60
}
```

- `keywords` (required): the search terms to rank. Duplicates are ignored.
- `locale`: `de`, `uk`, `fr`, `it` or `es`. Default `de`.
- `pages`: result pages per keyword, 1 to 10. Each page is requested at 120 results.
- `proxyConfiguration`: residential in the storefront's country, which is the default.

### Output

One dataset row per search result position.

```json
{
  "platform": "ebay",
  "locale": "de",
  "keyword": "shampoo",
  "page": 1,
  "position": 1,
  "id": "204544391488",
  "name": "Läuseshampoo mit Läusekamm für Erwachsene & Kinder",
  "price": 18.95,
  "currency": "EUR",
  "in_stock": true,
  "is_sponsored": true,
  "seller": "verkauftBis",
  "condition": "Neu |",
  "attributes": ["Neu |", "Gewerblich", "Sofort-Kaufen", "Gratis Lieferung"],
  "ledger_rank": 0,
  "total_results": 63000,
  "product_url": "https://www.ebay.de/itm/204544391488",
  "captured_at": "2026-09-12T03:21:40.356Z"
}
```

eBay search cards carry no brand and no star rating, so `brand`, `rating`, `rating_count` and `original_price` are null on most rows. `seller` is parsed from the card's feedback line and can be null.

### Use cases

- Share of search: count your `id` values inside the top N `position` rows per keyword, against `total_results`.
- Paid-slot share: group by `is_sponsored` and `seller` to see who buys the promoted positions on your keywords.
- Competitor price benchmarking at the rank where shoppers actually see it, using `price` and `position` together.
- Cross-market comparison: run one keyword list on `de`, `uk`, `fr`, `it` and `es` and compare rank and price side by side.
- Condition mix on a keyword, from `condition` and `attributes`, to spot used listings outranking new stock.

### Notes and limits

- `pages` is capped at 10 per keyword. A verified run of `shampoo` on `ebay.de` at `pages: 1` returned 120 rows, and the same keyword at `pages: 2` on `ebay.co.uk` returned 240.
- Sponsored share is material. The verified single-page German run reported 15 sponsored results out of 120.
- eBay refuses a share of residential exits at session mint. The actor retries on a fresh exit up to six times, so an unlucky start adds minutes before the first row.
- Results are deduplicated by listing id within a keyword, so a listing repeated across pages is counted once.
- Prices are normalised to numbers in the storefront's currency, GBP on `uk` and EUR elsewhere.

### FAQ

**Do I need a proxy?** Yes. Residential in the storefront's country (DE, GB, FR, IT or ES). The input already defaults to that.

**How many results can I get?** Up to 10 pages per keyword at 120 results per page. A verified page returned 120 rows.

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

**How is sponsored detected?** From eBay's own listing ledger embedded in the search page, which marks each result as promoted and gives its slot index. That is read directly, so the flag does not depend on how the card is styled.

# 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 (DE for the default). On our own servers it is ignored and our residential proxy is used.

## Actor input object example

```json
{
  "keywords": [
    "shampoo"
  ],
  "locale": "de",
  "pages": 0,
  "delayMs": 1200,
  "callsPerSession": 60,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "DE"
  }
}
```

# 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/ebay-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/ebay-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/ebay-rank --silent --output-dataset

```

## MCP server setup

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