{
  "openapi": "3.0.1",
  "info": {
    "title": "Walmart Review Scraper with Reviewer and Date Details",
    "description": "Scrape Walmart product reviews in seconds 🛒⭐ Extract ratings, review text, reviewer names, dates, verified purchase info, and more. Perfect for sentiment analysis, product research, competitor tracking, and ecommerce insights. Turn customer feedback into smart decisions 🚀",
    "version": "0.1",
    "x-build-id": "cXs7jz9obtGiIa1Ef"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapeflow~walmart-reviews-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapeflow-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/scrapeflow~walmart-reviews-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrapeflow-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/scrapeflow~walmart-reviews-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrapeflow-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",
        "required": [
          "startUrls"
        ],
        "properties": {
          "startUrls": {
            "title": "🎯 Walmart URLs, Keywords, or Search Terms",
            "type": "array",
            "description": "📋 Add one item per line.\n\n✅ Supported inputs:\n• 🔗 Product URL (e.g. https://www.walmart.com/ip/product-name/123456)\n• 🔎 Search URL (e.g. https://walmart.com/search?q=tshirt)\n• 🧠 Keyword (e.g. tshirt)\n\n💡 Bulk input is supported.",
            "items": {
              "type": "string"
            }
          },
          "sortOrder": {
            "title": "🔀 Review Sort Order",
            "enum": [
              "relevancy",
              "submission-desc",
              "helpful",
              "rating-desc",
              "rating-asc"
            ],
            "type": "string",
            "description": "📑 Choose review ordering:\n• ⭐ relevancy (most relevant)\n• 🆕 submission-desc (newest first)\n• 👍 helpful (most helpful)\n• ⬆️ rating-desc (highest rating first)\n• ⬇️ rating-asc (lowest rating first)\n\n💡 Tip: use submission-desc together with 📅 Reviews Newer Than below — the scraper stops paging early once it passes your date cutoff, saving requests.",
            "default": "relevancy"
          },
          "maxComments": {
            "title": "🧾 Maximum Reviews Per Product",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "🎯 Max reviews to extract per product, counted AFTER your filters below are applied.\n\nExample: maxComments=5 + verifiedPurchasesOnly=true → the run keeps fetching pages until 5 verified-purchase reviews are collected (or reviews run out), never more.\n\n⚠️ Keep this balanced for faster runs and predictable output volume. Default is 5.",
            "default": 5
          },
          "maxProductsPerStartUrl": {
            "title": "📦 Maximum Products Per Start URL",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "🛍️ For search URLs, limit how many products are processed from each input URL.\n💡 Higher values collect more data but increase run time. Default is 10.",
            "default": 10
          },
          "skipProductsWithoutReviews": {
            "title": "⏭️ Skip Products Without Reviews",
            "type": "boolean",
            "description": "⚡ If enabled, products without reviews are skipped to speed up scraping.",
            "default": true
          },
          "verifiedPurchasesOnly": {
            "title": "✅ Verified Purchases Only",
            "type": "boolean",
            "description": "🔒 Keep only reviews carrying Walmart's own 'Verified Purchase' badge.\n\nExample: verifiedPurchasesOnly=true on a product with 30 reviews → only the ~21 that Walmart marked verified are kept.\n\n⚠️ Reviews written before Walmart introduced the badge (roughly pre-2018) carry NO badge at all — this is not proof they weren't purchased. Turning this on can silently remove a product's entire older review history. Default is false so you can see the verified/unverified mix first.",
            "default": false
          },
          "excludeSyndicatedReviews": {
            "title": "🚫 Exclude Syndicated Reviews",
            "type": "boolean",
            "description": "🏷️ Drop reviews Walmart displays with an outside brand's logo (`syndicationSource` present) — these were written on the brand's own site, not on Walmart, then piped into the Walmart listing.\n\nExample: excludeSyndicatedReviews=true on a product with 5 of 30 reviews syndicated from a brand's site → only the 25 Walmart-native reviews remain.\n\n💡 A brand/category manager's core authenticity check — no other Walmart review scraper exposes this. Default is false.",
            "default": false
          },
          "reviewsNewerThan": {
            "title": "📅 Reviews Newer Than",
            "type": "string",
            "description": "🗓️ Keep only reviews submitted on or after this date. Accepts an absolute date (YYYY-MM-DD) or a relative window such as '30 days', '6 months', '2 years'.\n\nExample: reviewsNewerThan='6 months' → only reviews submitted in the last 6 months are kept.\n\n⚠️ Walmart's own review timestamp is date-only (M/D/YYYY, no clock time) — filtering is precise to the day. Leave empty for no date cutoff.",
            "default": ""
          },
          "ratings": {
            "title": "⭐ Filter By Star Rating",
            "type": "array",
            "description": "🌟 Keep only reviews with one of the selected star ratings. Leave empty to keep all star ratings.\n\nExample: ratings=[\"1\",\"2\"] → only 1-star and 2-star reviews are kept — useful for finding a syndication problem hiding in the low end, or checking the 5-star band for borrowed reviews.",
            "items": {
              "type": "string",
              "enum": [
                "1",
                "2",
                "3",
                "4",
                "5"
              ],
              "enumTitles": [
                "⭐ 1 star",
                "⭐⭐ 2 stars",
                "⭐⭐⭐ 3 stars",
                "⭐⭐⭐⭐ 4 stars",
                "⭐⭐⭐⭐⭐ 5 stars"
              ]
            },
            "default": []
          },
          "proxyConfiguration": {
            "title": "🌐 Proxy Configuration",
            "type": "object",
            "description": "🛡️ Proxy strategy for reliability.\n\n🏠 Always starts on a US RESIDENTIAL proxy (Walmart's PerimeterX protection blocks nearly all datacenter/no-proxy traffic on product and review pages).\n🔄 On a detected block, escalates: datacenter ➜ residential retry with a fresh IP."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}