{
  "openapi": "3.0.1",
  "info": {
    "title": "Walmart Scraper - Cheapest In-Store Price & Stock Near You",
    "description": "Which Walmart stores near your ZIP code have the item in stock, and at what price? In or out at up to 29 nearby stores with distance and address, price, rollback and clearance type, aisle. One row per product per store. $2.50 per 1,000 products.",
    "version": "0.0",
    "x-build-id": "hrZ230mHyXvaEmdcw"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapebench~walmart-product-price-store-stock-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapebench-walmart-product-price-store-stock-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/scrapebench~walmart-product-price-store-stock-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrapebench-walmart-product-price-store-stock-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/scrapebench~walmart-product-price-store-stock-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrapebench-walmart-product-price-store-stock-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": {
          "itemIds": {
            "title": "Item numbers",
            "type": "array",
            "description": "Walmart items to check, one per line: the number at the end of a product link (https://www.walmart.com/ip/Great-Value-Milk/10450114 is 10450114), or the whole link. Each is checked at every ZIP code below.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "queries": {
            "title": "Search words",
            "type": "array",
            "description": "Words to search Walmart for, one per line (cordless drill, whole milk). Each returns up to Maximum results products.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "query": {
            "title": "Search words (single)",
            "type": "string",
            "description": "One search, for saved tasks and API calls that send a single value. Use Search words above for several."
          },
          "startUrls": {
            "title": "Walmart links",
            "type": "array",
            "description": "Product links (https://www.walmart.com/ip/.../10450114), category links (https://www.walmart.com/browse/.../1072864_1031899_1066925_3413875) and/or search links (https://www.walmart.com/search?q=drill), one per line.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "zipCodes": {
            "title": "ZIP codes",
            "type": "array",
            "description": "US ZIP codes, one per line. For each ZIP the run checks the nearest Walmart stores (as many as Stores per ZIP says) and returns one row per product per store: in stock first, then nearest. With no ZIP the run returns one row per product, for the store Walmart picks for the connection (named on the row).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "nearbyStores": {
            "title": "Stores per ZIP code",
            "minimum": 1,
            "maximum": 29,
            "type": "integer",
            "description": "How many of the nearest Walmart stores to check for each ZIP code, 1 to 29 (Walmart's store lookup returns about 29 within its radius).",
            "default": 1
          },
          "stores": {
            "title": "Store numbers",
            "type": "array",
            "description": "Only keep these Walmart store numbers (4383 is Dearborn, Michigan) from the stores near the ZIP codes. Needs a ZIP code near the store: Walmart's store lookup works by ZIP code.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "comparePrices": {
            "title": "Price at every store",
            "type": "boolean",
            "description": "Read the price and aisle at each store itself, not Walmart's pick for the connection, so the cheapest store near you can be found. Charged as Store price per product per store. Each store needs its own store session (about half a minute, three at a time), so a long list of stores takes minutes. A store that cannot be read keeps the price Walmart shows for the connection (price_scope NETWORK) with a free notice, and is not charged as a Store price. Off: no store session at all, a faster and cheaper run; each row carries the price Walmart shows for its own pick of store (named in extras.priced_at_store), stock is still per store, and nothing is charged as Store price.",
            "default": false
          },
          "inStoreOnly": {
            "title": "Only stores that have it",
            "type": "boolean",
            "description": "Return only the product-store pairs where Walmart shows the item in stock at the store. When no store has it, a free notice says how many stores were checked.",
            "default": false
          },
          "sortBy": {
            "title": "Sort searches by",
            "enum": [
              "relevance",
              "price_low"
            ],
            "type": "string",
            "description": "Order of search results: relevance (Walmart's own) or price_low (cheapest first). Category links keep Walmart's order.",
            "default": "relevance"
          },
          "includeDetails": {
            "title": "Product details",
            "type": "boolean",
            "description": "Also return the specification list, description, highlights and all images (the UPC is always on item number rows). Charged once per product (not per store) as Product details.",
            "default": false
          },
          "includeReviews": {
            "title": "Customer reviews",
            "type": "boolean",
            "description": "Also return each product's customer reviews, newest first (rating, title, text, author, date, verified purchaser, helpful votes). One row per review, charged as Review. Reviews are per product, not per store.",
            "default": false
          },
          "maxReviews": {
            "title": "Maximum reviews per product",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Newest reviews to return for each product when Customer reviews is on.",
            "default": 20
          },
          "maxResults": {
            "title": "Maximum results per search or category",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Cap for EACH search or category link. Item numbers and product links are not capped. Walmart shows at most 25 pages (about 1,000 products) per search.",
            "default": 100
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Leave as set: with Apify Proxy on and no group picked, the run uses the connection Walmart answers. Picking a group yourself overrides that.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}