# walmart.search

The products on a page of Walmart's search results: prices, ratings, sellers, with advertisements marked.

Walmart search, one of the Walmart scrapers.

| | |
| --- | --- |
| Id | `walmart.search` |
| Version | 1 |
| Billed per | request — 1 unit for a charged run |
| Runs | within one request |

Start it with `POST /v1/scrapers/walmart.search/runs`. How runs work is in [Running a scraper](https://docs.enrichednow.com/running-a-scraper.md); what a run costs is in [Usage and units](https://docs.enrichednow.com/usage-and-units.md).

## Inputs

The fields of `input`. A field that is not listed here is refused.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `query` | string | yes | What to search for, e.g. "wireless mouse". Limit: at least 1 characters, at most 200 characters. |
| `page` | integer | no | The results page, from 1 (Walmart serves at most 25). Limit: 1 to 25. Default: `1`. |
| `max_results` | integer | no | Return at most this many items of the page; all of them when not given. Limit: 1 to 100. |
| `sort` | "best_match" \| "price_low" \| "price_high" | no | Walmart's sort order. Default: `"best_match"`. |
| `include_sponsored` | boolean | no | False leaves the advertisements (sponsored: true) out. Default: `true`. |

- One run reads one page of results, about 40 products; ask for the next with `page` (1 to 25). `max_results` only trims that page.
- When nothing matches exactly and Walmart offers other products instead, they are returned with `match` set to `related`. A search with no results at all ends `ok` with zero records.
- A product shown both as an advertisement and as a result is two records; the advertisement has `sponsored` `true`. `include_sponsored: false` leaves advertisements out.
- `price`, `was_price`, `brand` and `in_stock` are `null` when the result tile does not state them.
- There is no input for a store or a delivery address: prices and availability are the ones Walmart shows without one.
- Walmart's "Robot or human?" page ends the run `failed` with `captcha`, and costs nothing — see [the reasons of this family](https://docs.enrichednow.com/results-and-statuses.md#walmart).

## Record fields

Every record of a run has these fields. A value that is not known is `null` — never an empty string and never `0`.

| Field | Type | Notes |
| --- | --- | --- |
| `item_id` | string | Walmart's item id (usItemId): the number at the end of the product's address. |
| `product_id` | string or null | Walmart's internal product id. |
| `url` | string or null | The product's address, without tracking parameters. |
| `title` | string | The product's name, as the tile shows it. |
| `price` | object or null | The price shown on the tile. |
| `price.amount` | number | The amount as the page states it. |
| `price.currency` | string or null | The currency code the page gives with the amount (USD on walmart.com); null when it gives none. |
| `was_price` | object or null | The struck-through earlier price, when the tile shows one. |
| `was_price.amount` | number | The amount as the page states it. |
| `was_price.currency` | string or null | The currency code the page gives with the amount (USD on walmart.com); null when it gives none. |
| `rating` | number or null | Average rating, 0 to 5. |
| `review_count` | integer or null | Number of reviews. |
| `brand` | string or null | Brand, when the results page states it (it usually does not; the product page does). |
| `seller_name` | string or null | The seller's name, when the results page states it. |
| `seller_id` | string or null | Walmart's id of that seller. |
| `availability` | string or null | Walmart's availability code, e.g. IN_STOCK. |
| `in_stock` | boolean or null | False when the results page marks the item as out of stock, true when it marks it as not; null when it does not say. |
| `fulfilment_type` | string or null | Walmart's code for where the item ships from: STORE, FC (fulfilment centre) or MARKETPLACE. |
| `fulfilment_options` | array of string | How the item can be had: PICKUP, DELIVERY. |
| `sponsored` | boolean or null | True for an advertisement (a sponsored placement), false for a result; null only when the page does not say. |
| `badge` | string or null | The label on the tile, e.g. Best seller, Rollback, Overall pick. |
| `image` | string or null | The address of the tile's image. |
| `match` | "exact" \| "related" or null | exact: Walmart lists the item as a result for the query; related: under "Other options to consider" (shown when few or no items match); null when the page does not say. |
| `position` | integer | The item's place among the returned items of this page, from 1. |
| `page` | integer | The results page the item was on. |
| `fetched_at` | string (date-time) | When the results page was read, in UTC. |

## Example request

It starts a run with this scraper's example input and waits up to 60 seconds for it. The key is read from `ENRICHEDNOW_API_KEY`.

```bash
curl -X POST "https://api.enrichednow.com/v1/scrapers/walmart.search/runs?wait=60" \
  -H "Authorization: Bearer $ENRICHEDNOW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":{"query":"wireless mouse"}}'
```

## Example response

The run, once it has ended. A run that has not ended within `wait` comes back with `202` and the status `queued` or `running`.

```json
{
  "id": "run_841742f37553189ff9c27ba1",
  "scraper_id": "walmart.search",
  "scraper_version": 1,
  "status": "ok",
  "reason": null,
  "input": {
    "query": "wireless mouse"
  },
  "record_count": 1,
  "units": 1,
  "units_per_request": 1,
  "units_per_record": null,
  "units_per_page": null,
  "diagnostics": {
    "requests": 1,
    "bytes": 259214,
    "wall_ms": 885,
    "facts": {}
  },
  "created_at": "2026-11-16T22:37:50.170950Z",
  "started_at": "2026-11-16T22:37:50.178331Z",
  "finished_at": "2026-11-16T22:37:51.066313Z"
}
```

Its records, from `GET /v1/runs/{id}/records`. The record is a real one: this scraper's own parser read it from a page recorded from the site.

```json
{
  "records": [
    {
      "item_id": "13802306327",
      "product_id": "3ZTP81MOA1RM",
      "url": "https://www.walmart.com/ip/Logitech-Silent-Wireless-Mouse-Black/13802306327",
      "title": "Logitech Silent Wireless Mouse, Black, Walmart Exclusive",
      "price": {
        "amount": 14.52,
        "currency": "USD"
      },
      "was_price": null,
      "rating": 4.5,
      "review_count": 6235,
      "brand": null,
      "seller_name": "Walmart.com",
      "seller_id": "F55CDC31AB754BB68FE0B39041159D63",
      "availability": "IN_STOCK",
      "in_stock": true,
      "fulfilment_type": "STORE",
      "fulfilment_options": [
        "PICKUP",
        "DELIVERY"
      ],
      "sponsored": true,
      "badge": "Overall pick",
      "image": "https://i5.walmartimages.com/seo/Logitech-Silent-Wireless-Mouse-Black_cfe0592c-dd7d-4d65-9af9-52f5bf7bd47e_1.742d532fe35714dd47641a50658a2609.jpeg?odnHeight=180&odnWidth=180&odnBg=FFFFFF",
      "match": "exact",
      "position": 1,
      "page": 1,
      "fetched_at": "2026-11-19T18:07:41.790540Z"
    }
  ],
  "next_cursor": null
}
```

A run does not always end `ok`. [Results and statuses](https://docs.enrichednow.com/results-and-statuses.md#reason-codes) lists every status and the reasons every scraper shares; [the reasons of the Walmart scrapers](https://docs.enrichednow.com/results-and-statuses.md#walmart) are in their own section there.
