{
  "openapi": "3.0.1",
  "info": {
    "title": "Walmart Scraper - Search, Product Details & Reviews",
    "description": "Walmart scraper with no login: search any keyword and get prices, discounts, ratings, sellers, stock and sponsored flags per product. Optionally add full product details (specs, images, variants) and customer reviews as their own rows.",
    "version": "1.0",
    "x-build-id": "gKiCy1gvUj2Bc5XGW"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/ntriqpro~walmart-product-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-ntriqpro-walmart-product-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/ntriqpro~walmart-product-scraper/runs": {
      "post": {
        "operationId": "runs-sync-ntriqpro-walmart-product-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/ntriqpro~walmart-product-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-ntriqpro-walmart-product-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "brands": {
            "title": "Brand filter (listings)",
            "type": "array",
            "description": "Exact Walmart brand names, for example ToughTested and onn. Measured on walmart.com; on walmart.ca the same brand facet is sent but its effect was not measured. Combined with the public server OR brand facet; the response must confirm exactly that selected set before page/product charging. Names are trimmed and deduplicated case-insensitively. Conflicting URL facets or facet syntax inside names are rejected. Main-grid results only; contradictory brands and unlabelled sponsored cards are excluded. Missing product brand text remains null. No extra details requests solely for brand detection. Legacy candidate mode never refills; explicit delivered-count aliases can continue within maxSearchPages/budget. Applies to keywords/category/search URLs, not direct product targets.",
            "items": {
              "type": "string"
            }
          },
          "maxRequestRetries": {
            "title": "Maximum request retries",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Retries after the first failed request (1 to 10, default 5). Each retry uses a new proxy session. Page/result events are not charged per retry.",
            "default": 5
          },
          "reg": {
            "title": "Region for numeric item IDs",
            "enum": [
              "US",
              "CA"
            ],
            "type": "string",
            "description": "Numeric IDs default to US; select CA for Canada. Product/review URLs detect their own region. Links of both countries may go into one run when this field is left out: the run then reads them country by country. With a region chosen here, a search or category link of the other country is rejected; product and review links are always read in their own country. CA supports en/fr product/review targets, keywords and walmart.ca search/category URLs; keywords are searched in the selected region. Omitted proxy settings use that region's residential proxy. Event prices are still USD; product prices retain source currency."
          },
          "lang": {
            "title": "Language",
            "enum": [
              "en",
              "fr"
            ],
            "type": "string",
            "description": "Language for numeric IDs: en by default; fr requires reg=CA. Product/review URLs detect their own locale regardless of this setting. Links of both languages may go into one run when this field is left out: the run then reads them language by language. With a language chosen here, a search or category link of the other language is rejected. Review text/dates/translation metadata remain exactly as returned; page language does not promise translated review prose."
          },
          "keywords": {
            "title": "Search keywords",
            "type": "array",
            "description": "One search per keyword on walmart.com (or walmart.ca when the region is CA). Each result is a product row; every page read also writes one search-page row. A keyword Walmart answers without results (refused, or a robot check on every try) is one target-check row. Free runs read the first keyword only. Price at Bronze: $0.009 per search page + $0.0011 per product row.",
            "items": {
              "type": "string"
            }
          },
          "productUrls": {
            "title": "Product links or IDs",
            "type": "array",
            "description": "US English or CA en/fr product/review URLs, or numeric IDs using reg (US by default). Exact Walmart.com/Walmart.ca hosts only, optional www; no credentials/nonstandard ports. URL region is detected automatically; mixed countries/languages run one group after another (free runs: the first group only). Merged/deduplicated with product_ids under 200 targets. Numeric IDs and product URLs are billed as product + product-details; set maxReviewsPerProduct above 0 for their reviews. A review URL (/reviews/product/…) runs review-only: 30 reviews by default, no product page and no product/product-details charge - only review-page and review. Free runs read one target and return a locked row plus the fixed US sample. Query/fragment controls are ignored, except a review URL's sort.",
            "items": {
              "type": "string"
            }
          },
          "categoryUrls": {
            "title": "Category or copied search URLs",
            "type": "array",
            "description": "Read Walmart /browse/... category listings or /search?q=... URLs directly (walmart.com, or walmart.ca under /en or /fr). A listing link longer than 2,048 characters — as given, or in its www. form — is skipped with a notice and nothing is charged for it. When the run's sort, brands or price range make the address asked of Walmart longer than 2,048 characters, the run is refused with an input error before any request. Existing URL filters and sort are preserved; the sort input applies only when the URL has no sort. A supplied page starts there (1-25); maxSearchPages counts pages read, never going past page 25. Exact walmart.com and walmart.ca hosts only (with optional www); /cp landing pages are not supported. Each read listing page uses the existing search-page event. Set includeDetails for optional product details. Keywords and listing URLs share a 200-target bound.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Product, category or search URLs with details",
            "type": "array",
            "description": "Listing URLs (search or category) and product/review URLs of walmart.com (English) or walmart.ca (/en, /fr), as strings or {url} objects. Product URLs use the existing product/details lane. Search/category URLs request product details even if includeDetails is false; details are billed only when delivered. Failed or unaffordable details retain the existing listing-only fallback. Use categoryUrls for listing-only results. Duplicate listing URLs are read once, with details enabled if any startUrls entry requested them and the smaller product cap if caps differ. Free runs still read only one listing page and return locked rows plus the fixed sample.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "maxProductsPerSearch": {
            "title": "Max delivered products per keyword or category",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Explicit delivered-product cap for keywords/categoryUrls, also inherited by startUrls. Scans recognized main-grid results after filters until this count or the page/source/budget/stop boundary. May read more candidates and pages, never more than maxSearchPages. Cannot be combined with maxProductsPerKeyword, even at the same numeric value. Omit aliases to preserve the legacy candidate/no-refill contract with its default of 100 products. Free preview remains one page with a candidate cap."
          },
          "maxProductsPerStartUrl": {
            "title": "Max delivered products per start URL listing",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "Explicit delivered-product cap for each startUrls listing within maxSearchPages/source/budget boundaries. Direct product URLs remain one each. Cannot combine with maxProductsPerKeyword. If absent, inherits the search contract. The same URL cannot combine candidate and delivered-count contracts. 0 is accepted: the competitor schema allows a minimum of 0 but does not say what 0 means; here it means no per-listing cap (ceiling 1000, page and budget limits still apply)."
          },
          "maxSearchPages": {
            "title": "Max listing pages per target",
            "minimum": 1,
            "maximum": 25,
            "type": "integer",
            "description": "Hard limit on listing pages read for each keyword or category/search URL. A URL starting at page 24 can read at most pages 24 and 25. Does not limit explicitly requested product-detail or review pages. Free runs always read at most one listing page.",
            "default": 25
          },
          "maxProductsPerKeyword": {
            "title": "Max products per keyword",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Stops a keyword after this many products (about 40-60 per search page). Free runs read the first page only and return its cards as locked rows (ranges only)."
          },
          "minPrice": {
            "title": "Minimum search product price (site currency)",
            "minimum": 0,
            "type": "number",
            "description": "Inclusive local filter on current search-card product price, excluding delivery and tax. The number is in the currency of the site that is read: USD on walmart.com, CAD on walmart.ca. It is not converted — a run that reads both sites applies the same number to each in its own currency. Legacy maxProductsPerKeyword keeps its candidate window with no refill. Explicit maxProductsPerSearch/maxProductsPerStartUrl may scan further within maxSearchPages/budget to meet their delivered-count cap. Page rows remain billable. Product links and the fixed sample are unchanged."
          },
          "maxPrice": {
            "title": "Maximum search product price (site currency)",
            "minimum": 0,
            "type": "number",
            "description": "Inclusive local filter, with the same scope and currency as minPrice (USD on walmart.com, CAD on walmart.ca, not converted). Must be at least minPrice. Also sent to Walmart as min_price/max_price on keyword and /search URLs (other listing types filter locally). Explicit delivered-count aliases may read further pages within maxSearchPages and budget; legacy candidate mode never refills."
          },
          "sort": {
            "title": "Sort",
            "enum": [
              "best_match",
              "best_seller",
              "price_low",
              "price_high",
              "rating_high",
              "new",
              "relevancy",
              "submission-desc",
              "submission-asc",
              "helpful",
              "rating-desc",
              "rating-asc"
            ],
            "type": "string",
            "description": "Order of the search results. Every value was measured to change the order; Walmart mixes sponsored cards into all of them. Review-order values alias reviewSort and keep search order at best_match; use reviewSort separately to set both.",
            "default": "best_match"
          },
          "includeDetails": {
            "title": "Include product details",
            "type": "boolean",
            "description": "Open every searched product's page and add description, specifications, images, variants with prices, UPC, seller and offer facts (offer type, condition, order limit, other sellers) and the rating breakdown to its row. Billed as a separate event per product. Product links always carry details. Free runs: not included (the sample shows one). Adds $0.0028 per product at Bronze ($0.0032 on the Free plan), once per product per run.",
            "default": false
          },
          "enqueueProductVariants": {
            "title": "Also scrape each variant",
            "type": "boolean",
            "description": "For each product link (product URLs, item IDs, start URLs that are product links), also read its other variants (sizes, colors) and write each as its own product row with details. At most 20 variants per product and 200 per run; each variant row is charged like a product link (product row + product details). Cards of keyword, category and start-URL listings are expanded the same way (the product page of each card is read). Free runs: ignored.",
            "default": false
          },
          "maxReviewsPerProduct": {
            "title": "Max reviews per product",
            "minimum": 0,
            "maximum": 500,
            "type": "integer",
            "description": "Empty = no reviews for product links and IDs, and the default 30 reviews for a review link. 0 = no reviews at all. Above 0, each product also gets up to this many customer reviews as separate rows. Free runs: not included (the sample shows 5). Price at Bronze: $0.0002 per review and $0.0018 per review page read (up to 10 reviews a page); reviews that come with the product page have no page charge."
          },
          "limit": {
            "title": "Review pages (limit)",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Number of review pages to read per product, 10 reviews a page (same meaning as the review scraper input `limit`). Used when Max reviews per product is left empty (any value there, 0 included, wins); at most 500 reviews per product (50 pages). It is a page cap: with review filters on, a page that gives fewer than 10 matching reviews is not followed by a page beyond the limit, and the reviews on the product page count as page 1. Page and review prices as for Max reviews per product."
          },
          "reviewRating": {
            "title": "Review star rating",
            "enum": [
              "all",
              "1",
              "2",
              "3",
              "4",
              "5"
            ],
            "type": "string",
            "description": "Keep reviews with this exact star rating. Applied locally within the existing page limit and combined with the verified-purchase filter. Fewer reviews may match; read review-page rows remain billable. The fixed free sample is unchanged. Omit both reviewRating and ratings for all stars. If ratings is also supplied, both selections must agree; otherwise the run fails before requests."
          },
          "verifiedPurchasesOnly": {
            "title": "Verified purchase reviews only",
            "type": "boolean",
            "description": "Keep only reviews with Walmart's Verified Purchase badge. Applied locally to the same bounded set of pages, so fewer than the requested maximum may match. Review-page rows remain billable; excluded reviews are not delivered. Free runs retain the fixed sample regardless of this filter.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Walmart's robot check blocks most datacenter IPs. Leave the default (Apify Residential Proxy, target region US or CA; also used when an API call leaves this field out); that proxy traffic is included in the event prices, not billed on top (your own proxyUrls are billed by their provider). A blocked page is tried again up to 6 times, each on a new proxy session; a target still refused after that is one target-check row."
          },
          "ratings": {
            "title": "Review star ratings (multiple)",
            "type": "array",
            "description": "Keep reviews matching any selected star, locally within the existing review-page bound. Omitted means all; an explicit empty array is invalid. Do not mix all with individual stars. If reviewRating is supplied too, select the same single star or all. Combined with verifiedPurchasesOnly. This does not fetch extra pages to fill filtered results. Fixed free samples ignore star filters.",
            "items": {
              "type": "string",
              "enum": [
                "all",
                "1",
                "2",
                "3",
                "4",
                "5"
              ],
              "enumTitles": [
                "All ratings",
                "1 star",
                "2 stars",
                "3 stars",
                "4 stars",
                "5 stars"
              ]
            }
          },
          "include_personal_information": {
            "title": "Include reviewer names and review media",
            "type": "boolean",
            "description": "Default false: reviewerName and photoUrls are null on paid review rows and the fixed free review sample. True preserves the observed reviewer nickname and review photo/media URLs. Mirrors the competitor fields userNickname/photos/media. Review prose and product information remain unchanged; this is not anonymization of free text. No extra requests or charges. This replaces the earlier implicit inclusion of those fields; set true to retain the earlier behavior.",
            "default": false
          },
          "product_ids": {
            "title": "Product or review URLs / item IDs (alias)",
            "type": "array",
            "description": "Alias of productUrls; merged/deduplicated under 200 targets. Accepts US English or CA en/fr product/review URLs or numeric IDs using reg. A review URL (/reviews/product/…) runs review-only: 30 reviews by default, no product page and no product/product-details charge. Numeric IDs and product URLs keep billed details and default maxReviewsPerProduct=0. URL region is detected; mixed countries/languages run one group after another. The fixed free sample remains US even for CA inputs.",
            "items": {
              "type": "string"
            }
          },
          "reviewSort": {
            "title": "Review sorting",
            "enum": [
              "relevancy",
              "submission-desc",
              "submission-asc",
              "helpful",
              "rating-desc",
              "rating-asc"
            ],
            "type": "string",
            "description": "Optional review order for US and CA (en/fr). `submission-asc` is oldest first. The response product ID, page, locale and activeSort must match before charging. Conflicting review URL sort or sort alias is rejected. Does not sort the fixed free sample. Explicit sorting may require a review-page request instead of unsorted product-embedded reviews."
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}