# Anker Reviews Scraper (`getdataforme/anker-reviews-scraper`)

The Anker Reviews Scraper extracts customer reviews from Anker product pages, delivering detailed data like ratings, reviewer names, and comments. With customizable limits and proxy support, it’s perfect for market research and e-commerce insights. Get structured JSON output for easy analysis.

- **URL**: https://beta-securitybyobscurity.apify.com/getdataforme/anker-reviews-scraper.md
- **Developed by:** [GetDataForMe](https://beta-securitybyobscurity.apify.com/getdataforme) (community)
- **Categories:** E-commerce
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

# README

### Anker Reviews Scraper

The **Anker Reviews Scraper** is an Apify Actor designed to efficiently scrape customer reviews from Anker product pages. By providing a list of product URLs, users can extract detailed review data, including ratings, reviewer details, and review content, to gain insights into customer feedback for Anker products.

### Input Parameters

The Actor requires a JSON input with the following parameters:

| Parameter | Type | Description | Default |
|-----------|------|-------------|---------|
| `item_limit` | Integer | Maximum number of reviews to scrape per URL. | 30 |
| `proxyConfiguration` | Object | Proxy settings for the scraper. Set `useApifyProxy: true` and specify `apifyProxyGroups` (e.g., `["RESIDENTIAL"]`) for reliable scraping. | `{ "useApifyProxy": true, "apifyProxyGroups": ["RESIDENTIAL"] }` |
| `urls` | Array | List of Anker product page URLs to scrape reviews from. | `[]` |

#### Example Input

```json
{
  "item_limit": 30,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  },
  "urls": [
    "https://www.anker.com/products/a1289?variant=41974285041814&collections_power-banks-for-apple=undefined&Sort_by=Recommended#reviews-jdgm"
  ]
}
```

### Features

- **Efficient Review Extraction**: Scrapes detailed review data, including product IDs, ratings, reviewer names, and review text.
- **Customizable Limits**: Set a maximum number of reviews to scrape per URL using the `item_limit` parameter.
- **Proxy Support**: Utilizes Apify's proxy configuration for reliable and anonymous scraping.
- **Structured Output**: Returns clean, JSON-formatted review data for easy integration into downstream processes.
- **Error Handling**: Robust handling of page errors and timeouts to ensure consistent performance.

### Output

The Actor outputs an array of review objects in JSON format. Each object contains detailed review information.

#### Example Output

```json
[
  {
    "product_id": "7531496243350",
    "review_id": "3c3a9de2-b89d-4ddb-ab8e-0997e712b9a5",
    "product_title": "Anker 737 Power Bank (PowerCore 24K)",
    "product_url": "/products/a1289",
    "verified_buyer": "true",
    "rating": "5",
    "timestamp": "N/A",
    "reviewer_name": "Hellonotpompom",
    "reviewer_location": "US",
    "title": "It's okay",
    "body": "I like it so far 14 days not bad for now, want a long term investment on this power banks,\n 2 pounds not bad its heavy for other people and yes it comes with a small type c cable and a small bag for it.When ordering from anker website and you buy an item from them and processing takes like 2 to 4 days call them or email and put your cerial number it will go throught customer service it will help you ship faster if your having trouble buying from them, okay smiley face bye."
  },
  {
    "product_id": "7531496243350",
    "review_id": "ebaf6ed3-ec2c-4361-ad0b-0d60de5cc863",
    "product_title": "Anker 737 Power Bank (PowerCore 24K)",
    "product_url": "/products/a1289",
    "verified_buyer": "false",
    "rating": "5",
    "timestamp": "N/A",
    "reviewer_name": "Bd2",
    "reviewer_location": "N/A",
    "title": "No cable with it",
    "body": "I love the item however I did not get the usb-c to usb -c with it. Any chance you can send me it please and thank you."
  }
]
```

### Use Cases

- **Market Research**: Analyze customer sentiment and feedback for Anker products to inform product development or marketing strategies.
- **Competitor Analysis**: Compare review ratings and comments across different Anker products to identify strengths and weaknesses.
- **E-commerce Insights**: Monitor verified buyer reviews to assess product quality and customer satisfaction.
- **Data Aggregation**: Collect review data for integration into business intelligence tools or dashboards.

### Support

For bug reports or custom needs, please contact us at **support@getdataforme.com** or use our contact form: <https://getdataforme.com/contact/>.\
Make sure to include a clear subject line in your message, such as "Anker Reviews Scraper Support."

Thank you for using the Anker Reviews Scraper!

# Actor input Schema

## `urls` (type: `array`):

Urls to scrape from

## `item_limit` (type: `integer`):

The maximum number of items to scrape.

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

Specifies proxy servers that will be used by the scraper in order to hide its origin.

## Actor input object example

```json
{
  "urls": [
    "https://www.anker.com/products/a1289?variant=41974285041814&collections_power-banks-for-apple=undefined&Sort_by=Recommended#reviews-jdgm"
  ],
  "item_limit": 30,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# 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 = {
    "urls": [
        "https://www.anker.com/products/a1289?variant=41974285041814&collections_power-banks-for-apple=undefined&Sort_by=Recommended#reviews-jdgm"
    ],
    "item_limit": 30,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("getdataforme/anker-reviews-scraper").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 = {
    "urls": ["https://www.anker.com/products/a1289?variant=41974285041814&collections_power-banks-for-apple=undefined&Sort_by=Recommended#reviews-jdgm"],
    "item_limit": 30,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("getdataforme/anker-reviews-scraper").call(run_input=run_input)

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

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

```

## CLI example

```bash
echo '{
  "urls": [
    "https://www.anker.com/products/a1289?variant=41974285041814&collections_power-banks-for-apple=undefined&Sort_by=Recommended#reviews-jdgm"
  ],
  "item_limit": 30,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call getdataforme/anker-reviews-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=getdataforme/anker-reviews-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Anker Reviews Scraper",
        "description": "The Anker Reviews Scraper extracts customer reviews from Anker product pages, delivering detailed data like ratings, reviewer names, and comments. With customizable limits and proxy support, it’s perfect for market research and e-commerce insights. Get structured JSON output for easy analysis.",
        "version": "0.0",
        "x-build-id": "dtgrQ8LCxtJkXi1Kn"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/getdataforme~anker-reviews-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-getdataforme-anker-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/getdataforme~anker-reviews-scraper/runs": {
            "post": {
                "operationId": "runs-sync-getdataforme-anker-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/getdataforme~anker-reviews-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-getdataforme-anker-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": {
                    "urls": {
                        "title": "Anker Product Urls",
                        "type": "array",
                        "description": "Urls to scrape from",
                        "default": [
                            "https://www.anker.com/products/a1289?variant=41974285041814&collections_power-banks-for-apple=undefined&Sort_by=Recommended#reviews-jdgm"
                        ],
                        "items": {
                            "type": "string"
                        }
                    },
                    "item_limit": {
                        "title": "Max_limit",
                        "type": "integer",
                        "description": "The maximum number of items to scrape.",
                        "default": 30
                    },
                    "proxyConfiguration": {
                        "title": "Proxy configuration",
                        "type": "object",
                        "description": "Specifies proxy servers that will be used by the scraper in order to hide its origin.",
                        "default": {
                            "useApifyProxy": true,
                            "apifyProxyGroups": [
                                "RESIDENTIAL"
                            ]
                        }
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
