{
  "openapi": "3.0.1",
  "info": {
    "title": "Universal Product Page Extractor: Price, Variants, GTIN, Stock",
    "description": "Turn any store product URL, category page or sitemap into clean product JSON: price, currency, sale price, stock, every variant with its own price and stock, SKU, GTIN, brand, rating, seller. Shopify, WooCommerce, BigCommerce, Magento and any JSON-LD store. Price monitor mode.",
    "version": "1.0",
    "x-build-id": "lKa9wQ8LeMkzwNrmS"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/zhtech~universal-product-extractor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-zhtech-universal-product-extractor",
        "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/zhtech~universal-product-extractor/runs": {
      "post": {
        "operationId": "runs-sync-zhtech-universal-product-extractor",
        "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/zhtech~universal-product-extractor/run-sync": {
      "post": {
        "operationId": "run-sync-zhtech-universal-product-extractor",
        "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": {
          "startUrls": {
            "title": "Product, category or sitemap URLs",
            "type": "array",
            "description": "Any mix of product page URLs, category or collection page URLs (product links are followed) and XML sitemaps (sitemap.xml, sitemap indexes, .xml.gz). The type of each URL is detected automatically. Amazon, eBay, Walmart, AliExpress, Etsy and Temu are refused with a free row. Leave empty to run a built in WooCommerce example.",
            "items": {
              "type": "string"
            }
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after this many products (in monitor mode: products checked). Skipped rows (robots, bot protection, not found) do not count. 0 means no limit.",
            "default": 100
          },
          "maxProductsPerListing": {
            "title": "Max products per category page or sitemap",
            "minimum": 1,
            "type": "integer",
            "description": "How many product links are taken from each category URL (across its pages) or each sitemap.",
            "default": 20
          },
          "maxListingPages": {
            "title": "Max pages per category",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "How many pages of a category are followed through its \"next page\" link.",
            "default": 3
          },
          "followListings": {
            "title": "Follow category pages",
            "type": "boolean",
            "description": "When a URL is a category, collection or search result page, extract the products it links to. Turn off to treat every URL as a single product page.",
            "default": true
          },
          "sitemapUrlFilter": {
            "title": "Sitemap URL filter (regular expression)",
            "type": "string",
            "description": "Optional. Only sitemap URLs matching this pattern are extracted, for example /products/ or /p/. Without it, URLs that look like product pages are kept (or all URLs when none look like products)."
          },
          "variantMode": {
            "title": "Variants output",
            "enum": [
              "nested",
              "rows"
            ],
            "type": "string",
            "description": "Nested: one row per product with a variants array (each variant has its own price, sale price, stock, SKU and GTIN). Separate rows: one row per variant with the product fields repeated, easiest for spreadsheets. You pay per product either way.",
            "default": "nested"
          },
          "includeDescription": {
            "title": "Include description",
            "type": "boolean",
            "description": "Adds the product description as clean plain text.",
            "default": true
          },
          "descriptionMaxChars": {
            "title": "Description max length",
            "minimum": 0,
            "type": "integer",
            "description": "Longer descriptions are cut to this many characters.",
            "default": 2000
          },
          "monitorMode": {
            "title": "Monitor mode (price and stock changes)",
            "type": "boolean",
            "description": "Remembers each product's price and stock between runs (in the named key-value store \"product-extractor-monitor\") and outputs only products that are new or changed, with a list of what changed. Unchanged checks are billed at the much cheaper price-check-unchanged rate. Schedule the same input daily or hourly.",
            "default": false
          },
          "monitorWatchlist": {
            "title": "Watchlist name",
            "type": "string",
            "description": "Keeps separate memory for separate monitors. Use a different name per watchlist (for example competitor-a, competitor-b).",
            "default": "default"
          },
          "emitUnchanged": {
            "title": "Also output unchanged products",
            "type": "boolean",
            "description": "Adds a short \"unchanged\" row for every product whose price and stock did not change.",
            "default": false
          },
          "usePlatformJson": {
            "title": "Use platform JSON endpoints",
            "type": "boolean",
            "description": "Reads the store platform's own public product JSON first (Shopify /products/<handle>.js, WooCommerce Store API) for exact variant prices and stock. Each endpoint is checked against robots.txt. Turn off to use only the data in the page itself (one request per product).",
            "default": true
          },
          "browserFallback": {
            "title": "Browser fallback for JavaScript pages",
            "type": "boolean",
            "description": "When a page loads fine but has no product data in its HTML (data injected by JavaScript), render it in a headless browser and try again. Billed as product-rendered. Needs at least 2048 MB memory. Never used to get past bot protection.",
            "default": false
          },
          "maxConcurrency": {
            "title": "Pages in parallel",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many pages are processed at the same time across all domains. Requests to one domain are always spaced by the delay below.",
            "default": 4
          },
          "requestDelayMs": {
            "title": "Delay between requests to one domain (ms)",
            "minimum": 1000,
            "maximum": 15000,
            "type": "integer",
            "description": "Polite pause between two requests to the same domain. A robots.txt crawl-delay raises it automatically, and a 429 answer doubles it for that domain.",
            "default": 1500
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Not needed for most stores. Off by default. A proxy is never used to get past bot protection: pages that show a challenge are skipped either way.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}