{
  "openapi": "3.0.1",
  "info": {
    "title": "Walmart Scraper | Live Prices, Reviews, Deals & Product Data",
    "description": "Walmart scraper for real-time data: keyword search, rich PDP specs (variants, fulfillment, 40+ fields), reviews w/ photos, rollbacks, deals, best sellers & categories. US + Canada. Anti-bot + proxy. PerimeterX bypass. JSON for price tracking, repricing & catalog builds.",
    "version": "0.0",
    "x-build-id": "7bM6l9ofTDjWwiQIw"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/b2b_leads~walmart-scraper-live-prices-reviews-deals-product-data/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-b2b_leads-walmart-scraper-live-prices-reviews-deals-product-data",
        "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/b2b_leads~walmart-scraper-live-prices-reviews-deals-product-data/runs": {
      "post": {
        "operationId": "runs-sync-b2b_leads-walmart-scraper-live-prices-reviews-deals-product-data",
        "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/b2b_leads~walmart-scraper-live-prices-reviews-deals-product-data/run-sync": {
      "post": {
        "operationId": "run-sync-b2b_leads-walmart-scraper-live-prices-reviews-deals-product-data",
        "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": {
          "country": {
            "title": "Marketplace country",
            "enum": [
              "US",
              "CA"
            ],
            "type": "string",
            "description": "Walmart marketplace. Currently US (walmart.com) and CA (walmart.ca). Drives domain and currency.",
            "default": "US"
          },
          "enableProductSearch": {
            "title": "Product Search",
            "type": "boolean",
            "description": "Search Walmart by keyword. Returns rich cards with price, badges, fulfillment signals, ratings.",
            "default": true
          },
          "searchKeywords": {
            "title": "Search keywords",
            "type": "array",
            "description": "Keywords to search (e.g. \"wireless mouse\", \"tide\"). 1-20 supported.",
            "default": [
              "wireless mouse"
            ],
            "items": {
              "type": "string"
            }
          },
          "searchMaxResultsPerKeyword": {
            "title": "Max results per keyword",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Maximum products per keyword (1-200).",
            "default": 10
          },
          "searchMaxPages": {
            "title": "Max pages per keyword",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many search result pages to crawl.",
            "default": 1
          },
          "searchSort": {
            "title": "Sort order",
            "enum": [
              "best_match",
              "price_low",
              "price_high",
              "rating",
              "newest",
              "best_seller"
            ],
            "type": "string",
            "description": "How to sort search results.",
            "default": "best_match"
          },
          "searchScrapeReviews": {
            "title": "Scrape reviews from search results",
            "type": "boolean",
            "description": "When Product Reviews is also enabled, automatically fetch reviews (and product ratings) for items found in search. Works standalone with search + reviews only — no manual reviewItemIds needed.",
            "default": false
          },
          "searchReviewsMaxProducts": {
            "title": "Max products to review per keyword",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "How many search-result products to pull reviews for per keyword (1-50). Defaults to max results per keyword.",
            "default": 5
          },
          "enableProductDetails": {
            "title": "Product Details",
            "type": "boolean",
            "description": "Fetch extremely rich PDP data (40-60+ fields): specs, dimensions, variants, fulfillment, seller, images, etc.",
            "default": false
          },
          "itemIds": {
            "title": "Item IDs",
            "type": "array",
            "description": "Walmart numeric item IDs (usItemId), e.g. 13802306327 or 10450124. Primary identifier.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "productUrls": {
            "title": "Product URLs",
            "type": "array",
            "description": "Full Walmart product page URLs (https://www.walmart.com/ip/...). Alternative to itemIds.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "includeVariants": {
            "title": "Include variants",
            "type": "boolean",
            "description": "Extract full variant matrix with per-option pricing and stock.",
            "default": true
          },
          "includeSpecs": {
            "title": "Include specifications",
            "type": "boolean",
            "description": "Extract full specifications map + parsed dimensions.",
            "default": true
          },
          "includeFulfillment": {
            "title": "Include fulfillment",
            "type": "boolean",
            "description": "Extract pickup, delivery estimates, Walmart+ signals, shipping options.",
            "default": true
          },
          "includeImages": {
            "title": "Include images",
            "type": "boolean",
            "description": "Return full image gallery URLs.",
            "default": true
          },
          "enableProductReviews": {
            "title": "Product Reviews",
            "type": "boolean",
            "description": "Paginated customer reviews including photos when available.",
            "default": false
          },
          "reviewItemIds": {
            "title": "Review item IDs",
            "type": "array",
            "description": "Numeric item IDs to fetch reviews for. Optional when searchScrapeReviews is enabled with Product Search.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "reviewsMaxPerProduct": {
            "title": "Max reviews per item",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "How many reviews to collect per product (1-100).",
            "default": 20
          },
          "reviewsSortBy": {
            "title": "Reviews sort",
            "enum": [
              "recommended",
              "newest",
              "oldest",
              "highest",
              "lowest"
            ],
            "type": "string",
            "description": "Sort order for reviews.",
            "default": "newest"
          },
          "enableScrapeByUrl": {
            "title": "Scrape By URL",
            "type": "boolean",
            "description": "Paste any Walmart URL (search, PDP, deals, category). Auto-detects page type and extracts rich data.",
            "default": false
          },
          "scrapeUrls": {
            "title": "URLs to scrape",
            "type": "array",
            "description": "Any walmart.com or walmart.ca URLs.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "scrapeMaxPages": {
            "title": "Max pages (for list pages)",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Follow pagination on search/category/deals pages.",
            "default": 1
          },
          "enableDeals": {
            "title": "Deals & Rollbacks",
            "type": "boolean",
            "description": "Scrape today's deals, rollbacks, clearance, and special buys.",
            "default": false
          },
          "dealsType": {
            "title": "Deals type",
            "enum": [
              "all",
              "rollbacks",
              "clearance",
              "special_buy",
              "flash"
            ],
            "type": "string",
            "description": "Filter deal type.",
            "default": "all"
          },
          "dealsMaxProducts": {
            "title": "Max deal products",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Maximum deal items to return.",
            "default": 50
          },
          "enableBestSellers": {
            "title": "Best Sellers / Trending",
            "type": "boolean",
            "description": "Ranked best sellers or trending products from category hubs.",
            "default": false
          },
          "bestSellersCategoryUrls": {
            "title": "Best seller category URLs",
            "type": "array",
            "description": "Direct category or best-seller page URLs.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "bestSellerMaxProducts": {
            "title": "Max best seller products",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Limit per category.",
            "default": 50
          },
          "enableCategoryBrowse": {
            "title": "Category Browse",
            "type": "boolean",
            "description": "Browse any Walmart department or category URL and get rich product grids.",
            "default": false
          },
          "categoryUrls": {
            "title": "Category URLs",
            "type": "array",
            "description": "e.g. https://www.walmart.com/browse/electronics/3944_1089430",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "categoryMaxPages": {
            "title": "Max pages to browse",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Pagination depth.",
            "default": 1
          },
          "maxItems": {
            "title": "Global max items",
            "minimum": 1,
            "type": "integer",
            "description": "Safety cap applied across features when no specific max is set.",
            "default": 100
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Residential proxies are strongly recommended for Walmart. Apify Residential or your own provider.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountry": "US"
            }
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}