# Track product rankings in Walmart search results

**Use case:** 

Searches Walmart.com for a keyword and returns the products in the order Walmart ranks them, with position, sponsored ad flag, price, rating, review count, brand and seller. Sellers and brands can see where their listings rank for a keyword and which spots are paid ads, then schedule it to track rank changes.

## Input

```json
{
  "searchQueries": [
    "wireless earbuds"
  ],
  "startUrls": [
    {
      "url": "https://www.walmart.com/ip/5466948866"
    },
    {
      "url": "https://www.walmart.com/browse/home/air-fryers/4044_90548_90546_4824_9960466"
    }
  ],
  "maxItemsPerSearch": 20,
  "scrapeProductDetails": false,
  "maxReviewsPerProduct": 0,
  "reviewsSort": "relevancy",
  "includeReviewerNames": false,
  "scrapeVariants": false,
  "sort": "best_match",
  "includeSponsored": true,
  "deduplicate": true,
  "proxyConfiguration": {
    "useApifyProxy": true
  },
  "residentialFallback": true,
  "fallbackAfterAttempts": 3,
  "maxConcurrency": 20,
  "maxRequestRetries": 6,
  "includeFailedItems": false
}
```

## Output

```json
{
  "thumbnail": {
    "label": "Image",
    "format": "image"
  },
  "title": {
    "label": "Title",
    "format": "text"
  },
  "price": {
    "label": "Price",
    "format": "number"
  },
  "wasPrice": {
    "label": "Was price",
    "format": "number"
  },
  "discountPercent": {
    "label": "Discount %",
    "format": "number"
  },
  "availability": {
    "label": "Availability",
    "format": "text"
  },
  "sellerName": {
    "label": "Seller",
    "format": "text"
  },
  "brand": {
    "label": "Brand",
    "format": "text"
  },
  "rating": {
    "label": "Rating",
    "format": "number"
  },
  "reviewCount": {
    "label": "Reviews",
    "format": "number"
  },
  "itemId": {
    "label": "Item ID",
    "format": "text"
  },
  "upc": {
    "label": "UPC",
    "format": "text"
  },
  "url": {
    "label": "URL",
    "format": "link"
  },
  "searchQuery": {
    "label": "Search term",
    "format": "text"
  },
  "position": {
    "label": "Rank",
    "format": "number"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The Walmart Product Scraper: Prices, Sellers, UPC & Reviews Actor is ready to run with the inputs already set for "Track product rankings in Walmart search results". [Sign up or log in](https://console.apify.com/create-task-from-example/jYQ18csFgdsvgExo3) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Track product rankings in Walmart search results" task

The Walmart Product Scraper: Prices, Sellers, UPC & Reviews Actor will start running based on the input automatically. You can also change all the input fields, like search terms, walmart urls or item ids, and more, to match your specific use case.

### 3. Receive the "Track product rankings in Walmart search results" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as image, title, price, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Track product rankings in Walmart search results" task via API](https://apify.com/zhtech/walmart-product-scraper.md).

## FAQ

### What does the Walmart search rank tracker task return?

The Walmart search rank tracker task returns one row per product with search position, sponsored flag, title, price, was price, rating, review count, brand, seller, item ID and URL.

### How do I track my own keywords?

Put your keywords in Search terms of the Walmart search rank tracker task, one per line. Each keyword is searched separately, and Max products per search term sets how deep the ranking goes.

### Can I run the Walmart search rank tracker task on a schedule or through the API?

Save the Walmart search rank tracker task to your Apify account, then add it to an Apify Schedule (for example daily) or start it from the Apify API, webhooks, Zapier, Make, n8n or the Apify MCP server for AI agents.

### How much does the Walmart search rank tracker task cost?

The Walmart search rank tracker task is pay per event: a small start fee per run plus a fee per product saved. Failed pages and duplicates are free. Prices are on the Pricing tab.

## About this Actor

This example demonstrates how to use [Walmart Product Scraper: Prices, Sellers, UPC & Reviews](https://apify.com/zhtech/walmart-product-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/zhtech/walmart-product-scraper.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

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 full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/zhtech/walmart-product-scraper.md

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`).
