{
  "openapi": "3.0.1",
  "info": {
    "title": "Amazon Scraper - Products, Rankings & Seller Profiles",
    "description": "Collect Amazon products, rankings, seller profiles, and search terms across 23 selectable storefronts. Export ASINs, prices, ratings, and available business information. Pay per delivered row.",
    "version": "0.3",
    "x-build-id": "fg2HzBhWX98g2dkyp"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/lentic_clockss~amazon-search-results-collector/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-lentic_clockss-amazon-search-results-collector",
        "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/lentic_clockss~amazon-search-results-collector/runs": {
      "post": {
        "operationId": "runs-sync-lentic_clockss-amazon-search-results-collector",
        "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/lentic_clockss~amazon-search-results-collector/run-sync": {
      "post": {
        "operationId": "run-sync-lentic_clockss-amazon-search-results-collector",
        "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": {
          "keywords": {
            "title": "Keywords",
            "maxItems": 20,
            "type": "array",
            "description": "Amazon search keywords, one per line (up to 20). Fill this for keyword search. Optional for category mode (search within a category).",
            "items": {
              "type": "string"
            }
          },
          "detailUrls": {
            "title": "Detail URLs (for detail mode)",
            "maxItems": 100,
            "type": "array",
            "description": "Amazon product links (/dp/ASIN) or seller profile links (/sp?seller=ID) on the chosen market's site, e.g. https://www.amazon.com/dp/B0ABCD1234. Fill this to fetch those pages (detail mode).",
            "items": {
              "type": "string"
            }
          },
          "asins": {
            "title": "ASINs",
            "maxItems": 100,
            "type": "array",
            "description": "Optional list of 10-character Amazon ASINs (for example B07684BPLB). Each ASIN is resolved to a product detail URL on the selected marketplace.",
            "items": {
              "type": "string"
            }
          },
          "mode": {
            "title": "Collection mode",
            "enum": [
              "auto",
              "keyword",
              "category",
              "bestsellers",
              "newreleases",
              "movers",
              "detail",
              "searchSeed"
            ],
            "type": "string",
            "description": "Choose the collection mode, or leave auto to infer it from detail URLs, keywords, category targets, or search seeds. Search-term mode returns suggestions rather than products.",
            "default": "auto"
          },
          "market": {
            "title": "Market",
            "enum": [
              "AE",
              "AU",
              "BE",
              "BR",
              "CA",
              "DE",
              "EG",
              "ES",
              "FR",
              "GB",
              "IE",
              "IN",
              "IT",
              "JP",
              "MX",
              "NL",
              "PL",
              "SA",
              "SE",
              "SG",
              "TR",
              "US",
              "ZA"
            ],
            "type": "string",
            "description": "Amazon storefront to query.",
            "default": "US"
          },
          "postalCode": {
            "title": "Delivery postal / ZIP code",
            "maxLength": 20,
            "type": "string",
            "description": "Optional marketplace delivery postal or ZIP code (for example 10001 for US or 100-0001 for JP) used to anchor local currency, BuyBox price, and domestic shipping text."
          },
          "maxResults": {
            "title": "Max results per input",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum product rows delivered and billed per input (a keyword, a detail URL, a category or ranking target is one input). Default 70; larger numbers are collected in parts of 70. All row types count together. The whole run stops at your maximum total charge. Free Apify plan runs are capped automatically at 200 rows. Alias: maxItems.",
            "default": 70
          },
          "category": {
            "title": "Category key",
            "enum": [
              "all",
              "amazon-devices",
              "audible",
              "automotive",
              "baby",
              "beauty",
              "books",
              "computers",
              "electronics",
              "fashion",
              "garden",
              "grocery",
              "handmade",
              "health",
              "home",
              "industrial",
              "kindle-store",
              "kitchen",
              "luggage",
              "movies-tv",
              "music",
              "office-products",
              "pet-supplies",
              "software",
              "sports",
              "tools",
              "toys-and-games",
              "video-games"
            ],
            "type": "string",
            "description": "Department key such as electronics, books, or kitchen. For category or ranking modes, provide this field or a compatible browse node or ranking slug."
          },
          "categoryNodeId": {
            "title": "Category browse node ID",
            "type": "string",
            "description": "Optional browse node from the selected Amazon storefront. Overrides the department's mapped node."
          },
          "categorySlug": {
            "title": "Best Sellers category slug",
            "type": "string",
            "description": "Optional ranking category path, such as electronics. Overrides the department's mapped ranking path."
          },
          "seedKeywords": {
            "title": "Seed keywords (for searchSeed mode)",
            "maxItems": 20,
            "type": "array",
            "description": "Optional starting terms for searchSeed mode, up to 20. When left empty the Actor returns built-in department terms (marked source=builtin, verified=false); each returned row is billed like any other result. When seeds are given but suggestions cannot be fetched, the run fails instead of substituting built-ins.",
            "items": {
              "type": "string"
            }
          },
          "sort": {
            "title": "Search sort order",
            "enum": [
              "featured",
              "relevance",
              "price-asc",
              "price-desc",
              "newest",
              "avg-review",
              "review-count"
            ],
            "type": "string",
            "description": "Sort keyword or category search results. Ranking and detail modes ignore this setting.",
            "default": "featured"
          },
          "condition": {
            "title": "Condition filter",
            "enum": [
              "new",
              "used",
              "collectible",
              "refurbished",
              "renewed"
            ],
            "type": "string",
            "description": "Item condition facet for keyword/category search. Not supported for bestsellers/newreleases/detail."
          },
          "minPrice": {
            "title": "Minimum price",
            "minimum": 0,
            "type": "number",
            "description": "Minimum price for keyword or category search in the selected storefront's currency. Ranking and detail modes ignore this setting."
          },
          "maxPrice": {
            "title": "Maximum price",
            "minimum": 0,
            "type": "number",
            "description": "Maximum price for keyword or category search in the selected storefront's currency. Ranking and detail modes ignore this setting."
          },
          "pages": {
            "title": "Pages per keyword",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Maximum result pages for each input, from 1 to 20. Collection may stop sooner at the row or cost limit.",
            "default": 1
          },
          "scrapeDetails": {
            "title": "Add product details",
            "type": "boolean",
            "description": "Enable product-detail enrichment of listing rows. On by default; seller enrichment also requires enrichDetails and a positive enrichMaxItems value.",
            "default": true
          },
          "enrichDetails": {
            "title": "Add seller business information",
            "type": "boolean",
            "description": "Add available seller business information to product rows. On by default; enrichment does not create a separate seller row.",
            "default": true
          },
          "enrichMaxItems": {
            "title": "Maximum listing rows to enrich",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Maximum number of search/list rows to enrich with extra product detail and offer fetches when enrichDetails is enabled. Default keeps runs fast; raise for deeper variation/offer coverage.",
            "default": 1
          },
          "maxItemsPerKeyword": {
            "title": "Secondary row limit per keyword",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Optional secondary cap for one keyword task. It defaults to the schema maximum so maxItems controls the per-input row limit.",
            "default": 500
          },
          "timeoutSecs": {
            "title": "Request timeout (seconds)",
            "minimum": 5,
            "maximum": 180,
            "type": "integer",
            "description": "Per-request timeout in seconds (5–180). Legacy alias requestTimeoutSecs is also accepted via API.",
            "default": 30
          },
          "cursor": {
            "title": "Continue from cursor",
            "type": "string",
            "description": "Continue a run that stopped at its time limit or was aborted gracefully: paste RUN_SUMMARY.nextCursor from that run and keep the rest of the input the same. A cursor works once and is valid for 6 hours. Usually leave empty."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}