# walmart.product

One Walmart product's details: price, availability, seller, rating, specifications, images and variants.

Walmart product, one of the Walmart scrapers.

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

Start it with `POST /v1/scrapers/walmart.product/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 |
| --- | --- | --- | --- |
| `url` | string | no | The product's address, e.g. https://www.walmart.com/ip/Some-Product/13802306327. Limit: at most 2048 characters. |
| `item_id` | string | no | Walmart's item id: the number at the end of the product's address. Limit: matches ^[0-9]{1,20}$. |

- Give exactly one of `url` and `item_id`. Both, or neither, is refused with `invalid_input`.
- A product Walmart does not have ends the run `failed` with `not_found`, and costs nothing.
- `availability` is Walmart's own code, `IN_STOCK` or `OUT_OF_STOCK`. An out-of-stock product still has its `price`; `price` is `null` only when the page gives none.
- `was_price` is the struck-through earlier price, when the page shows one.
- `seller_name` is Walmart.com or the marketplace seller; `seller_id` is the same id [`walmart.search`](https://docs.enrichednow.com/scrapers/walmart.search.md) returns.
- `variants` lists every version of the product (colour, size) with its own item id, price and availability. `upc` is given for most products; `gtin` rarely is.
- Prices and availability are the ones Walmart shows without a delivery address or a chosen store.
- Walmart's "Robot or human?" page ends the run `failed` with `captcha` — 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). |
| `product_id` | string or null | Walmart's internal product id. |
| `upc` | string or null | The UPC, when the page states it. |
| `gtin` | string or null | The GTIN, when the page states it. |
| `url` | string or null | The product's canonical address, without tracking parameters. |
| `title` | string | The product's name. |
| `brand` | string or null | The brand, when the page states it. |
| `model` | string or null | The model name or number, when the page states it. |
| `short_description` | string or null | The short description, as text without markup. |
| `description` | string or null | The long description, as text. |
| `price` | object or null | The current price; null when the page states none. |
| `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 earlier price the page gives beside the current one, when it gives 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. |
| `availability` | string or null | Walmart's availability code, e.g. IN_STOCK, OUT_OF_STOCK. |
| `seller_name` | string or null | The seller's name, as the page shows it. |
| `seller_id` | string or null | Walmart's id of that seller. |
| `rating` | number or null | Average rating, 0 to 5. |
| `review_count` | integer or null | Number of reviews. |
| `category_path` | array of string | The category, from the department down. |
| `specifications` | array of object | The product's specifications, each a name and a value, in the page's order. |
| `specifications[].name` | string | The name of the specification, as the page gives it. |
| `specifications[].value` | string | Its value, as text. |
| `images` | array of string | The addresses of the product's images, in the page's order; the thumbnail alone when the page lists no others. |
| `variants` | array of object | The other versions of the product (colour, size), when it has any. |
| `variants[].item_id` | string | Walmart's item id (usItemId) of the variant. |
| `variants[].product_id` | string or null | Walmart's internal product id of the variant. |
| `variants[].options` | object of string values | What distinguishes the variant, e.g. {"Color": "Black"}. |
| `variants[].price` | object or null | The variant's current price, when the page states it. |
| `variants[].price.amount` | number | The amount as the page states it. |
| `variants[].price.currency` | string or null | The currency code the page gives with the amount (USD on walmart.com); null when it gives none. |
| `variants[].availability` | string or null | Walmart's availability code for the variant, e.g. IN_STOCK. |
| `variants[].url` | string or null | The variant's own address, without tracking parameters. |
| `fetched_at` | string (date-time) | When the product 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.product/runs?wait=60" \
  -H "Authorization: Bearer $ENRICHEDNOW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":{"item_id":"816299347"}}'
```

## 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.product",
  "scraper_version": 1,
  "status": "ok",
  "reason": null,
  "input": {
    "item_id": "816299347"
  },
  "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": "816299347",
      "product_id": "0SE4GER7J4WQ",
      "upc": "192370530796",
      "gtin": null,
      "url": "https://www.walmart.com/ip/Gildan-Men-s-Short-Sleeve-Cotton-Stretch-V-Neck-T-Shirts-up-to-2XL-3-Pack/816299347",
      "title": "Gildan Men's Short Sleeve Cotton Stretch V-Neck T-Shirts, up to 2XL, 3-Pack",
      "brand": "Gildan",
      "model": "G9503LGWHTP3E-01",
      "short_description": "Knit with soft, breathable ring-spun cotton and spandex for a perfect stretch, these Gildan Cotton Stretch V-Neck T-Shirts are engineered to move with you from day to night. Featuring moisture wicking technology and a classic silhouette … [truncated]",
      "description": "Soft, breathable ring-spun cotton\nCotton stretch moves with you\nClassic fit with fitted sleeves and hidden v-neck collar\nMoisture wicking technology keeps you cool and dry\nTag-free to prevent irritation",
      "price": {
        "amount": 16.99,
        "currency": "USD"
      },
      "was_price": {
        "amount": 25.49,
        "currency": "USD"
      },
      "availability": "IN_STOCK",
      "seller_name": "GILDAN USA LLC",
      "seller_id": "79D301503759442CA2B71CE9EDF72CA4",
      "rating": 4.6,
      "review_count": 121,
      "category_path": [
        "Clothing",
        "Mens Clothing",
        "Mens Shirts"
      ],
      "specifications": [
        {
          "name": "Fabric content",
          "value": "95% Cotton, 5% Spandex"
        },
        {
          "name": "Clothing neck style",
          "value": "V-Neck"
        },
        {
          "name": "Clothing fit",
          "value": "Classic Fit"
        }
      ],
      "images": [
        "https://i5.walmartimages.com/seo/Gildan-Men-s-Short-Sleeve-Cotton-Stretch-V-Neck-T-Shirts-up-to-2XL-3-Pack_9346f6d8-0977-420e-95fe-54cde88fabfe.f3a3798bd4832f3043dd503480f48d17.jpeg",
        "https://i5.walmartimages.com/asr/5e9499f4-e7b8-42bd-85cf-c44f9fdc5787.f5e4f28bb4f2c9f4b58fcebe7458444c.jpeg",
        "https://i5.walmartimages.com/asr/6fb4eaa0-42ba-417a-a6da-6f292aedca0a.345e65a7e7406b881a3952d19a6433fb.jpeg"
      ],
      "variants": [
        {
          "item_id": "816299347",
          "product_id": "0SE4GER7J4WQ",
          "options": {
            "Color": "Artic White",
            "Clothing Size": "L"
          },
          "price": {
            "amount": 16.99,
            "currency": "USD"
          },
          "availability": "IN_STOCK",
          "url": "https://www.walmart.com/ip/Gildan-Men-s-Short-Sleeve-Cotton-Stretch-V-Neck-T-Shirts-up-to-2XL-3-Pack/816299347"
        },
        {
          "item_id": "273265461",
          "product_id": "34XFNA6YO3BC",
          "options": {
            "Color": "White/Black Soot/Grey Flannel",
            "Clothing Size": "2XL"
          },
          "price": {
            "amount": 16.99,
            "currency": "USD"
          },
          "availability": "OUT_OF_STOCK",
          "url": "https://www.walmart.com/ip/Gildan-Men-s-Short-Sleeve-Cotton-Stretch-V-Neck-T-Shirts-up-to-2XL-3-Pack/273265461"
        }
      ],
      "fetched_at": "2026-11-19T18:07:41.759132Z"
    }
  ],
  "next_cursor": null
}
```

What was done to the record for this page, and nothing else — the API returns every value whole. A text that was cut ends with `… [truncated]`.

- Shortened: `short_description`: 358 characters, the first 236 shown.
- Shortened: `category_path`: 4 items, the first 3 shown.
- Shortened: `specifications`: 6 items, the first 3 shown.
- Shortened: `images`: 4 items, the first 3 shown.
- Shortened: `variants`: 6 items, the first 2 shown.

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.
