# G2 Reviews Scraper (`magicfingers/g2-reviews-scraper`) Actor

Scrape G2 product reviews, ratings, pros, cons, and product details. Extract reviewer information, scores, and comparisons.

- **URL**: https://apify.com/magicfingers/g2-reviews-scraper.md
- **Developed by:** [abdulrahman alrashid](https://apify.com/magicfingers) (community)
- **Categories:** Other
- **Stats:** 118 total users, 7 monthly users, 100.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?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## G2 Reviews Scraper

Extract software reviews, product data, category listings, comparisons, and search results from [G2.com](https://www.g2.com).

### What does G2 Reviews Scraper do?

This Actor scrapes G2.com to extract structured data including:

- **Product Reviews** — reviewer name, job title, company size, industry, overall rating, sub-ratings, review text (likes/dislikes/recommendations), date, verified status, helpful votes
- **Product Information** — product name, description, overall rating, total reviews, category, pricing plans, features list, pros/cons summary
- **Category Listings** — all products in a G2 category (e.g., "Best CRM Software") with rankings, ratings, and review counts
- **Product Comparisons** — competitor/alternative products with ratings and descriptions
- **Search Results** — find products by name with full metadata

### Why use this scraper?

- **Resilient selectors** — uses multiple fallback CSS selectors per data point, so it keeps working when G2 updates their layout
- **Anti-bot handling** — user-agent rotation, session management, request delays, and proxy support built in
- **Browser fallback** — CheerioCrawler for speed, with optional PlaywrightCrawler for sites that block HTTP requests
- **Smart pagination** — automatically follows pagination up to your configured limits
- **Review filtering** — filter by star rating, company size, and date range
- **Clean JSON output** — every record is typed and normalized with consistent field names

### Input Configuration

| Field | Type | Default | Description |
|-------|------|---------|-------------|
| `mode` | string | `reviews` | What to scrape: `reviews`, `product`, `category`, `comparison`, or `search` |
| `startUrls` | array | — | G2 URLs to scrape |
| `searchQuery` | string | — | Product name to search (only for `search` mode) |
| `maxReviews` | integer | `100` | Max reviews per product (0 = unlimited) |
| `maxProducts` | integer | `50` | Max products from category/search results |
| `filterStarRating` | array | `[]` | Filter reviews by star rating (e.g., `[4, 5]`) |
| `filterCompanySize` | string | — | Filter by company size: `small-business`, `mid-market`, `enterprise` |
| `filterDateFrom` | string | — | Only reviews from this date (YYYY-MM-DD) |
| `filterDateTo` | string | — | Only reviews up to this date (YYYY-MM-DD) |
| `includeProductInfo` | boolean | `true` | Attach product info to each review record |
| `scrapeComparisons` | boolean | `false` | Also scrape competitor/alternatives page |
| `useBrowser` | boolean | `false` | Use Playwright browser instead of HTTP requests |
| `maxConcurrency` | integer | `3` | Concurrent requests (keep low for G2) |
| `maxRequestRetries` | integer | `5` | Retries per failed request |
| `minDelayBetweenRequests` | integer | `2000` | Min delay between requests (ms) |
| `maxDelayBetweenRequests` | integer | `5000` | Max delay between requests (ms) |
| `proxyConfiguration` | object | Apify Residential | Proxy settings (residential recommended) |

### Usage Examples

#### Scrape reviews for a product

```json
{
    "mode": "reviews",
    "startUrls": [
        { "url": "https://www.g2.com/products/slack/reviews" }
    ],
    "maxReviews": 500,
    "filterStarRating": [4, 5],
    "includeProductInfo": true
}
```

#### Get product information only

```json
{
    "mode": "product",
    "startUrls": [
        { "url": "https://www.g2.com/products/slack" },
        { "url": "https://www.g2.com/products/microsoft-teams" }
    ]
}
```

#### Scrape a full category listing

```json
{
    "mode": "category",
    "startUrls": [
        { "url": "https://www.g2.com/categories/crm" }
    ],
    "maxProducts": 200
}
```

#### Search for products

```json
{
    "mode": "search",
    "searchQuery": "project management",
    "maxProducts": 25
}
```

#### Scrape reviews + comparisons

```json
{
    "mode": "reviews",
    "startUrls": [
        { "url": "https://www.g2.com/products/hubspot-crm/reviews" }
    ],
    "maxReviews": 200,
    "scrapeComparisons": true,
    "filterCompanySize": "mid-market"
}
```

### Output Examples

#### Review Record

```json
{
    "type": "review",
    "reviewerName": "John D.",
    "reviewerJobTitle": "Software Engineer",
    "reviewerCompanySize": "Mid-Market (51-1000 emp.)",
    "reviewerIndustry": "Information Technology",
    "overallRating": 4.5,
    "subRatings": {
        "Ease of Use": 5,
        "Quality of Support": 4,
        "Ease of Setup": 4.5
    },
    "reviewTitle": "Great team communication tool",
    "likes": "The integration ecosystem is fantastic. Slack connects with virtually every tool we use.",
    "dislikes": "Search could be better for finding old messages in large workspaces.",
    "recommendations": "Start with the free plan and upgrade when you need advanced features.",
    "fullReviewText": "...",
    "date": "2024-11-15",
    "isVerified": true,
    "helpfulVotes": 12,
    "reviewUrl": "https://www.g2.com/products/slack/reviews/abc123",
    "productName": "Slack",
    "productUrl": "https://www.g2.com/products/slack",
    "productOverallRating": 4.5,
    "productCategory": "Team Collaboration Software"
}
```

#### Product Record

```json
{
    "type": "product",
    "productName": "Slack",
    "productUrl": "https://www.g2.com/products/slack",
    "description": "Slack is the AI-powered platform for work...",
    "overallRating": 4.5,
    "totalReviews": 33241,
    "category": "Team Collaboration Software",
    "pricing": [
        { "planName": "Free", "price": "$0" },
        { "planName": "Pro", "price": "$7.25" }
    ],
    "features": ["Channels", "Direct Messages", "File Sharing"],
    "prosSummary": ["Easy to use", "Great integrations"],
    "consSummary": ["Can be distracting", "Search limitations"]
}
```

#### Category Product Record

```json
{
    "type": "categoryProduct",
    "categoryName": "Best CRM Software",
    "rank": 1,
    "productName": "Salesforce Sales Cloud",
    "productUrl": "https://www.g2.com/products/salesforce-sales-cloud",
    "overallRating": 4.4,
    "totalReviews": 20145,
    "description": "Build more pipeline, close more deals..."
}
```

### Tips for Best Results

1. **Use residential proxies** — G2 uses DataDome anti-bot protection. Residential proxies from Apify work best.
2. **Keep concurrency low** — 2-3 concurrent requests is recommended to avoid rate limiting.
3. **Enable browser mode if blocked** — Set `useBrowser: true` if HTTP requests keep failing.
4. **Start with small batches** — Test with `maxReviews: 10` first to verify selectors work.
5. **Check date filters** — Use `filterDateFrom` and `filterDateTo` to scrape only recent reviews.

### Pricing

This Actor uses **Pay-Per-Event** pricing at **$0.40 per 1,000 results** ($0.0004 per result). You only pay for the data you get. Platform compute costs apply separately.

### Limitations

- G2 employs DataDome anti-bot protection that may occasionally block requests despite proxy rotation
- Review sub-ratings availability depends on whether reviewers filled them in
- Some product pages may have different layouts that affect data extraction
- Very old reviews might have different HTML structures

### Support

If you encounter issues or have questions, please open an issue on the Actor's GitHub page or reach out via Apify support.

# Actor input Schema

## `mode` (type: `string`):

What to scrape from G2.

## `startUrls` (type: `array`):

G2 URLs to scrape. Supports product pages (/products/...), review pages (/products/.../reviews), category pages (/categories/...), and comparison pages (/compare/...).

## `searchQuery` (type: `string`):

Product name to search for (only used in 'search' mode).

## `maxReviews` (type: `integer`):

Maximum number of reviews to scrape per product. Set 0 for unlimited.

## `maxProducts` (type: `integer`):

Maximum products to scrape from category or search results.

## `filterStarRating` (type: `array`):

Filter reviews by star rating. Leave empty for all ratings.

## `filterCompanySize` (type: `string`):

Filter reviews by reviewer's company size.

## `filterDateFrom` (type: `string`):

Only scrape reviews from this date onwards (YYYY-MM-DD format).

## `filterDateTo` (type: `string`):

Only scrape reviews up to this date (YYYY-MM-DD format).

## `includeProductInfo` (type: `boolean`):

When scraping reviews, also include full product information in each review record.

## `scrapeComparisons` (type: `boolean`):

When scraping a product, also scrape its comparison/alternatives page.

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

Proxy settings. G2 has strong anti-bot protection - residential proxies recommended.

## `maxRequestRetries` (type: `integer`):

How many times to retry a failed request.

## `requestTimeoutSecs` (type: `integer`):

Timeout for each page request in seconds.

## `minDelayBetweenRequests` (type: `integer`):

Minimum delay between requests in milliseconds to avoid rate limiting.

## `maxDelayBetweenRequests` (type: `integer`):

Maximum delay between requests in milliseconds.

## `useBrowser` (type: `boolean`):

Use a real browser instead of HTTP requests. Slower but handles JavaScript-rendered content and reduces blocking. Enable this if you're getting blocked.

## `maxConcurrency` (type: `integer`):

Maximum number of concurrent requests.

## Actor input object example

```json
{
  "mode": "reviews",
  "startUrls": [
    {
      "url": "https://www.g2.com/products/slack/reviews"
    }
  ],
  "maxReviews": 5,
  "maxProducts": 50,
  "filterStarRating": [],
  "filterCompanySize": "",
  "includeProductInfo": true,
  "scrapeComparisons": false,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  },
  "maxRequestRetries": 5,
  "requestTimeoutSecs": 60,
  "minDelayBetweenRequests": 2000,
  "maxDelayBetweenRequests": 5000,
  "useBrowser": false,
  "maxConcurrency": 3
}
```

# 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 = {
    "mode": "reviews",
    "startUrls": [
        {
            "url": "https://www.g2.com/products/slack/reviews"
        }
    ],
    "searchQuery": "",
    "maxReviews": 5,
    "maxProducts": 50,
    "filterDateFrom": "",
    "filterDateTo": "",
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("magicfingers/g2-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 = {
    "mode": "reviews",
    "startUrls": [{ "url": "https://www.g2.com/products/slack/reviews" }],
    "searchQuery": "",
    "maxReviews": 5,
    "maxProducts": 50,
    "filterDateFrom": "",
    "filterDateTo": "",
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("magicfingers/g2-reviews-scraper").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 '{
  "mode": "reviews",
  "startUrls": [
    {
      "url": "https://www.g2.com/products/slack/reviews"
    }
  ],
  "searchQuery": "",
  "maxReviews": 5,
  "maxProducts": 50,
  "filterDateFrom": "",
  "filterDateTo": "",
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call magicfingers/g2-reviews-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,magicfingers/g2-reviews-scraper"
        }
    }
}

```

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/uYgJWzyc8nHFpnbR5/builds/fsaZG060XwMkkxgnG/openapi.json
