{
  "openapi": "3.0.1",
  "info": {
    "title": "WooCommerce Product Scraper",
    "description": "Scrape public WooCommerce product catalogs for price, stock, rating and category monitoring in competitor or supplier research. Returns normalized product rows with price, availability, reviews and source provenance.",
    "version": "0.2",
    "x-build-id": "U0HPFVpAO7zr1ZuF0"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/khadinakbar~woocommerce-product-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-khadinakbar-woocommerce-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/khadinakbar~woocommerce-product-scraper/runs": {
      "post": {
        "operationId": "runs-sync-khadinakbar-woocommerce-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/khadinakbar~woocommerce-product-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-khadinakbar-woocommerce-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": {
          "storeUrls": {
            "title": "WooCommerce store URLs",
            "type": "array",
            "description": "Use this to list WooCommerce stores to read, such as 'https://porterandyork.com'. Add store homepages or a store installed in a subdirectory (up to 100). Leave empty if you paste product links below. Do not use order, customer, checkout or admin URLs.",
            "items": {
              "type": "string"
            }
          },
          "productUrls": {
            "title": "Product links",
            "type": "array",
            "description": "Use this to read specific products from their page links, such as 'https://porterandyork.com/product/example/'. The store is detected from each link. A store that is also in Store URLs is read as a whole catalog.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "maxProducts": {
            "title": "Maximum products per run",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Use this to set one hard product cap across all stores, such as 100. Whole number from 1 to 10,000, default 100. You pay per product returned, so this caps your event cost.",
            "default": 100
          },
          "maxProductsPerStore": {
            "title": "Maximum products per store",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Use this to cap rows from each store so one large store cannot use the whole run limit. Leave empty for no per-store cap. Whole number from 1 to 10,000."
          },
          "search": {
            "title": "Product search query",
            "maxLength": 200,
            "type": "string",
            "description": "Use this to ask the WooCommerce Store API for products matching a text phrase, such as 'organic coffee'. It accepts up to 200 characters and is empty by default, which returns the full catalog. Store search behavior is supplied by each target store and may not match its storefront search exactly. It is not a Google query or a product URL.",
            "default": ""
          },
          "categoryIds": {
            "title": "WooCommerce category IDs",
            "type": "array",
            "description": "Use this to limit output to store category IDs, such as [12, 27]. IDs are store-specific; you can use category names below instead.",
            "items": {
              "type": "integer",
              "minimum": 1
            },
            "default": []
          },
          "categories": {
            "title": "Category names or links",
            "type": "array",
            "description": "Use this to keep only products in named categories, such as 'Shoes' or a category page link. Names are matched to each store's own category list. Unknown names are reported in the run summary.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "tags": {
            "title": "Tag names",
            "type": "array",
            "description": "Use this to keep only products with these tags, such as 'summer'. Names are matched to each store's own tag list.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "brands": {
            "title": "Brand names",
            "type": "array",
            "description": "Use this to keep only products from these brands, such as 'Nike'. Works on stores that publish a brand list; otherwise brands are matched from product data after download, which is slower.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "skus": {
            "title": "SKUs",
            "type": "array",
            "description": "Use this to look up products by exact SKU, such as 'ESP-500'. Handy for matching your own catalog to a store.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "includeIds": {
            "title": "Only these product IDs",
            "type": "array",
            "description": "Use this to read only products with these store product IDs. IDs are store-specific numbers.",
            "items": {
              "type": "integer",
              "minimum": 1
            },
            "default": []
          },
          "excludeIds": {
            "title": "Skip these product IDs",
            "type": "array",
            "description": "Use this to leave out products with these store product IDs, so you do not pay for rows you already have.",
            "items": {
              "type": "integer",
              "minimum": 1
            },
            "default": []
          },
          "minPrice": {
            "title": "Minimum price",
            "minimum": 0,
            "type": "number",
            "description": "Use this to drop products priced below this amount, in the store's own currency, such as 10. Leave empty for no minimum."
          },
          "maxPrice": {
            "title": "Maximum price",
            "minimum": 0,
            "type": "number",
            "description": "Use this to drop products priced above this amount, in the store's own currency, such as 100. Leave empty for no maximum."
          },
          "stockStatuses": {
            "title": "Stock-status filter",
            "type": "array",
            "description": "Use this to return products in one or more public stock states, such as 'instock'. It accepts instock, outofstock, and onbackorder and defaults to an empty list, which applies no stock filter. Multiple values are sent to the official Store API as an array filter. It is not an exact inventory-count filter.",
            "items": {
              "type": "string",
              "enum": [
                "instock",
                "outofstock",
                "onbackorder"
              ]
            },
            "default": []
          },
          "onSale": {
            "title": "Only products on sale",
            "type": "boolean",
            "description": "Use this when you need only products that the public Store API marks as on sale. Set true to apply the filter; false is the default and leaves the catalog unfiltered by sale status. The value is sent directly to the Store API rather than inferred from price comparisons. It does not guarantee that a store's promotion has a regular-price field.",
            "default": false
          },
          "featured": {
            "title": "Only featured products",
            "type": "boolean",
            "description": "Use this when you need only catalog items that WooCommerce marks as featured. Set true to apply the filter; false is the default and leaves the catalog unfiltered by featured status. The flag is read from the public Store API and can differ from a theme's visual merchandising. It is not a filter for best-selling or newest products.",
            "default": false
          },
          "sortBy": {
            "title": "Sort products by",
            "enum": [
              "date",
              "price",
              "popularity",
              "rating"
            ],
            "type": "string",
            "description": "Use this to choose the Store API sorting field, for example price. It accepts date, price, popularity, or rating and defaults to date. Set sortOrder separately to choose ascending or descending results. It does not sort output after retrieval or bypass the maximum product cap.",
            "default": "date"
          },
          "sortOrder": {
            "title": "Sort direction",
            "enum": [
              "asc",
              "desc"
            ],
            "type": "string",
            "description": "Use this to choose ascending or descending order for the selected Store API sort field. It accepts asc or desc and defaults to desc. The setting applies to the target API before pagination begins. It is not a way to order multiple stores relative to each other.",
            "default": "desc"
          },
          "includeVariations": {
            "title": "Include variations",
            "type": "boolean",
            "description": "Use this to add each variable product's variations (price, stock, options) as a nested list. Slower for big catalogs. Off by default.",
            "default": false
          },
          "includeReviews": {
            "title": "Include latest reviews",
            "type": "boolean",
            "description": "Use this to add the newest customer reviews to each product that has reviews. Slower for big catalogs. Off by default.",
            "default": false
          },
          "maxReviewsPerProduct": {
            "title": "Reviews per product",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Use this to set how many latest reviews to add per product when Include latest reviews is on. Whole number from 1 to 20. Default 5.",
            "default": 5
          },
          "includeStoreInfo": {
            "title": "Save store info",
            "type": "boolean",
            "description": "Use this to save a STORE_INFO record with each store's currency, catalog size, price range, categories and brands. On by default.",
            "default": true
          },
          "trackChanges": {
            "title": "Track price and stock changes",
            "type": "boolean",
            "description": "Use this to compare each product with your previous run and mark it new, price_down, price_up, back_in_stock, out_of_stock or unchanged. Schedule the Actor to monitor competitors. Off by default.",
            "default": false
          },
          "onlyChanges": {
            "title": "Return only changed products",
            "type": "boolean",
            "description": "Use this with Track price and stock changes to return and pay only for products that are new or changed since the previous run. Needs tracking on.",
            "default": false
          },
          "trackerName": {
            "title": "Tracker name",
            "type": "string",
            "description": "Use this to keep separate change histories, such as 'my-competitors'. Letters, numbers and hyphens only. Default 'woocommerce-product-tracker'.",
            "default": "woocommerce-product-tracker"
          },
          "useSitemapFallback": {
            "title": "Try product pages if the store feed is off (beta)",
            "type": "boolean",
            "description": "Use this to let the Actor read product pages from the store's sitemap when the public product feed is switched off. Beta: returns fewer fields, ignores search and category filters, and is not verified on many stores. Off by default.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Apify Proxy configuration",
            "type": "object",
            "description": "Use this only if a public Store API blocks the default direct request path. Set useApifyProxy to true and optionally choose a proxy group or two-letter country code. It defaults to direct HTTP requests because the public WooCommerce Store API is usually accessible without a proxy. This setting never accepts third-party credentials, cookies, or authorization tokens.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}