{
  "openapi": "3.0.1",
  "info": {
    "title": "Amazon Seller Scraper",
    "description": "Scrape Amazon sellers — business name, legal address, feedback ratings, rating distribution, and storefront products — from seller IDs, storefront/profile URLs, or product ASINs across 18 marketplaces. Flat JSON for AI agents and MCP.",
    "version": "0.4",
    "x-build-id": "Fd89pTmvfF8pNddbY"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/khadinakbar~amazon-seller-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-khadinakbar-amazon-seller-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/khadinakbar~amazon-seller-scraper/runs": {
      "post": {
        "operationId": "runs-sync-khadinakbar-amazon-seller-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/khadinakbar~amazon-seller-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-khadinakbar-amazon-seller-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": {
          "sellerIds": {
            "title": "Seller IDs",
            "type": "array",
            "description": "Amazon seller (merchant) IDs, 13–14 uppercase chars, e.g. ['A1ODG4ICFE5MU3','AN9M05X8SIK1X']. Each is resolved on the selected marketplace's /sp?seller= profile page. NOT an ASIN (10 chars) — for products use 'asins'. NOT a URL — for URLs use 'startUrls'.",
            "items": {
              "type": "string",
              "pattern": "^[A-Z0-9]{13,14}$"
            },
            "default": []
          },
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "Amazon URLs to scrape: seller profile ('/sp?seller=ID'), storefront ('/s?me=ID'), or product ('/dp/ASIN') pages. Product URLs are resolved to the seller(s) in their buy box. The domain in each URL overrides the 'country' setting. Use when you already have exact URLs.",
            "default": [],
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "asins": {
            "title": "Product ASINs",
            "type": "array",
            "description": "Product ASINs (10 chars, e.g. ['B007ADJ4JI']) whose third-party seller(s) you want to find. The actor opens each product, reads the 'Sold by' seller(s), then scrapes their profile. NOT a seller ID (13–14 chars) — for sellers use 'sellerIds'.",
            "items": {
              "type": "string",
              "pattern": "^[A-Z0-9]{10}$"
            },
            "default": []
          },
          "country": {
            "title": "Amazon marketplace",
            "enum": [
              "US",
              "UK",
              "DE",
              "FR",
              "CA",
              "ES",
              "IT",
              "JP",
              "AU",
              "IN",
              "MX",
              "BR",
              "NL",
              "SE",
              "PL",
              "TR",
              "AE",
              "SG"
            ],
            "type": "string",
            "description": "Marketplace used for sellerIds and asins when 'countries' is empty. Ignored when a start URL already has an Amazon domain. Defaults to US (amazon.com)."
          },
          "countries": {
            "title": "Amazon marketplaces (several at once)",
            "type": "array",
            "description": "Run the same sellerIds and asins on several Amazon stores in one run, e.g. ['DE','FR','IT']. EU stores add the business contact box (legal name, trade register, VAT ID, phone, email) when the seller shows it. Leave empty to use the single 'country' setting. One seller row is saved per store where the seller is found.",
            "items": {
              "type": "string",
              "enum": [
                "US",
                "UK",
                "DE",
                "FR",
                "CA",
                "ES",
                "IT",
                "JP",
                "AU",
                "IN",
                "MX",
                "BR",
                "NL",
                "SE",
                "PL",
                "TR",
                "AE",
                "SG"
              ],
              "enumTitles": [
                "United States (amazon.com)",
                "United Kingdom (amazon.co.uk)",
                "Germany (amazon.de)",
                "France (amazon.fr)",
                "Canada (amazon.ca)",
                "Spain (amazon.es)",
                "Italy (amazon.it)",
                "Japan (amazon.co.jp)",
                "Australia (amazon.com.au)",
                "India (amazon.in)",
                "Mexico (amazon.com.mx)",
                "Brazil (amazon.com.br)",
                "Netherlands (amazon.nl)",
                "Sweden (amazon.se)",
                "Poland (amazon.pl)",
                "Turkey (amazon.com.tr)",
                "United Arab Emirates (amazon.ae)",
                "Singapore (amazon.sg)"
              ]
            },
            "default": []
          },
          "includeFeedback": {
            "title": "Include recent feedback comments",
            "type": "boolean",
            "description": "When true, the seller record includes a 'recentFeedback' array of the most recent buyer comments rendered on the profile (rating, comment, author, date). Turn off for a leaner record focused on business details and rating summaries.",
            "default": true
          },
          "maxFeedback": {
            "title": "Max feedback comments",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Maximum recent feedback comments to capture per seller (only the comments rendered on the profile page; Amazon shows ~5–10 without pagination). Ignored when 'includeFeedback' is off.",
            "default": 20
          },
          "includeStorefrontProducts": {
            "title": "Also list storefront products",
            "type": "boolean",
            "description": "When true, the actor also opens the seller's storefront ('/s?me=ID') and lists their products into a 'products' array on the seller record. Each product is billed as one storefront-product event (from $0.003 on the Free plan, less on paid plans). Adds time and cost — leave off if you only need seller profile + feedback.",
            "default": false
          },
          "maxStorefrontProducts": {
            "title": "Max storefront products per seller",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "Maximum products to list from each seller's storefront. Only applies when 'includeStorefrontProducts' is on. Each product returned is billed as one 'storefront-product' event.",
            "default": 100
          },
          "maxStorefrontPages": {
            "title": "Max storefront pages per seller",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Maximum storefront result pages to paginate per seller (~48 products per page). Only applies when 'includeStorefrontProducts' is on. Amazon caps most listings at ~7 pages.",
            "default": 3
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Apify Proxy settings. Default is the low-cost datacenter route. If Amazon blocks a page twice, the Actor reads that page through a built-in backup route automatically, so you do not need Residential for normal runs.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}