{
  "openapi": "3.0.1",
  "info": {
    "title": "Amazon Brand Store Scraper",
    "description": "Extracts product links and public metadata from Amazon Brand Store pages, with optional public product-detail enrichment.",
    "version": "1.3",
    "x-build-id": "i43dIXlqpuKZ7ozka"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/w3crawler~amazon-brand-store-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-w3crawler-amazon-brand-store-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/w3crawler~amazon-brand-store-scraper/runs": {
      "post": {
        "operationId": "runs-sync-w3crawler-amazon-brand-store-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/w3crawler~amazon-brand-store-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-w3crawler-amazon-brand-store-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": {
          "url": {
            "title": "Brand Store URL",
            "type": "string",
            "description": "Public Amazon Brand Store page URL. The default is a current Anker Brand Store product-grid page; generic product, search, and browse URLs are rejected.",
            "default": "https://www.amazon.com/stores/page/91887AA2-8C06-45A1-9EF9-22CFA1842218?ref_=ast_bln"
          },
          "maxItems": {
            "title": "Maximum products",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Maximum product records emitted after deduplication and filters. Diagnostics are emitted in addition to this limit.",
            "default": 30
          },
          "maxPages": {
            "title": "Maximum Brand Store pages",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Maximum same-marketplace /stores/page/ links followed, including the supplied page.",
            "default": 5
          },
          "includeProductDetails": {
            "title": "Fetch product details",
            "type": "boolean",
            "description": "Fetch each selected public product page sequentially for additional price, rating, review, availability, description, feature, category, and media fields.",
            "default": true
          },
          "includeMedia": {
            "title": "Include media URLs",
            "type": "boolean",
            "description": "Keep public Amazon image URLs when exposed by the Brand Store or product page.",
            "default": true
          },
          "dedupe": {
            "title": "Deduplicate products",
            "type": "boolean",
            "description": "Remove repeated products across Brand Store pages before output.",
            "default": true
          },
          "dedupeBy": {
            "title": "Deduplication key",
            "enum": [
              "asin",
              "productUrl"
            ],
            "type": "string",
            "description": "Field used when deduplication is enabled.",
            "default": "asin"
          },
          "locale": {
            "title": "Request locale",
            "pattern": "^[a-z]{2,3}(?:-[A-Z]{2})?$",
            "type": "string",
            "description": "BCP-47-style locale used only in the ordinary Accept-Language header; the User-Agent remains fixed and transparent.",
            "default": "en-US"
          },
          "requestDelayMs": {
            "title": "Delay between requests (ms)",
            "minimum": 0,
            "maximum": 60000,
            "type": "integer",
            "description": "Optional pause before each serialized page or detail request.",
            "default": 0
          },
          "maxConcurrency": {
            "title": "Detail concurrency (compatibility)",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Accepted for older saved inputs only; direct public requests are always serialized.",
            "default": 1
          },
          "maxRetries": {
            "title": "Retries (compatibility)",
            "minimum": 0,
            "maximum": 8,
            "type": "integer",
            "description": "Accepted for older saved inputs only; direct public requests are attempted once and never retried.",
            "default": 0
          },
          "requestTimeoutSecs": {
            "title": "Request timeout (seconds)",
            "minimum": 5,
            "maximum": 120,
            "type": "integer",
            "description": "Abort timeout applied to each direct public request.",
            "default": 45
          },
          "filters": {
            "title": "Optional filters",
            "type": "object",
            "description": "Filters are applied before the maxItems limit. Numeric filters require the corresponding public value to be present.",
            "properties": {
              "searchText": {
                "title": "Search text",
                "description": "Case-insensitive match against ASIN, title, brand, category, and description.",
                "type": "string"
              },
              "includeAsins": {
                "title": "Include ASINs",
                "description": "Optional allowlist of Amazon Standard Identification Numbers.",
                "type": "array",
                "maxItems": 100,
                "items": {
                  "type": "string",
                  "pattern": "^[A-Za-z0-9]{10}$"
                }
              },
              "excludeAsins": {
                "title": "Exclude ASINs",
                "description": "Optional denylist of Amazon Standard Identification Numbers.",
                "type": "array",
                "maxItems": 100,
                "items": {
                  "type": "string",
                  "pattern": "^[A-Za-z0-9]{10}$"
                }
              },
              "minPrice": {
                "title": "Minimum price",
                "description": "Keep products at or above this public numeric price.",
                "type": "number",
                "minimum": 0
              },
              "maxPrice": {
                "title": "Maximum price",
                "description": "Keep products at or below this public numeric price.",
                "type": "number",
                "minimum": 0
              },
              "minRating": {
                "title": "Minimum rating",
                "description": "Keep products at or above this public rating from 0 to 5.",
                "type": "number",
                "minimum": 0,
                "maximum": 5
              },
              "includeSponsored": {
                "title": "Include sponsored items",
                "description": "Keep items marked sponsored in the public HTML.",
                "type": "boolean",
                "default": true
              }
            },
            "default": {},
            "additionalProperties": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}