{
  "openapi": "3.0.1",
  "info": {
    "title": "Amazon Reviews & Ratings Scraper: Histogram, Top Reviews",
    "description": "No-login Amazon snapshot: product face, rating aggregates with the 5-star histogram and the top reviews with full text (up to 8 US plus up to 5 other-country). $0.02 per snapshot, $0.008 ratings-only. Failed lookups are free, and so is any product with no rating data at all.",
    "version": "0.1",
    "x-build-id": "yRqTUq2KnBvQSJlcy"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/crawleast~amazon-reviews-snapshot/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-crawleast-amazon-reviews-snapshot",
        "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/crawleast~amazon-reviews-snapshot/runs": {
      "post": {
        "operationId": "runs-sync-crawleast-amazon-reviews-snapshot",
        "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/crawleast~amazon-reviews-snapshot/run-sync": {
      "post": {
        "operationId": "run-sync-crawleast-amazon-reviews-snapshot",
        "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": {
          "asins": {
            "title": "ASINs or product URLs",
            "maxItems": 200,
            "type": "array",
            "description": "Amazon ASINs (B09B8V1LZ3) or amazon.com product URLs (/dp/<ASIN>, /gp/product/<ASIN>), one per line. Bare ASINs must be 10 characters of A-Z/0-9 (so ISBN-10 book ASINs work too); anything that cannot be normalised to an ASIN is reported in RUN_SUMMARY.invalidInputs and never charged. Duplicates are collapsed, so the same ASIN is fetched and billed once per run. Only amazon.com is supported in this version — non-US storefronts (.de/.co.uk/.jp) are rejected uncharged.",
            "items": {
              "type": "string"
            }
          },
          "includeReviews": {
            "title": "Include the top reviews",
            "type": "boolean",
            "description": "On (default): full snapshot — product face + rating aggregates + the top reviews with complete text, billed $0.02 per product. Off: ratings-only — product face + average rating + review count + 5-star histogram and no review text at all, billed $0.008 per product. Turn it off when you only need rating analytics at scale. Amazon embeds only the top reviews in an anonymous product page: up to 8 from amazon.com and, on some products, up to 5 more that Amazon labels as from other countries. Neither mode paginates and neither needs your account.",
            "default": true
          },
          "maxItems": {
            "title": "Max products per run",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Cap on how many distinct ASINs one run processes, first come first served; the rest are reported in skippedBy.unattempted. The zero-delivery fuse scales with this batch: it stops the run after max(2, 10% of the batch) consecutive walled products, and everything it never got to is listed in skippedBy.fuse, uncharged. The run window, not memory, is the binding limit: the Actor caps its own working budget well inside the platform timeout and cuts the remainder with trigger=\"deadline\" (partial: true, nothing unbilled). Each product costs one page fetch plus up to maxVariantRetries extra draws, so review mode with a high retry setting is what eats the window. Split very large jobs across runs.",
            "default": 100
          },
          "maxVariantRetries": {
            "title": "Max review-variant retries",
            "minimum": 0,
            "maximum": 6,
            "type": "integer",
            "description": "Amazon only embeds the top reviews in the server-rendered product page for SOME anonymous requests, and the same product can come back with reviews on one request and without them on the next. When a draw has no review block the Actor re-requests the page through a fresh proxy session, up to this many extra draws. Measured, not modelled, and it moves with how hard Amazon is walling: pooled across 23 cloud runs at this setting (101 products, 163 draws, 2026-10-26) 37 of 101 first draws carried reviews and 60 of 101 products had reviews by the fourth draw (1.61 draws per product); the same pool read 57% and 89% two days earlier. 3 is still the value that pays for itself; 0 = one draw, 6 = the ceiling. RUN_SUMMARY.variantStats.hitRateByDraw reports your own run's real per-draw rate. Retries never raise your bill — a product that still shows no reviews after the last draw is delivered with reviewsCoverage=\"none\", variantHit=false and billed at the $0.008 ratings-only price. Ignored when includeReviews is off.",
            "default": 3
          },
          "proxyCountry": {
            "title": "Proxy exit country",
            "enum": [
              "US"
            ],
            "type": "string",
            "description": "Country of the proxy exit used for the requests. Only US is supported in this version: amazon.com serves its prices, availability and reviews to a US exit, and that is the catalogue this Actor reports on. Fixed to US.",
            "default": "US"
          },
          "maxTotalChargeUsd": {
            "title": "Max total charge (USD)",
            "minimum": 0.04,
            "type": "number",
            "description": "Hard budget cap for this run. The Actor checks the cap before starting each product: when the next product cannot be delivered within it, the run stops gracefully, marks the remainder in skippedBy.budget and reports trigger=\"budget\". Everything already delivered stays delivered and billed. Minimum 0.04 (Apify platform limit), which buys 5 ratings-only rows or 2 full snapshots; the gate reserves the cheaper tier, and a product that cannot be afforded as a full snapshot is fetched ratings-only rather than dropped. A run can cost at most maxItems x $0.02 — $4.00 at the 200-item ceiling, $2.00 at the default 100 — so the default $20 never binds; lower it if you want a ceiling you can rely on.",
            "default": 20
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}