{
  "openapi": "3.0.1",
  "info": {
    "title": "Walmart Reviews Scraper - Reviews by URL, ID or Keyword",
    "description": "Scrape Walmart.com customer reviews by product URL, item ID or keyword: rating, title, text, author, verified purchase, helpful votes, photos, incentivized flag, aspect sentiment and date, plus a rating summary with Walmart's AI review summary. Date cutoff and only-new mode for monitoring.",
    "version": "0.1",
    "x-build-id": "QThISlTgj7J1SlcO1"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/khadinakbar~walmart-reviews-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-khadinakbar-walmart-reviews-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/khadinakbar~walmart-reviews-scraper/runs": {
      "post": {
        "operationId": "runs-sync-khadinakbar-walmart-reviews-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/khadinakbar~walmart-reviews-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-khadinakbar-walmart-reviews-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": {
          "mode": {
            "title": "Mode",
            "enum": [
              "search",
              "productUrls",
              "itemIds"
            ],
            "type": "string",
            "description": "How to choose which products to pull reviews for. 'search' runs a keyword search and harvests reviews for the top products (bounded by Max products). 'productUrls' pulls reviews for the exact Walmart product URLs you supply. 'itemIds' pulls reviews for raw numeric Walmart item IDs. Defaults to 'search'.",
            "default": "search"
          },
          "searchQuery": {
            "title": "Search query",
            "type": "string",
            "description": "Free-text product query run on Walmart's search (for example 'airpods pro'). Used only when mode = search; the top products (up to Max products) have their reviews collected. Leave blank for productUrls / itemIds modes. Not a product URL: for a specific product use productUrls. Free Apify plan runs return up to 25 results per run."
          },
          "productUrls": {
            "title": "Product URLs",
            "type": "array",
            "description": "Walmart product page URLs (for example 'https://www.walmart.com/ip/Apple-AirPods-Pro-3/17835006350'). Used when mode = productUrls. The item ID is read from the URL; a URL without an ID is opened once to find it. Each product's reviews are paged up to Max reviews per product.",
            "items": {
              "type": "string"
            }
          },
          "itemIds": {
            "title": "Walmart item IDs",
            "type": "array",
            "description": "Numeric Walmart item IDs (for example '17835006350'), the number at the end of a product URL. Used when mode = itemIds. For full product fields (price, specs, variants) use the separate Walmart product extractor.",
            "items": {
              "type": "string"
            }
          },
          "maxProducts": {
            "title": "Max products (search mode)",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Upper bound on how many products from the keyword search have their reviews scraped. Applies only to mode = search; productUrls / itemIds modes scrape every product you supply. The prefill is intentionally small so Apify health checks finish fast — raise it for production. Hard cap 200.",
            "default": 10
          },
          "maxReviewsPerProduct": {
            "title": "Max reviews per product",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Upper bound on reviews collected per product (each saved review is one review-extracted event; see the Pricing tab). Reviews are paged newest-first by default until this cap or until the product runs out of written reviews. Default 100, hard cap 10,000. A page of 10 reviews takes about 2-3 seconds, so allow a longer run timeout for thousands of reviews.",
            "default": 100
          },
          "sortReviews": {
            "title": "Sort reviews",
            "enum": [
              "mostRecent",
              "mostHelpful",
              "highestRating",
              "lowestRating",
              "mostRelevant"
            ],
            "type": "string",
            "description": "Order in which reviews are collected per product. 'mostRecent' (default) returns newest first — best for monitoring fresh sentiment. 'mostHelpful' returns the highest-voted reviews. 'highestRating' / 'lowestRating' surface the best/worst first. 'mostRelevant' uses Walmart's default ranking.",
            "default": "mostRecent"
          },
          "ratingFilter": {
            "title": "Star rating filter",
            "enum": [
              "all",
              "5",
              "4",
              "3",
              "2",
              "1"
            ],
            "type": "string",
            "description": "Keep only reviews with this exact star rating. 'all' (default) keeps every rating. '5'..'1' ask Walmart for just that star bucket, which is faster and cheaper than filtering afterwards, and each row is re-checked so the filter is always exact. Useful for mining 1-star complaints or 5-star praise.",
            "default": "all"
          },
          "verifiedOnly": {
            "title": "Verified purchases only",
            "type": "boolean",
            "description": "When true, keeps only reviews marked as a verified purchase. Other reviews are skipped and never charged. Combine with the star rating filter, for example verified 1-star complaints. Defaults to false.",
            "default": false
          },
          "reviewsSince": {
            "title": "Only reviews since",
            "type": "string",
            "description": "Keep only reviews submitted on or after this date (YYYY-MM-DD, for example 2026-01-31). With the default 'Most recent' sort the Actor stops paging as soon as it reaches older reviews, so a date cutoff also makes the run shorter; with any other sort it must read the whole list. Older reviews are never charged. Leave empty for no date limit."
          },
          "onlyNewReviews": {
            "title": "Only new reviews since last run",
            "type": "boolean",
            "description": "For scheduled monitoring. When true, reviews already delivered by an earlier run of this Actor on your account are skipped and never charged, and, with the 'Most recent' sort, paging stops once a page has nothing new. The list of seen review IDs is kept in a Key-Value Store named walmart-reviews-seen on your account, separately for each star filter and verified-only setting. The first run delivers everything up to your cap. Best with the 'Most recent' sort. Defaults to false.",
            "default": false
          },
          "includeProductSummary": {
            "title": "Include product summary row",
            "type": "boolean",
            "description": "When true (default), emit one aggregate row per product (tagged _type='product') with the overall rating, total review count, 1-5 star histogram, recommended percentage, most-mentioned aspects and Walmart's AI review summary when available, alongside the review rows. Charged as one product-summary event per product (see the Pricing tab). Turn off to receive only review rows.",
            "default": true
          },
          "maxPagesPerProduct": {
            "title": "Max pages to read per product (advanced)",
            "minimum": 0,
            "maximum": 2000,
            "type": "integer",
            "description": "Safety limit on how many review pages (10 reviews each) are read for one product. Leave at 0 (automatic): the Actor then stops a product after about 25 pages in a row with no matching review, or when it has read roughly four times the pages your review cap needs. Raise it only for a filtered run (verified only, date cutoff with a non-newest sort, only new) that must scan a very long review list. Up to 2000.",
            "default": 0
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Apify proxy settings. Defaults to Apify Residential pinned to US, which Walmart needs (it blocks datacenter addresses). Change it only if you have a specific reason, such as your own residential pool.",
            "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
                  },
                  "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}