{
  "openapi": "3.0.1",
  "info": {
    "title": "Walmart Products and Reviews Scraper",
    "description": "Scrape Walmart.com search results, categories, product details, price & stock (seller, fulfillment, was-price, rollback) and customer reviews with sort & star filters. Block-aware retries, per-input status, pay only for saved results.",
    "version": "0.1",
    "x-build-id": "89d4XFjMIJHbiG7Vh"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/kingly_contest_7cb~walmart-products-reviews-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-kingly_contest_7cb-walmart-products-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/kingly_contest_7cb~walmart-products-reviews-scraper/runs": {
      "post": {
        "operationId": "runs-sync-kingly_contest_7cb-walmart-products-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/kingly_contest_7cb~walmart-products-reviews-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-kingly_contest_7cb-walmart-products-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": {
          "searchQueries": {
            "title": "Search keywords",
            "type": "array",
            "description": "Keywords to search on Walmart.com, one per line, e.g. \"air fryer\". Each keyword is scraped separately.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Walmart URLs",
            "type": "array",
            "description": "Any walmart.com URL: search (/search?q=...), category (/browse/...), product (/ip/...) or reviews (/reviews/product/<id>). Filters and sort already in the URL are kept. Optional per-URL userData is copied to every output row.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "itemIds": {
            "title": "Walmart item IDs",
            "type": "array",
            "description": "Numeric Walmart item IDs (the number at the end of a /ip/ URL), e.g. 5113183757. Each returns one product record (and reviews if enabled).",
            "items": {
              "type": "string"
            }
          },
          "maxResults": {
            "title": "Max results (total, hard cap)",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Hard cap on dataset rows across the whole run (search results + products + reviews). The run stops as soon as it is reached, so you never pay for more than this.",
            "default": 200
          },
          "maxItemsPerSearch": {
            "title": "Max products per keyword / listing URL",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "How many products to take from each keyword or search/category URL. Walmart shows about 40 per page and up to 25 pages.",
            "default": 40
          },
          "sort": {
            "title": "Search sort",
            "enum": [
              "best_match",
              "price_low",
              "price_high",
              "best_seller",
              "rating_high",
              "new"
            ],
            "type": "string",
            "description": "Sort order for keyword searches and listing URLs that don't already set one.",
            "default": "best_match"
          },
          "minPrice": {
            "title": "Min price ($)",
            "minimum": 0,
            "type": "integer",
            "description": "Only products priced at or above this (applied by Walmart search)."
          },
          "maxPrice": {
            "title": "Max price ($)",
            "minimum": 0,
            "type": "integer",
            "description": "Only products priced at or below this (applied by Walmart search)."
          },
          "includeSponsored": {
            "title": "Include sponsored results",
            "type": "boolean",
            "description": "Keep sponsored (ad) listings from search pages. They are flagged with isSponsored either way.",
            "default": true
          },
          "scrapeProductDetails": {
            "title": "Open each product page (full details)",
            "type": "boolean",
            "description": "For keyword/listing inputs, open every product page and save a full product record (UPC, seller, fulfillment options, specs, description, star breakdown, variants) instead of the lighter search-result row. Product URLs and item IDs always return full records.",
            "default": false
          },
          "priceStockOnly": {
            "title": "Price & stock only (compact rows)",
            "type": "boolean",
            "description": "Open each product page (from product URLs, item IDs, or search/category results) but save a compact price & stock row: current price, was/list price, unit price, rollback/clearance flags, availability, order limit, seller, and shipping/pickup/delivery availability. Built for repricing and stock monitoring. Overrides 'Open each product page'.",
            "default": false
          },
          "includeReviews": {
            "title": "Scrape reviews",
            "type": "boolean",
            "description": "Also scrape customer reviews for every product found (one row per review, type = \"review\").",
            "default": false
          },
          "reviewsOnly": {
            "title": "Reviews only (skip product rows)",
            "type": "boolean",
            "description": "Go straight to the reviews pages and output only review rows. Product URLs / item IDs and search results are used only to find products.",
            "default": false
          },
          "maxReviewsPerProduct": {
            "title": "Max reviews per product",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Reviews to collect per product. Walmart shows 10 per page.",
            "default": 20
          },
          "reviewsSort": {
            "title": "Reviews sort",
            "enum": [
              "submission-desc",
              "submission-asc",
              "relevancy",
              "helpful",
              "rating-desc",
              "rating-asc"
            ],
            "type": "string",
            "description": "Order in which reviews are collected.",
            "default": "submission-desc"
          },
          "reviewsRatingFilter": {
            "title": "Only these star ratings",
            "type": "array",
            "description": "Optional. Collect only reviews with these star ratings, e.g. [\"1\",\"2\"] for complaints. Empty = all ratings.",
            "items": {
              "type": "string",
              "enum": [
                "1",
                "2",
                "3",
                "4",
                "5"
              ],
              "enumTitles": [
                "1 star",
                "2 stars",
                "3 stars",
                "4 stars",
                "5 stars"
              ]
            },
            "default": []
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Walmart blocks datacenter IPs and most plain residential HTTP requests to search pages. Default is Apify's UNBLOCKER proxy group, which passed every search, product and reviews page in testing. Switch to RESIDENTIAL (US) for a cheaper but less reliable fetch (search pages are often blocked).",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "UNBLOCKER"
              ]
            }
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Parallel requests. Higher is faster but gets blocked more often.",
            "default": 5
          },
          "maxRequestRetries": {
            "title": "Max retries per page",
            "minimum": 0,
            "maximum": 20,
            "type": "integer",
            "description": "Each blocked or failed page is retried with a fresh proxy IP and session up to this many times.",
            "default": 4
          },
          "crawlerType": {
            "title": "Fetch mode",
            "enum": [
              "http",
              "browser"
            ],
            "type": "string",
            "description": "http (default): plain HTTP fetch of the server-rendered page. browser (experimental): stealth Firefox (Camoufox); slower and more expensive, only used with non-Unblocker proxies.",
            "default": "http"
          },
          "httpClient": {
            "title": "HTTP client",
            "enum": [
              "impit",
              "got"
            ],
            "type": "string",
            "description": "Only used in http mode with a non-Unblocker proxy. impit (default) sends a real Chrome TLS/HTTP2 fingerprint. got is the classic Crawlee client. With the Unblocker proxy, got is always used.",
            "default": "impit"
          },
          "debugSaveHtml": {
            "title": "Debug: save raw HTML",
            "type": "boolean",
            "description": "Save the first HTML page of each type to the key-value store (for troubleshooting).",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}