{
  "openapi": "3.0.1",
  "info": {
    "title": "Walmart Product Scraper: Prices, Sellers, UPC & Reviews",
    "description": "Scrape Walmart.com by search term, category URL or product URL. Get price, was price, stock, seller (Walmart or third-party), brand, rating, UPC/GTIN, specs, variants, images, shipping and pickup info, plus optional reviews. Pay only for products delivered.",
    "version": "1.0",
    "x-build-id": "NIFczhSGbCZYKRRdG"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/zhtech~walmart-product-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-zhtech-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/zhtech~walmart-product-scraper/runs": {
      "post": {
        "operationId": "runs-sync-zhtech-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/zhtech~walmart-product-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-zhtech-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": {
          "searchQueries": {
            "title": "Search terms",
            "type": "array",
            "description": "Keywords to search on Walmart.com, one per line, for example \"air fryer\" or \"lego star wars\". Each term is a separate search, ranked like Walmart's own results.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Walmart URLs or item IDs",
            "type": "array",
            "description": "Any mix of Walmart.com product URLs (/ip/...), search URLs (/search?q=...) with filters already applied, category URLs (/browse/... or /cp/...), shop and brand pages. You can also upload a text or CSV file with one URL per line.",
            "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 product URL), for example 5466948866. Handy for price monitoring lists.",
            "items": {
              "type": "string"
            }
          },
          "maxItemsPerSearch": {
            "title": "Max products per search term or category URL",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "Stop each search or category after this many products. Walmart shows about 40 products per page and up to 25 pages, so the practical maximum is about 1,000 per search. Set 0 for no limit. Product URLs are not affected.",
            "default": 40
          },
          "maxItems": {
            "title": "Max total products",
            "minimum": 0,
            "type": "integer",
            "description": "Hard cap on the number of products in the whole run, across all inputs. Leave empty or 0 for no cap. Useful to control cost."
          },
          "scrapeProductDetails": {
            "title": "Full product details",
            "type": "boolean",
            "description": "On (recommended): open every product page to get UPC/GTIN, specifications, all images, variants, description, seller type, rating breakdown, shipping and pickup details. Off: return only the data shown on search and category pages (title, price, was price, rating, seller, stock, thumbnail, position). Off is about 3 times faster.",
            "default": true
          },
          "maxReviewsPerProduct": {
            "title": "Reviews per product",
            "minimum": 0,
            "maximum": 2000,
            "type": "integer",
            "description": "How many customer reviews to attach to each product (in the \"reviews\" field). 0 means no reviews. Reviews are charged per review, see the Pricing tab. Requires full product details.",
            "default": 0
          },
          "reviewsSort": {
            "title": "Review order",
            "enum": [
              "relevancy",
              "newest",
              "oldest",
              "most_helpful",
              "highest_rating",
              "lowest_rating"
            ],
            "type": "string",
            "description": "Which reviews to take first.",
            "default": "relevancy"
          },
          "includeReviewerNames": {
            "title": "Include reviewer nicknames",
            "type": "boolean",
            "description": "Reviewer nicknames are personal data. They are left out by default. Turn this on only if you have a legitimate reason to process them.",
            "default": false
          },
          "scrapeVariants": {
            "title": "Scrape every variant as its own product",
            "type": "boolean",
            "description": "Each product row always lists its variants (size, color and so on with price and stock). Turn this on to also scrape every variant page as a separate full product row. Each variant row counts as a result.",
            "default": false
          },
          "sort": {
            "title": "Sort search results by",
            "enum": [
              "best_match",
              "best_seller",
              "price_low",
              "price_high",
              "rating_high",
              "new"
            ],
            "type": "string",
            "description": "Order of results for search terms and category URLs. Ignored when the URL already contains a sort parameter.",
            "default": "best_match"
          },
          "minPrice": {
            "title": "Min price (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Only products priced at or above this amount. Applies to search terms and category URLs."
          },
          "maxPrice": {
            "title": "Max price (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Only products priced at or below this amount. Applies to search terms and category URLs."
          },
          "includeSponsored": {
            "title": "Include sponsored products",
            "type": "boolean",
            "description": "Walmart mixes sponsored (ad) listings into results. They are included and flagged with isSponsored. Turn off to skip them.",
            "default": true
          },
          "deduplicate": {
            "title": "Remove duplicate products",
            "type": "boolean",
            "description": "Return each Walmart item only once per run, even if it appears in several searches or categories.",
            "default": true
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Main proxy. The default (Apify automatic proxy, datacenter IPs) is the cheapest. Pages that Walmart blocks are automatically retried through US residential IPs (see the next option), so you get residential reliability while paying for residential traffic only where it is needed. You can also pick Residential here to use it for every page.",
            "default": {
              "useApifyProxy": true
            }
          },
          "residentialFallback": {
            "title": "Retry blocked pages via US residential proxy",
            "type": "boolean",
            "description": "When a page is blocked on the main proxy, retry it through Apify US residential IPs. Strongly recommended: this is what keeps the success rate near 100% at the lowest cost.",
            "default": true
          },
          "fallbackAfterAttempts": {
            "title": "Switch to residential after N blocked attempts",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Number of attempts on the main proxy before a page switches to residential IPs. 0 means residential right away (fastest, more residential traffic). 3 is a good balance of speed and cost.",
            "default": 3
          },
          "maxConcurrency": {
            "title": "Max parallel requests",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Upper limit of pages loaded at the same time. The default works well. Higher values are faster but can trigger more blocks.",
            "default": 20
          },
          "maxRequestRetries": {
            "title": "Max retries per page",
            "minimum": 0,
            "maximum": 15,
            "type": "integer",
            "description": "How many times a blocked or failed page is retried with a fresh IP before giving up.",
            "default": 6
          },
          "includeFailedItems": {
            "title": "Add failed inputs to the dataset",
            "type": "boolean",
            "description": "Add a row with error: true and an errorMessage for every input or page that could not be scraped (invalid URL, removed product and so on). These rows are never charged. Failures are always listed in the RUN_SUMMARY record of the key-value store.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}