{
  "openapi": "3.0.1",
  "info": {
    "title": "Magento Products Scraper - Prices, Stock, SKUs, Variants",
    "description": "Magento products scraper and API (Magento 2 / Adobe Commerce): paste store, category or product URLs, filter by keyword, SKU, price, sale or stock. One row per product: name, SKU, final and regular price, discount, stock, options, variants, images. No login. Daily price monitoring. $0.80 per 1,000.",
    "version": "1.0",
    "x-build-id": "NNBu3dnfOi9G8YCAv"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/rel8ble~magento-store-products-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-rel8ble-magento-store-products-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~magento-store-products-scraper/runs": {
      "post": {
        "operationId": "runs-sync-rel8ble-magento-store-products-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~magento-store-products-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-rel8ble-magento-store-products-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": "Magento stores, categories or products",
            "type": "array",
            "description": "Required (empty = demo store www.vitamix.com). One per line, any mix of: a store domain or homepage (\"www.lampsplus.com\") = every product; a category page URL (\"https://www.vitamix.com/shop/blenders\") = that category; a product page URL = that product. Works for Magento 2 / Adobe Commerce stores with the storefront GraphQL API at /graphql (on by default since Magento 2.3). Paste hundreds of stores for bulk runs. Sites that are not Magento 2, block bots, or bar /graphql in robots.txt are listed as failed in the run summary and never charged.",
            "items": {
              "type": "string"
            }
          },
          "searchKeywords": {
            "title": "Search keywords",
            "type": "array",
            "description": "Optional. One store search per keyword in every store (Magento's own catalog search, sorted by relevance), e.g. \"blender\", \"pendant light\". Bulk: up to 100 keywords x many stores; a product found twice is saved once. Empty = all products.",
            "items": {
              "type": "string"
            }
          },
          "skus": {
            "title": "SKUs",
            "type": "array",
            "description": "Optional. Exact SKUs to look up in every store (price / stock check for a known product list), e.g. \"067991\". Up to 500. Combined with keywords, both are run.",
            "items": {
              "type": "string"
            }
          },
          "storeCode": {
            "title": "Store view code",
            "type": "string",
            "description": "Optional, advanced. Magento store view code sent as the Store header, for multi-language or multi-currency stores, e.g. \"default\", \"en_us\", \"de\". Empty = the store's default view."
          },
          "onSaleOnly": {
            "title": "On sale only",
            "type": "boolean",
            "description": "Optional. true = only products whose final price is below the regular price. Default false. Filtered rows are not charged.",
            "default": false
          },
          "inStockOnly": {
            "title": "In stock only",
            "type": "boolean",
            "description": "Optional. true = only products with stock status IN_STOCK. Default false.",
            "default": false
          },
          "minPrice": {
            "title": "Min price",
            "type": "string",
            "description": "Optional. Lowest price in the store currency, e.g. \"10\" or \"49.99\" (sent to the store's own price filter). Empty = no limit."
          },
          "maxPrice": {
            "title": "Max price",
            "type": "string",
            "description": "Optional. Highest price in the store currency, e.g. \"100\". Empty = no limit."
          },
          "nameKeywords": {
            "title": "Name must contain",
            "type": "array",
            "description": "Optional. Keep only products whose name contains at least one of these words (case- and accent-insensitive). Not charged when filtered.",
            "items": {
              "type": "string"
            }
          },
          "excludeKeywords": {
            "title": "Name must not contain",
            "type": "array",
            "description": "Optional. Drop products whose name contains any of these words, e.g. \"refurbished\", \"gift card\".",
            "items": {
              "type": "string"
            }
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "relevance",
              "price",
              "name",
              "position"
            ],
            "type": "string",
            "description": "Optional. relevance (default: search relevance for keywords, store order otherwise), price, name or position (category position). Matters when Max products per store cuts the list.",
            "default": "relevance"
          },
          "sortOrder": {
            "title": "Sort order",
            "enum": [
              "desc",
              "asc"
            ],
            "type": "string",
            "description": "Optional. desc (default) or asc; for price, asc = cheapest first.",
            "default": "desc"
          },
          "maxProductsPerStore": {
            "title": "Max products per store",
            "minimum": 0,
            "type": "integer",
            "description": "Optional. Products to save per store, counted after filters. Default 100; 0 = every product. Typical cost: 1,000 products = $0.80.",
            "default": 100
          },
          "includeVariants": {
            "title": "Include variants",
            "type": "boolean",
            "description": "Optional. true = for configurable products (sizes / colours) add a variants array with each child's SKU, attributes, price and stock. No extra requests; still one charged result per product. Default false (configurable options and variant count are always included).",
            "default": false
          },
          "includeDescription": {
            "title": "Include full description",
            "type": "boolean",
            "description": "Optional. false (default) = short description only, fast. true = also the full description as plain text; on some stores this makes each page several seconds slower because Magento renders the description HTML.",
            "default": false
          },
          "maxConcurrency": {
            "title": "Stores in parallel",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Optional, advanced. Stores read at the same time, 1-20. Default 5. Pages of one store are read one after another; robots.txt Crawl-delay is honoured (up to 10 s).",
            "default": 5
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Optional. Default: direct connection, with an automatic retry through Apify Proxy when a store times out or refuses. Set a proxy group only if many stores fail with access denied.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}