{
  "openapi": "3.0.1",
  "info": {
    "title": "Walmart Price Checker & Product Scraper",
    "description": "Check Walmart prices, stock, fulfillment, seller and ratings by item ID, link or keyword on Walmart US, Canada, Mexico, Costa Rica and Bodega Aurrera, per store or ZIP. USD 2.50 per 1,000 rows.",
    "version": "1.0",
    "x-build-id": "BtWckazJew0Whddrf"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/muhammadafzal~walmart-price-checker-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-muhammadafzal-walmart-price-checker-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/muhammadafzal~walmart-price-checker-scraper/runs": {
      "post": {
        "operationId": "runs-sync-muhammadafzal-walmart-price-checker-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/muhammadafzal~walmart-price-checker-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-muhammadafzal-walmart-price-checker-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": {
          "site": {
            "title": "Walmart site or banner",
            "enum": [
              "walmart.com",
              "walmart.ca",
              "walmart.com.mx",
              "walmart.co.cr",
              "bodegaaurrera.com.mx"
            ],
            "type": "string",
            "description": "Use this to choose the storefront that item IDs and keywords run on. Prices come in that site's currency (USD, CAD, MXN, CRC). Bodega Aurrera is Walmart's discount banner in Mexico. Keyword search works on walmart.com, walmart.ca and walmart.co.cr. walmart.com.mx and Bodega Aurrera take item IDs and product links only. Product links always run on their own site.",
            "default": "walmart.com"
          },
          "productIds": {
            "title": "Walmart item IDs",
            "type": "array",
            "description": "Use this when you have Walmart item IDs: the last part of a product link, for example 985675140 from walmart.com/ip/…/985675140. Formats per site: walmart.com 5 to 13 digits; walmart.ca 6 to 16 letters and digits (3NTDRV0WGFIE); walmart.com.mx and Bodega Aurrera 8 to 16 digits (00750105536750). walmart.co.cr has no item IDs, so use product links there. Up to 500 per run, together with product links. Entries in the wrong format are skipped before any request and never charged.",
            "items": {
              "type": "string"
            }
          },
          "productUrls": {
            "title": "Product links",
            "type": "array",
            "description": "Use this when you have product page links instead of item IDs, for example https://www.walmart.com/ip/BLACK-DECKER-Programmable-12-Cup-Drip-Coffee-Maker/985675140 or https://www.walmart.co.cr/black-decker-cafetera-perm-calf-12-tz/p. Each link runs on its own site, so links from several Walmart countries can share a run. Search, category and store links are skipped before any request.",
            "items": {
              "type": "string"
            }
          },
          "searchQueries": {
            "title": "Search keywords",
            "type": "array",
            "description": "Use this to read Walmart search results: keywords as a shopper types them, for example coffee maker. Works on walmart.com, walmart.ca and walmart.co.cr. Up to 50 per run. A product found under several keywords is returned once.",
            "items": {
              "type": "string"
            }
          },
          "storeId": {
            "title": "Store number",
            "maxLength": 6,
            "type": "string",
            "description": "Use this when prices, stock and pickup must match one store: the Walmart or Bodega Aurrera store number, for example 1011. Required when fulfillment is pickup. Left empty, Walmart picks a default store for each page, which can differ between rows; every row names the store it was priced for."
          },
          "deliveryZip": {
            "title": "Delivery ZIP or postal code",
            "maxLength": 7,
            "type": "string",
            "description": "Use this when prices and delivery dates must match a shopper location: a 5-digit ZIP code on walmart.com (10001), a postal code on walmart.ca (M5V 2T6) or a 5-digit código postal in Mexico (06600). Walmart serves it from the nearest store, and each row names that store."
          },
          "fulfillment": {
            "title": "Fulfillment method",
            "enum": [
              "shipping",
              "delivery",
              "pickup"
            ],
            "type": "string",
            "description": "Use this to read prices and availability for one way of buying: shipping, delivery (from a store; needs a store number or ZIP code) or pickup (needs a store number). Bodega Aurrera offers delivery and pickup. Left empty, the page's default is used."
          },
          "maxResults": {
            "title": "Maximum rows",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Use this to cap the run: it stops after this many dataset rows (products and search results together), from 1 to 1,000. You pay only for rows delivered.",
            "default": 20
          },
          "maxPagesPerQuery": {
            "title": "Search pages per keyword",
            "minimum": 1,
            "maximum": 25,
            "type": "integer",
            "description": "Use this to set how many search result pages to read for each keyword, from 1 to 25. A walmart.com or walmart.ca page lists about 40 to 60 products, a walmart.co.cr page about 10. Reading stops early at the last page or at Maximum rows.",
            "default": 3
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}