{
  "openapi": "3.0.1",
  "info": {
    "title": "Amazon Reviews Scraper - Reviews From Every Country Site",
    "description": "Scrapes Amazon reviews from 21 country sites without login: give it product links or ASINs; get each review's stars, title, text, ISO date, clean country, verified flag, helpful votes and variant as rows. Same field names as the leading Amazon Reviews Scraper, with onlyNew for monitoring.",
    "version": "0.1",
    "x-build-id": "HZc9AEUozAPY0RXYA"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/h1018y~anvil-amazon-reviews-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-h1018y-anvil-amazon-reviews-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/h1018y~anvil-amazon-reviews-scraper/runs": {
      "post": {
        "operationId": "runs-sync-h1018y-anvil-amazon-reviews-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/h1018y~anvil-amazon-reviews-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-h1018y-anvil-amazon-reviews-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": {
          "products": {
            "title": "Products",
            "type": "array",
            "description": "Amazon product links or ASINs - yours or your competitors', one per line, e.g. https://www.amazon.com.mx/dp/B09B8V1LZ3 or B0BSHF7WHW.",
            "items": {
              "type": "string"
            }
          },
          "marketplace": {
            "title": "Amazon site",
            "enum": [
              "us",
              "uk",
              "ca",
              "de",
              "fr",
              "it",
              "es",
              "jp",
              "in",
              "au",
              "mx",
              "nl",
              "be",
              "ie",
              "br",
              "se",
              "pl",
              "tr",
              "sg",
              "ae",
              "sa"
            ],
            "type": "string",
            "description": "Which Amazon store the ASINs belong to (a full product link sets its own site, e.g. amazon.com.mx).",
            "default": "us"
          },
          "maxItems": {
            "title": "Max products",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Stop after this many products (each product link or ASIN counts once), e.g. 10.",
            "default": 1000
          },
          "reviewRows": {
            "title": "One row per review",
            "type": "boolean",
            "description": "On: every review is its own row with reviewTitle, reviewDescription, ratingScore, date (ISO), country, isVerified and reviewUrl. Off: one row per product with its rating block.",
            "default": false
          },
          "extraMarketplaces": {
            "title": "Also read these Amazon sites",
            "type": "array",
            "description": "More country codes to read the same ASINs on for more reviews, e.g. uk, ca, de, mx, nl, jp (One row per review only).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "onlyNew": {
            "title": "Only new reviews",
            "type": "boolean",
            "description": "For schedules: return only reviews not seen in the last finished run with the same input (One row per review).",
            "default": false
          },
          "productUrls": {
            "title": "Product URLs (same name as the leading reviews scraper)",
            "type": "array",
            "description": "Optional drop-in field: [{\"url\": \"https://www.amazon.de/dp/B0BSHF7WHW\"}] or plain links; turns on one row per review."
          },
          "maxReviews": {
            "title": "Max reviews",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Stop after this many review rows in total, e.g. 100 (default 100 when empty)."
          },
          "includeGdprSensitive": {
            "title": "Include reviewer names (ignored)",
            "type": "boolean",
            "description": "Accepted for drop-in use; reviewer names and profiles are never returned (private persons).",
            "default": false
          },
          "sort": {
            "title": "Sort (drop-in field)",
            "enum": [
              "helpful",
              "recent"
            ],
            "type": "string",
            "description": "Accepted for drop-in use: helpful keeps Amazon's order, recent sorts the rows read by date, newest first.",
            "default": "helpful"
          },
          "reviewsCutoffDate": {
            "title": "Reviews since",
            "type": "string",
            "description": "Only reviews on or after this date, in the form YYYY-MM-DD, e.g. 2025-01-01."
          },
          "filterByRatings": {
            "title": "Star filter",
            "type": "array",
            "description": "Keep only these stars: allStars, oneStar, twoStar, threeStar, fourStar, fiveStar, positive, critical.",
            "default": [
              "allStars"
            ],
            "items": {
              "type": "string"
            }
          },
          "reviewsUseProductVariantFilter": {
            "title": "Only this variant (drop-in field)",
            "type": "boolean",
            "description": "Accepted for drop-in use; the variant of each review is returned in the variant field.",
            "default": false
          },
          "reviewsFilterByKeywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Keep only reviews whose title or text contains one of these words, e.g. battery, broken.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "scrapeProductDetails": {
            "title": "Product details (drop-in field)",
            "type": "boolean",
            "description": "Accepted for drop-in use; every row already carries the product title, rating and review count.",
            "default": false
          },
          "reviewsAlwaysSaveCategoryData": {
            "title": "Category data (drop-in field)",
            "type": "boolean",
            "description": "Accepted for drop-in use; category data is not part of the review rows.",
            "default": false
          },
          "deduplicateRedirectedAsins": {
            "title": "Remove duplicates (drop-in field)",
            "type": "boolean",
            "description": "Accepted for drop-in use; reviews are always deduplicated by reviewId.",
            "default": true
          },
          "useApifyProxy": {
            "title": "Use Apify Proxy",
            "type": "boolean",
            "description": "Recommended: Amazon limits plain data-center traffic.",
            "default": true
          },
          "proxyGroups": {
            "title": "Proxy groups",
            "type": "array",
            "description": "Optional Apify proxy groups, e.g. RESIDENTIAL.",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}