{
  "openapi": "3.0.1",
  "info": {
    "title": "E-commerce Product Scraper - Price, Stock & Variants Any Store",
    "description": "E-commerce product scraper for any online store: product or category URLs in, one row per product with price, list price, discount, stock, SKU, GTIN, brand, rating, images and variants. Shopify, WooCommerce, Magento + schema.org sites. Price tracking. $0.50 / 1,000.",
    "version": "1.0",
    "x-build-id": "DA8N5q3hsF9zn1KUB"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/rel8ble~ecommerce-product-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-rel8ble-ecommerce-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/rel8ble~ecommerce-product-scraper/runs": {
      "post": {
        "operationId": "runs-sync-rel8ble-ecommerce-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/rel8ble~ecommerce-product-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-rel8ble-ecommerce-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": {
          "productUrls": {
            "title": "Product page URLs",
            "type": "array",
            "description": "Product pages from any store, one per line (https://store.com/products/blue-mug). Mix stores freely; bulk lists of 100,000 URLs are fine. Works on Shopify, WooCommerce, Magento, BigCommerce, PrestaShop, Shopware, Wix, Squarespace and any site with schema.org Product markup or product meta tags.",
            "items": {
              "type": "string"
            }
          },
          "listingUrls": {
            "title": "Category / collection / search page URLs",
            "type": "array",
            "description": "Optional. Category, collection, brand, search or sale pages. The actor reads the product links on each page (and the next pages, see below) and scrapes every product. Use this to watch a whole category without listing product URLs.",
            "items": {
              "type": "string"
            }
          },
          "maxProductsPerListing": {
            "title": "Max products per listing URL",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "How many products to scrape from each category / search URL (across its pages).",
            "default": 50
          },
          "maxListingPages": {
            "title": "Max pages per listing URL",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Follow the listing's next-page link (rel=next, ?page=2 ...) up to this many pages.",
            "default": 3
          },
          "maxResults": {
            "title": "Max products in total",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after this many products are saved. 0 = no limit. You pay only for saved products.",
            "default": 500
          },
          "includeVariants": {
            "title": "Include variants",
            "type": "boolean",
            "description": "Add a variants array (size / colour options with their own SKU, GTIN, price, compare-at price and stock). On Shopify stores the actor also reads the store's product JSON for every variant's stock.",
            "default": true
          },
          "fetchShopifyJson": {
            "title": "Read Shopify product JSON",
            "type": "boolean",
            "description": "On Shopify stores, fetch /products/<handle>.js (one extra request per product, not charged) for full variant prices, compare-at prices, stock, tags and product type.",
            "default": true
          },
          "includeDescription": {
            "title": "Include description",
            "type": "boolean",
            "description": "Add the product description as plain text. Turn off for smaller rows in price-monitoring runs.",
            "default": true
          },
          "changeTrackingStore": {
            "title": "Price-tracking store name",
            "type": "string",
            "description": "Optional. A named key-value store (letters, digits, -) that remembers each product's price and stock between runs. Rows then get changeStatus (new / changed / unchanged), previousPrice, priceChange, priceChangePercent and previousAvailability. Use the same name on every scheduled run."
          },
          "onlyChangedProducts": {
            "title": "Save only new or changed products",
            "type": "boolean",
            "description": "With a price-tracking store: skip products whose price, list price, stock and variants did not change since the last run (skipped products are not charged).",
            "default": false
          },
          "includeUrlPatterns": {
            "title": "Only product URLs containing",
            "type": "array",
            "description": "Optional. Keep only product links that contain one of these texts or match a * pattern, e.g. \"/products/\".",
            "items": {
              "type": "string"
            }
          },
          "excludeUrlPatterns": {
            "title": "Skip product URLs containing",
            "type": "array",
            "description": "Optional. Skip product links containing one of these texts or matching a * pattern, e.g. \"gift-card\".",
            "items": {
              "type": "string"
            }
          },
          "respectRobotsTxt": {
            "title": "Respect robots.txt",
            "type": "boolean",
            "description": "Skip URLs the store's robots.txt disallows (reported in RUN_SUMMARY, not charged).",
            "default": true
          },
          "maxConcurrency": {
            "title": "Max parallel requests",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Parallel page downloads. Lower it for small stores that rate-limit.",
            "default": 10
          },
          "maxRequestRetries": {
            "title": "Retries per URL",
            "minimum": 0,
            "maximum": 6,
            "type": "integer",
            "description": "Retries (with a fresh session) for timeouts, 403 / 429 and 5xx answers.",
            "default": 2
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Not needed for most stores. Turn on Apify datacenter proxy for stores that rate-limit cloud IPs, or paste your own proxy URLs. Apify residential proxy is not available in this actor.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}