# Amazon Store Brands Scraping Tool (`topical_blush/amazon-store-brands-scraping-tool`) Actor

Scrape product information of selected brands from amazon.com. Scraped information includes product page url, asin and product image url.

- **URL**: https://apify.com/topical_blush/amazon-store-brands-scraping-tool.md
- **Developed by:** [Rotimi Olasehinde](https://apify.com/topical_blush) (community)
- **Categories:** E-commerce
- **Security:** Limited permissions
- **Stats:** 15 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-usage

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Amazon Store Brands Scraper

Efficiently scrape product information from Amazon store brands with customizable data extraction. Perfect for market research, competitive analysis, and product monitoring.

### Features

- 🎯 **Multi-brand scraping** - Extract data from multiple Amazon store brands in a single run
- 🔧 **Flexible data selection** - Choose exactly which product fields to scrape (ASIN, page URL, image URL)
- 🚀 **Scalable** - Set limits on products per brand or scrape entire catalogs
- 🛡️ **Reliable** - Built-in retry logic and proxy support to handle Amazon's anti-scraping measures
- 📊 **Organized output** - Results grouped by brand or flattened for easy analysis

### Input Configuration

#### Basic Setup

The scraper requires at least one brand configuration. For each brand, specify:

- **Brand Name** (required): The exact Amazon store brand name
- **Data Fields**: Choose which information to collect:
  - ASIN (Amazon Standard Identification Number)
  - Product page URL
  - Product image URL

#### Example Input

```json
{
  "brands": [
    {
      "brandName": "AmazonBasics",
      "scrapeAsin": true,
      "scrapePage": true,
      "scrapeImageUrl": true
    },
    {
      "brandName": "Anker",
      "scrapeAsin": true,
      "scrapePage": false,
      "scrapeImageUrl": true
    }
  ],
  "maxProductsPerBrand": 100,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": ["RESIDENTIAL"]
  }
}
```

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `brands` | Array | Yes | List of brand configurations with data field selections |
| `maxProductsPerBrand` | Integer | No | Limit products scraped per brand (1-10,000) |
| `proxyConfiguration` | Object | No | Proxy settings (Apify Proxy recommended) |
| `debugMode` | Boolean | No | Enable detailed logging (default: false) |
| `maxRetries` | Integer | No | Retry attempts for failed requests (default: 3) |
| `requestTimeout` | Integer | No | Page load timeout in seconds (default: 30) |
| `outputFormat` | String | No | "grouped" (by brand) or "flat" (default: grouped) |

### Output Format

#### Grouped Output (Default)

Results are organized by brand name:

```json
{
  "AmazonBasics": [
    {
      "name": "USB Cable 6ft",
      "asin": "B01234ABCD",
      "page": "https://www.amazon.com/dp/B01234ABCD",
      "image_url": "https://m.media-amazon.com/images/I/example.jpg"
    },
    {
      "name": "HDMI Cable 10ft",
      "asin": "B56789EFGH",
      "page": "https://www.amazon.com/dp/B56789EFGH",
      "image_url": "https://m.media-amazon.com/images/I/example2.jpg"
    }
  ],
  "Anker": [
    {
      "name": "PowerCore 20000",
      "asin": "B09876IJKL",
      "image_url": "https://m.media-amazon.com/images/I/example3.jpg"
    }
  ]
}
```

#### Flat Output

All products in a single list:

```json
[
  {
    "brand": "AmazonBasics",
    "name": "USB Cable 6ft",
    "asin": "B01234ABCD",
    "page": "https://www.amazon.com/dp/B01234ABCD",
    "image_url": "https://m.media-amazon.com/images/I/example.jpg"
  },
  {
    "brand": "AmazonBasics",
    "name": "HDMI Cable 10ft",
    "asin": "B56789EFGH",
    "page": "https://www.amazon.com/dp/B56789EFGH",
    "image_url": "https://m.media-amazon.com/images/I/example2.jpg"
  }
]
```

### Best Practices

#### Proxy Configuration

Amazon actively blocks scrapers. **Always use proxies**, preferably residential:

```json
{
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": ["RESIDENTIAL"]
  }
}
```

#### Rate Limiting

- Start with smaller product limits per brand
- Use appropriate request timeouts (30-60 seconds recommended)
- Enable retries to handle temporary failures

#### Brand Names

- Use exact brand names as they appear on Amazon
- Brand names are case-sensitive
- Verify brand names before large scraping runs

### Common Use Cases

#### Market Research

Analyze product offerings across competing brands:

```json
{
  "brands": [
    {"brandName": "Nike", "scrapeAsin": true, "scrapePage": true},
    {"brandName": "Adidas", "scrapeAsin": true, "scrapePage": true},
    {"brandName": "Puma", "scrapeAsin": true, "scrapePage": true}
  ],
  "maxProductsPerBrand": 500
}
```

#### Image Collection

Gather product images for catalog building:

```json
{
  "brands": [
    {"brandName": "Samsung", "scrapeImageUrl": true, "scrapeAsin": true}
  ],
  "outputFormat": "flat"
}
```

#### Product Monitoring

Track specific brand catalogs:

```json
{
  "brands": [
    {"brandName": "YourBrand", "scrapeAsin": true, "scrapePage": true, "scrapeImageUrl": true}
  ],
  "debugMode": true
}
```

### Limitations

- Requires valid Amazon brand names
- Subject to Amazon's terms of service and robots.txt
- Scraping speed depends on proxy quality and Amazon's rate limits
- Some product information may be unavailable depending on Amazon's page structure

### Troubleshooting

#### No Results Returned

- Verify brand name spelling and capitalization
- Check if brand has products on Amazon
- Enable `debugMode` to see detailed logs
- Ensure proxy configuration is correct

#### Frequent Failures

- Increase `requestTimeout` (try 60+ seconds)
- Use residential proxies instead of datacenter
- Reduce `maxProductsPerBrand` to avoid rate limits
- Increase `maxRetries` for unstable connections

#### Missing Data Fields

- Verify the product page structure hasn't changed
- Check if specific fields are available for the brand
- Enable `debugMode` to inspect scraping process

### Support

For issues, feature requests, or questions:

- Open an issue on the Actor's page
- Check Apify documentation for general scraping help
- Review Amazon's terms of service for compliance

### Compliance

This Actor is provided for legitimate use cases such as:

- Market research with publicly available data
- Competitive analysis
- Academic research

Users are responsible for:

- Complying with Amazon's Terms of Service
- Respecting robots.txt directives
- Following applicable laws and regulations
- Using scraped data ethically and legally

***

**Note**: This Actor scrapes publicly available information from Amazon. Always ensure your use case complies with Amazon's terms of service and applicable laws.

# Actor input Schema

## `brands` (type: `array`):

Add Amazon store brands to scrape. For each brand, specify which product data fields you want to collect.

## `maxProductsPerBrand` (type: `integer`):

Limit the number of products scraped for each brand (leave empty for unlimited)

## `proxyConfiguration` (type: `object`):

Configure proxy settings. Using Apify Proxy with residential IPs is highly recommended for Amazon scraping to avoid blocks.

## `debugMode` (type: `boolean`):

Enable detailed logging for troubleshooting and monitoring

## `maxRetries` (type: `integer`):

Number of retry attempts for failed requests

## `requestTimeout` (type: `integer`):

Maximum time to wait for each page to load

## `outputFormat` (type: `string`):

Choose how to organize the scraped data in the output

## Actor input object example

```json
{
  "brands": [
    {
      "brandName": "Swatch",
      "scrapeAsin": true,
      "scrapePage": true,
      "scrapeImageUrl": true
    }
  ],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  },
  "debugMode": false,
  "maxRetries": 3,
  "requestTimeout": 30,
  "outputFormat": "grouped"
}
```

# Actor output Schema

## `grouped` (type: `string`):

No description

## `flat` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "brands": [
        {
            "brandName": "Swatch",
            "scrapeAsin": true,
            "scrapePage": true,
            "scrapeImageUrl": true
        }
    ],
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("topical_blush/amazon-store-brands-scraping-tool").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "brands": [{
            "brandName": "Swatch",
            "scrapeAsin": True,
            "scrapePage": True,
            "scrapeImageUrl": True,
        }],
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("topical_blush/amazon-store-brands-scraping-tool").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "brands": [
    {
      "brandName": "Swatch",
      "scrapeAsin": true,
      "scrapePage": true,
      "scrapeImageUrl": true
    }
  ],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call topical_blush/amazon-store-brands-scraping-tool --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,topical_blush/amazon-store-brands-scraping-tool"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/vprAX6d1mgXSmyQue/builds/mQWIIZOpAywrEfO9t/openapi.json
