{
  "openapi": "3.0.1",
  "info": {
    "title": "WooCommerce Scraper: Products, Prices, Stock, USD 0.60/1K",
    "description": "Scrape any WooCommerce shop, category or product URL through its public Store API: products, variations, prices, sale prices, stock, categories and images. Track price drops, stock and new or removed products, with alerts. USD 0.60 per 1,000.",
    "version": "0.1",
    "x-build-id": "fq9goRRQ55GsvNcHf"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/usefulapi~woocommerce-products/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-usefulapi-woocommerce-products",
        "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/usefulapi~woocommerce-products/runs": {
      "post": {
        "operationId": "runs-sync-usefulapi-woocommerce-products",
        "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/usefulapi~woocommerce-products/run-sync": {
      "post": {
        "operationId": "run-sync-usefulapi-woocommerce-products",
        "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",
        "required": [
          "startUrls"
        ],
        "properties": {
          "startUrls": {
            "title": "Shop, category or product URLs",
            "type": "array",
            "description": "Any WooCommerce shop address (offermanwoodshop.com), a category page (.../product-category/bottles/), a tag page (.../product-tag/sale/) or a product page (.../product/slug/). One per line, as many as you like. Shops that are not WooCommerce, or that block bots, get a status saying why; the run carries on.",
            "default": [
              "https://offermanwoodshop.com",
              "https://nalgene.com/product-category/bottles/"
            ],
            "items": {
              "type": "string"
            }
          },
          "maxProductsPerShop": {
            "title": "Max products per URL",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "Stop each URL after this many products are saved (in variation mode all variations of those products are saved). 0 = all products. Through the API, leaving this out means 25.",
            "default": 25
          },
          "outputMode": {
            "title": "One row per",
            "enum": [
              "products",
              "variations"
            ],
            "type": "string",
            "description": "Product: one row per product, with its variations inside. Variation: one row per size, colour or other option, best for price and stock sheets.",
            "default": "products"
          },
          "includeVariations": {
            "title": "Variations (own price, stock, SKU)",
            "type": "boolean",
            "description": "Reads every variation of variable products: its own price, sale price, stock, SKU, image and options (for example Size: L, Colour: Blue). One extra request per 100 variations, billed as a catalog page.",
            "default": true
          },
          "descriptionFormat": {
            "title": "Description",
            "enum": [
              "text",
              "html",
              "both",
              "none"
            ],
            "type": "string",
            "description": "How the description and short description are saved: plain text (default), the shop's HTML, both, or left out to keep rows small.",
            "default": "text"
          },
          "categories": {
            "title": "Categories",
            "type": "array",
            "description": "Category slugs, ids or category page URLs; products in any of them. Applied by the shop's Store API, so only matching pages are read.",
            "items": {
              "type": "string"
            }
          },
          "tags": {
            "title": "Tags",
            "type": "array",
            "description": "Tag slugs or ids; products with any of them.",
            "items": {
              "type": "string"
            }
          },
          "search": {
            "title": "Search",
            "type": "string",
            "description": "Words, searched the way the shop's own search box does."
          },
          "onlyInStock": {
            "title": "Only in stock",
            "type": "boolean",
            "description": "Keep products that are in stock (variation rows: only variations in stock).",
            "default": false
          },
          "onSaleOnly": {
            "title": "Only on sale",
            "type": "boolean",
            "description": "Keep products the shop marks as on sale.",
            "default": false
          },
          "minPrice": {
            "title": "Minimum price",
            "minimum": 0,
            "type": "integer",
            "description": "In the shop's currency, whole units."
          },
          "maxPrice": {
            "title": "Maximum price",
            "minimum": 0,
            "type": "integer",
            "description": "In the shop's currency, whole units."
          },
          "trackChanges": {
            "title": "Track changes since the last run",
            "type": "boolean",
            "description": "Each row gets changeType: new, price-drop, price-increase, back-in-stock, sold-out, stock-changed, variations-changed, content-changed or unchanged; products gone since the last run come as removed. Rows also carry the day the product was first seen and its last 5 earlier prices. The snapshot is kept in a key-value store on your account. Up to 25,000 products per URL.",
            "default": false
          },
          "changesOnly": {
            "title": "Only changed products",
            "type": "boolean",
            "description": "Save only rows that changed since the last run. The first run saves the starting point and outputs nothing.",
            "default": false
          },
          "monitorName": {
            "title": "Monitor name",
            "type": "string",
            "description": "Optional. Keeps separate histories for different monitors of the same shop (letters, digits, dashes)."
          },
          "notifyUrl": {
            "title": "Send changes to (Slack, Discord, Zapier, Make)",
            "type": "string",
            "description": "Optional. A Slack or Discord webhook link, or a Zapier or Make webhook (which can send you an email). At the end of each run you get a short message: per shop, the number of price drops, new, back-in-stock, sold-out and removed products, with up to 10 examples and their links. With Track changes on, a message is sent only when something changed. Free: not billed."
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Not needed for most shops. Datacenter proxy only; residential proxy is not supported. Shops that block bots are reported as blocked: the Actor never tries to get around a firewall or robots.txt.",
            "default": {
              "useApifyProxy": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}