{
  "openapi": "3.0.1",
  "info": {
    "title": "Walmart Scraper - Products, Prices, Sellers & Search Rank",
    "description": "Scrape Walmart products, prices, was-prices, UPC/GTIN, stock, Buy Box seller (3P vs Walmart, WFS), delivery dates, ratings, reviews and variants from search, category, product URLs or item IDs. Organic & sponsored rank for share of shelf, plus a built-in price/stock change monitor.",
    "version": "0.3",
    "x-build-id": "7MDgupHO8aWBTWVs0"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/pricepulse-data~walmart-product-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-pricepulse-data-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/pricepulse-data~walmart-product-scraper/runs": {
      "post": {
        "operationId": "runs-sync-pricepulse-data-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/pricepulse-data~walmart-product-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-pricepulse-data-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": {
          "searchKeywords": {
            "title": "Search keywords",
            "type": "array",
            "description": "Keywords to search on walmart.com, e.g. 'air fryer'. Each keyword is one search. Every result gets its organic rank, sponsored rank and page, so you can track share of shelf.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Walmart URLs",
            "type": "array",
            "description": "Any mix of walmart.com product (/ip/...), search (/search?q=...), category (/browse/...) or department (/cp/...) URLs. Filters and sorting in the URL are kept.",
            "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": "Walmart item IDs (the number at the end of a /ip/ URL, e.g. 5159953210). Handy for monitoring a fixed list of products.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max results",
            "minimum": 1,
            "type": "integer",
            "description": "Stop after this many products in total. You are charged per result, so this also caps your cost.",
            "default": 100
          },
          "maxItemsPerStartUrl": {
            "title": "Max results per URL / keyword",
            "minimum": 0,
            "type": "integer",
            "description": "Cap for each search, category or keyword, e.g. 48 = page one of each keyword. 0 = no cap.",
            "default": 0
          },
          "scrapeProductDetails": {
            "title": "Open every product page (full details)",
            "type": "boolean",
            "description": "On: full record (UPC/GTIN, brand, Buy Box seller, 3P vs Walmart, WFS, offer count, shipping/pickup/delivery date, return policy, rating breakdown, variants, specs). Off: search/category results only (name, price, was-price, rating, seller, badges, sponsored flag, rank), about 3x cheaper and much faster.",
            "default": true
          },
          "sort": {
            "title": "Sort search results by",
            "enum": [
              "best_match",
              "best_seller",
              "price_low",
              "price_high",
              "rating_high",
              "new"
            ],
            "type": "string",
            "description": "Only for keyword searches and search/category URLs without their own sort.",
            "default": "best_match"
          },
          "includeVariants": {
            "title": "Include variants",
            "type": "boolean",
            "description": "List every size/color/pack variant with its own price, stock and item ID. No extra requests or charges.",
            "default": true
          },
          "includeDescription": {
            "title": "Include description & specs",
            "type": "boolean",
            "description": "Include the product description, highlights and specifications table.",
            "default": true
          },
          "maxReviews": {
            "title": "Reviews per product",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "0 = no review text (rating, review count and the 1-5 star breakdown are always included). Each review is charged as a separate 'review' event.",
            "default": 0
          },
          "monitorMode": {
            "title": "Track changes since last run",
            "type": "boolean",
            "description": "Remembers every product's price, was-price, stock, Buy Box seller and rank in a named key-value store in your account and adds changeType (NEW / CHANGED / UNCHANGED), changes, previousPrice, priceChangePct and rankChange to each result. Schedule the same input daily to get a price and stock monitor.",
            "default": false
          },
          "monitorName": {
            "title": "Monitor name",
            "type": "string",
            "description": "Use a different name for each product list you track. State is kept in the key-value store 'walmart-monitor-<name>'.",
            "default": "default"
          },
          "outputOnlyChanges": {
            "title": "Only save new and changed products",
            "type": "boolean",
            "description": "With monitoring on, unchanged products are checked (and charged) but not written to the dataset, so your webhook or integration only sees what changed.",
            "default": false
          },
          "priceChangeThresholdPct": {
            "title": "Ignore price moves smaller than (%)",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "0 = report every cent of change.",
            "default": 0
          },
          "maxPagesPerListing": {
            "title": "Max pages per search/category",
            "minimum": 1,
            "maximum": 25,
            "type": "integer",
            "description": "Walmart shows up to 25 pages (about 40 products each) per search or category.",
            "default": 25
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Pages fetched in parallel.",
            "default": 6
          },
          "maxRetries": {
            "title": "Max retries per page",
            "minimum": 1,
            "maximum": 15,
            "type": "integer",
            "description": "Blocked or failed pages are retried with a fresh browser fingerprint, cookies and IP.",
            "default": 6
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Leave the default (US residential). Proxy traffic is included in the price. If you change this, your setting is used for every page.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}