{
  "openapi": "3.0.1",
  "info": {
    "title": "Amazon ASIN Scraper By Country & Marketplace",
    "description": "The Amazon ASIN Scraper actor extracts ASINs, product titles, prices, ratings, and URLs from Amazon search results or category pages. It automates large-scale product data collection for market research, competitor analysis, and pricing insights. Ideal for e-commerce and data intelligence tasks.",
    "version": "0.1",
    "x-build-id": "D1QVXe7bsqvwf9oWn"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scraper-engine~amazon-asins-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scraper-engine-amazon-asins-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/scraper-engine~amazon-asins-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scraper-engine-amazon-asins-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/scraper-engine~amazon-asins-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scraper-engine-amazon-asins-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",
        "required": [
          "asins"
        ],
        "properties": {
          "asins": {
            "title": "🔢 ASINs to price worldwide",
            "type": "array",
            "description": "One ASIN per line. Full product URLs work too — `https://www.amazon.com/dp/B07GBZ4Q68` and `/gp/product/…` links are reduced to their ASIN automatically.\n\nThe ASIN sits in the URL right after `/dp/`.",
            "items": {
              "type": "string"
            }
          },
          "marketplaces": {
            "title": "🗺️ Country storefronts to compare",
            "type": "array",
            "description": "Domains to price each ASIN on, e.g. `amazon.com`, `amazon.de`, `amazon.co.uk`, `amazon.fr`, `amazon.it`, `amazon.es`, `amazon.ca`, `amazon.com.au`, `amazon.co.jp`, `amazon.in`, `amazon.com.mx`, `amazon.com.br`, `amazon.nl`, `amazon.se`, `amazon.pl`, `amazon.sg`, `amazon.ae`.\n\nExample: 2 ASINs × 3 storefronts → 6 rows. Leave empty for `amazon.com` only.",
            "items": {
              "type": "string"
            }
          },
          "contentLanguage": {
            "title": "🔤 Page language override",
            "enum": [
              "",
              "en",
              "en_US",
              "en_GB",
              "de",
              "fr",
              "es",
              "it",
              "nl",
              "pl",
              "pt",
              "pt_BR",
              "sv",
              "tr",
              "cs",
              "da",
              "ja",
              "zh_CN",
              "zh_TW",
              "hi",
              "ar"
            ],
            "type": "string",
            "description": "Leave on **Storefront native** so each country's page renders in its own language — that is what keeps prices in the local currency.\n\nPick a language only if you need every storefront's text in one tongue.",
            "default": ""
          },
          "localeStrategy": {
            "title": "💶 Currency mode",
            "enum": [
              "native",
              "forceUsd",
              "noLocaleCookie"
            ],
            "type": "string",
            "description": "**Storefront local currency** (recommended): each domain gets its own `i18n-prefs`/`lc-main` cookie, so amazon.de returns `35,29 €` and amazon.co.uk `£29.99`.\n\n**Force USD everywhere**: reproduces the old behaviour — Amazon converts, and amazon.de answers `USD40.38` with no € on the page. Useful only if you deliberately want Amazon's own conversion.\n\n**Send no locale cookie**: let Amazon decide from the exit IP.",
            "default": "native"
          },
          "convertPricesToUsd": {
            "title": "🔁 Add a USD column for ranking",
            "type": "boolean",
            "description": "Pulls ECB reference rates once per run and fills `priceUsd`, `fxRateToUsd` and `fxRatesDate`, so storefronts in different currencies can be ranked against each other.\n\nIf the rate source is unreachable these stay `null` and ranking falls back to same-currency storefronts only — never an invented rate. Default: on.",
            "default": true
          },
          "skipUnavailableStorefronts": {
            "title": "🙈 Drop storefronts that don't sell it",
            "type": "boolean",
            "description": "On: rows where `isAvailable` is not `true` (not listed in that country, out of stock, or undetermined) are left out entirely.\n\nOff (default): they are kept, so you can see *where* an ASIN is missing — that absence is usually the point.",
            "default": false
          },
          "includeRichContent": {
            "title": "🖼️ Include A+ content, brand story & image galleries",
            "type": "boolean",
            "description": "These blocks dominate the record size and are identical across storefronts. Turn off for a lean price-comparison dataset — the keys stay present, just emptied. Default: on.",
            "default": true
          },
          "deliveryPostalCode": {
            "title": "🏤 Delivery postal code",
            "type": "string",
            "description": "Example: `10001` (US) or `10115` (Berlin). Applied to every storefront via Amazon's delivery-address cookie before scraping. Leave blank to use each marketplace's default.",
            "default": ""
          },
          "exitCountry": {
            "title": "🛰️ Proxy exit country",
            "enum": [
              "MARKETPLACE_MATCH",
              "NO_PROXY",
              "US",
              "GB",
              "DE",
              "FR",
              "ES",
              "IT",
              "CA",
              "AU",
              "JP",
              "IN",
              "BR",
              "MX",
              "NL",
              "PL",
              "TR",
              "SE",
              "AE",
              "SG"
            ],
            "type": "string",
            "description": "**Match each storefront** (recommended) routes amazon.de through a German IP, amazon.co.uk through a British one, and so on.\n\n⚠️ A US exit against a non-US Amazon domain is answered with a ~3.8 KB CAPTCHA shell, so a country that contradicts the storefront is overridden and the substitution is reported in the `proxyCountryUsed` column.",
            "default": "MARKETPLACE_MATCH"
          },
          "proxyConfiguration": {
            "title": "🧷 Proxy configuration",
            "type": "object",
            "description": "Overrides the exit-country selector above. With your own `proxyUrls` the geo decision is entirely yours — mismatched countries are no longer corrected."
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}