{
  "openapi": "3.0.1",
  "info": {
    "title": "Shopify Store & Product Search Scraper",
    "description": "[ 1k / 1$ ] Shopify store product scraper: search products inside any Shopify store by keyword and extract title, vendor, type, tags, prices, availability, variants and images, with price, stock, vendor and type filters and optional SKUs, barcodes, stock and reviews.",
    "version": "0.1",
    "x-build-id": "Pldczi9yfhoWYILPM"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/alpha-scraper~shopify-store-product-search-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-alpha-scraper-shopify-store-product-search-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/alpha-scraper~shopify-store-product-search-scraper/runs": {
      "post": {
        "operationId": "runs-sync-alpha-scraper-shopify-store-product-search-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/alpha-scraper~shopify-store-product-search-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-alpha-scraper-shopify-store-product-search-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": {
          "queries": {
            "title": "Search Keywords",
            "type": "array",
            "description": "One or more words or phrases to look for inside the stores below (for example 'wool' or 'running shoes'). Every keyword is searched on its own and gets its own 'Max Items Per Keyword'. A product matches when ALL words occur in its title, vendor, product type, tags, handle or description; title matches rank first. Through the API, one empty keyword ('') lists the stores' catalogs without any keyword (in 'Auto' or 'Catalog scan only' mode).",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max Items Per Keyword",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of products per keyword, counted across ALL listed stores in the order you list them (when the first store already fills the limit, later stores are not visited). The Actor keeps paging through each store's catalog until the limit is reached or the catalog ends.",
            "default": 15
          },
          "stores": {
            "title": "Shopify Store Domains",
            "type": "array",
            "description": "The Shopify stores to search, one per line: a plain domain such as 'allbirds.com' or a full store URL ('https://' is added when missing, a trailing slash is removed). Use the domain only, without a collection or product path. A store's myshopify.com address works too. If you leave the list empty the Actor searches allbirds.com. Stores that disable /products.json, sit behind a password page or a bot wall return little or nothing and are reported in the run log; nothing is bypassed.",
            "items": {
              "type": "string"
            },
            "default": [
              "allbirds.com"
            ]
          },
          "searchMode": {
            "title": "Search Mode",
            "enum": [
              "auto",
              "predictive",
              "catalog"
            ],
            "type": "string",
            "description": "'Auto' first asks the store's predictive search (Shopify's ranked top results, at most 10 per store) and then scans the full catalog, removing duplicates. 'Predictive search only' is the fastest but never returns more than 10 products per store. 'Catalog scan only' pages through /products.json (250 products per request) and matches your words locally, so it can return every match.",
            "default": "auto"
          },
          "inStockOnly": {
            "title": "In Stock Only",
            "type": "boolean",
            "description": "Skip products that Shopify reports as sold out. Products whose availability the store does not state are kept.",
            "default": false
          },
          "minPrice": {
            "title": "Minimum Price",
            "minimum": 0,
            "type": "number",
            "description": "Only products whose lowest variant price is at least this amount, in the store's own currency (the 'currency' field of every record shows it). Products without a price are dropped while a price filter is set. Leave empty for no minimum."
          },
          "maxPrice": {
            "title": "Maximum Price",
            "minimum": 0,
            "type": "number",
            "description": "Only products whose lowest variant price is at most this amount, in the store's own currency. Products without a price are dropped while a price filter is set. Leave empty for no maximum."
          },
          "vendor": {
            "title": "Vendor / Brand",
            "type": "string",
            "description": "Only products from this vendor (brand). The match is exact but not case-sensitive, so 'Allbirds' matches 'allbirds' but not 'Allbirds Inc'. Leave empty for all vendors."
          },
          "productType": {
            "title": "Product Type",
            "type": "string",
            "description": "Only products of this Shopify product type, for example 'Sneakers'. The match is exact but not case-sensitive. Leave empty for all product types."
          },
          "includeStoreInfo": {
            "title": "Include Store Profile",
            "type": "boolean",
            "description": "Add a 'store' object with the store's public profile (name, currency, city, country, myshopify domain and published product count, read from the store's /meta.json) to every record. Turn off for slimmer records.",
            "default": true
          },
          "fetchDetails": {
            "title": "Fetch Product Details",
            "type": "boolean",
            "description": "Open every product's own storefront data for more fields: the product's .js endpoint (every variant with SKU, barcode, weight, tax and shipping flags, plus stock quantity where the store exposes it; all images and videos with alt text; selling plans), the product page's JSON-LD (brand, GTIN/MPN, condition, material, colour, shipping and return policy, rating and the reviews the store's review app publishes there) and the store's home page once per store (description, logo, social links). That is two requests per product plus one request per store for the home page, each checked against the store's robots.txt. Turn it off for a faster run with catalog data only. Each record's 'detailStatus' tells you what happened.",
            "default": true
          },
          "detailLimit": {
            "title": "Max Products To Enrich",
            "minimum": 0,
            "type": "integer",
            "description": "Only the first N returned products get the detail step; the remaining ones keep their search data only and 'detailStatus' says 'skipped: detailLimit=N'. Use 0 to enrich every returned item. Used only while 'Fetch Product Details' is on.",
            "default": 0
          },
          "maxReviews": {
            "title": "Max Reviews Per Product",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum number of customer reviews copied per product from the product page's schema.org markup. Many review apps render their reviews in the browser only, so this can be empty for many stores. Use 0 for no reviews. Used only while 'Fetch Product Details' is on.",
            "default": 10
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}