{
  "openapi": "3.0.1",
  "info": {
    "title": "Walmart Product, Price and Review Data Scraper",
    "description": "Extract Walmart products from keyword searches, product URLs, or item IDs. Receive prices, availability, sellers, ratings, variants, specifications, images, and optional review records for retail research and monitoring.",
    "version": "1.0",
    "x-build-id": "3aQuVQf3MKaaDMZaj"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/khadinakbar~walmart-data-extractor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-khadinakbar-walmart-data-extractor",
        "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-data-extractor/runs": {
      "post": {
        "operationId": "runs-sync-khadinakbar-walmart-data-extractor",
        "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-data-extractor/run-sync": {
      "post": {
        "operationId": "run-sync-khadinakbar-walmart-data-extractor",
        "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",
              "category",
              "productUrls",
              "itemIds"
            ],
            "type": "string",
            "description": "What to scrape on Walmart.com. `search` = keyword search (product cards, up to about 1,000 per query); `category` = a Walmart category page link or category ID (product cards); `productUrls` = product page links (full product record each); `itemIds` = Walmart item numbers (full product record each). Turn on `fullDetails` to get the full record for search and category results too.",
            "default": "search"
          },
          "searchQuery": {
            "title": "Search query",
            "type": "string",
            "description": "Words to search for on Walmart (for example 'wireless headphones'). Used when mode is search. Free Apify plan runs return up to 25 results per run."
          },
          "categoryUrls": {
            "title": "Category links or IDs",
            "type": "array",
            "description": "Walmart category page links (for example https://www.walmart.com/browse/electronics/headphones/3944_133251_1095191) or just the category ID (3944_133251_1095191). Used when mode is category. Each category returns up to about 1,000 products.",
            "items": {
              "type": "string"
            }
          },
          "productUrls": {
            "title": "Product URLs",
            "type": "array",
            "description": "Walmart product page links (for example https://www.walmart.com/ip/JLab-Studio-2-Wireless-Headphones/13544111159). Used when mode is productUrls. Every link returns one full product record; all listed links are fetched.",
            "items": {
              "type": "string"
            }
          },
          "itemIds": {
            "title": "Walmart item IDs",
            "type": "array",
            "description": "Walmart item numbers (for example 13544111159). Used when mode is itemIds. Every ID returns one full product record (prices, seller, shipping, returns, variants, specifications, images); all listed IDs are fetched.",
            "items": {
              "type": "string"
            }
          },
          "maxProducts": {
            "title": "Maximum products",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "Most products to return for search and category runs. Each product is one paid result. Listed product URLs and item IDs are always all fetched. Free Apify plan runs return up to 25 results per run.",
            "default": 50
          },
          "fullDetails": {
            "title": "Full product details for every result",
            "type": "boolean",
            "description": "Search and category pages show card data (title, price, rating, stock, seller). Turn this on to open every product page too and add specifications, variants, images, barcode, shipping and return facts. Same price per product, but slower and uses more of your Apify platform usage.",
            "default": false
          },
          "includeReviews": {
            "title": "Include customer reviews",
            "type": "boolean",
            "description": "When true, each product also returns its customer reviews as separate rows (marked _type: review), charged per review. Off by default.",
            "default": false
          },
          "maxReviewsPerProduct": {
            "title": "Max reviews per product",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Most reviews to return per product when includeReviews is on. Default 20, up to 500. Free Apify plan runs return up to 25 results per run.",
            "default": 20
          },
          "sortReviews": {
            "title": "Review order",
            "enum": [
              "mostRelevant",
              "mostRecent",
              "mostHelpful",
              "highestRating",
              "lowestRating"
            ],
            "type": "string",
            "description": "Which reviews come first when includeReviews is on.",
            "default": "mostRelevant"
          },
          "reviewRating": {
            "title": "Only reviews with this star rating",
            "enum": [
              "all",
              "1",
              "2",
              "3",
              "4",
              "5"
            ],
            "type": "string",
            "description": "Keep only reviews with exactly this many stars. Walmart applies the filter itself.",
            "default": "all"
          },
          "includeVariants": {
            "title": "Include variants",
            "type": "boolean",
            "description": "Include the `variants` array on product detail records (size/color/configuration options). Default true. Disable to shrink record size when variants aren't needed.",
            "default": true
          },
          "includeSpecifications": {
            "title": "Include specifications",
            "type": "boolean",
            "description": "Include the `specifications` object on product detail records (manufacturer-supplied spec sheet). Default true. Disable to shrink record size when specs aren't needed.",
            "default": true
          },
          "minPrice": {
            "title": "Minimum price (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Filter out products whose current price is below this value. Applied client-side; products without a parsed price are NOT filtered out. Omit for no lower bound."
          },
          "maxPrice": {
            "title": "Maximum price (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Filter out products whose current price is above this value. Applied client-side; products without a parsed price are NOT filtered out. Omit for no upper bound."
          },
          "brands": {
            "title": "Brand filter",
            "type": "array",
            "description": "Optional. Keep only products whose brand contains one of these words (not case sensitive). Products with no brand shown are dropped when this is set.",
            "items": {
              "type": "string"
            }
          },
          "minRating": {
            "title": "Minimum rating",
            "pattern": "^[0-5](\\.\\d)?$",
            "type": "string",
            "description": "Filter out products with an average rating below this value (1.0–5.0). Products without ratings are NOT filtered. Omit to disable rating filtering."
          },
          "sortBy": {
            "title": "Sort order",
            "enum": [
              "bestMatch",
              "priceLow",
              "priceHigh",
              "rating",
              "newest",
              "bestSelling"
            ],
            "type": "string",
            "description": "Order of search and category results. Ignored for product URLs and item IDs.",
            "default": "bestMatch"
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Apify proxy configuration. Defaults to Apify Residential proxies pinned to US — required because Walmart geo-locks pricing/availability and runs Akamai + PerimeterX. Override only if you have a specific reason (e.g., 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}