{
  "openapi": "3.0.1",
  "info": {
    "title": "Sweetwater Scraper | Product Prices and Stock",
    "description": "Sweetwater scraper for music gear and pro audio prices: search sweetwater.com by keyword, item ID, link, category or brand and get price, list price, deals, stock units, MPN, UPC, specs, photos and reviews. 20 products in 3 seconds, 29 fields each. Built for MAP monitoring and repricing. No login.",
    "version": "1.0",
    "x-build-id": "LajpbPdccj9enct6W"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/silentflow~sweetwater-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-silentflow-sweetwater-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/silentflow~sweetwater-scraper/runs": {
      "post": {
        "operationId": "runs-sync-silentflow-sweetwater-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/silentflow~sweetwater-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-silentflow-sweetwater-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": {
          "searchQueries": {
            "title": "🔎 Keywords, MPN or UPC",
            "type": "array",
            "description": "Search Sweetwater like its search box: a product type (<code>audio interface</code>), a model (<code>shure sm7b</code>), a manufacturer part number or a UPC barcode. Returns up to <b>max products</b> per keyword, best match first unless you pick another sort.",
            "items": {
              "type": "string"
            }
          },
          "itemIds": {
            "title": "🏷️ Sweetwater item IDs",
            "type": "array",
            "description": "The Item ID printed on every Sweetwater product page and at the start of its link, e.g. <code>SM57</code>, <code>StratP2MBK</code>, <code>Scar2i2G4</code>. Paste a few or thousands: each ID returns its row whatever <b>max products</b> says, discontinued products included, so you can check the same list every day.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "🔗 Sweetwater links",
            "type": "array",
            "description": "Links copied from sweetwater.com: a product page (<code>/store/detail/SM57--shure-sm57...</code>), a category (<code>/c1636--Stage_Pianos</code>), a department (<code>/shop/guitars/</code>), a brand (<code>/brand/yamaha</code>), a series (<code>/brand/yamaha/series/ck</code>), the DealZone or a search results page. Product links always return their row; the others return up to <b>max products</b> each.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "🔢 Max products per keyword or link",
            "minimum": 1,
            "type": "integer",
            "description": "Caps each keyword, category, brand and search link. A whole brand or category can be read: Fender alone has about 2,800 products on Sweetwater. Run time and cost grow with this number.",
            "default": 20
          },
          "sortBy": {
            "title": "↕️ Sort",
            "enum": [
              "relevance",
              "priceLowToHigh",
              "priceHighToLow",
              "topRated",
              "newest",
              "bestSelling",
              "biggestSavings"
            ],
            "type": "string",
            "description": "Order of the products before the cap applies, as on the site. Leave empty for best match."
          },
          "condition": {
            "title": "✨ Condition",
            "type": "array",
            "description": "Keep only products in these conditions. Demo units are Sweetwater's open-box stock, B-stock has cosmetic blemishes. Leave empty for every condition.",
            "items": {
              "type": "string",
              "enum": [
                "new",
                "demo",
                "used",
                "bStock"
              ],
              "enumTitles": [
                "New",
                "Demo (open box)",
                "Used",
                "B-stock"
              ]
            }
          },
          "onlyInStock": {
            "title": "📦 In stock only",
            "type": "boolean",
            "description": "Skip products that are backordered, on special order or out of stock.",
            "default": false
          },
          "onlyOnSale": {
            "title": "🏷️ Deals only",
            "type": "boolean",
            "description": "Keep only products in the DealZone or with a price drop, rebate or promotion running.",
            "default": false
          },
          "includeDetails": {
            "title": "📋 MPN, spec table and photo gallery",
            "type": "boolean",
            "description": "Adds the manufacturer part number, the full Tech Specs table, every product photo and the stock note shown on the page (e.g. <i>In Stock!</i>, <i>Backordered - More On The Way!</i>) with the expected arrival date.",
            "default": true
          },
          "includeReviews": {
            "title": "⭐ Latest reviews",
            "type": "boolean",
            "description": "Adds the 5 latest customer reviews (title, text, stars, author, date, photos and videos), the precise average rating and the share of 5, 4, 3, 2 and 1 star reviews.",
            "default": true
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}