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

From $1/1K 💰 Scrape G2 product reviews by URL or slug. Export JSON or CSV with rating, pros, cons, NPS and 45+ fields. Sort, filter, up to 30K/run. From $1/1K. Competitive intel & AI workflows.

- **URL**: https://apify.com/azzouzana/g2-scraper.md
- **Developed by:** [Azzouzana](https://apify.com/azzouzana) (community)
- **Categories:** SEO tools, Automation, Integrations
- **Stats:** 186 total users, 63 monthly users, 99.4% runs succeeded, 7 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $1.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use 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 Product Reviews Scraper PRO

**⚡ Super fast • 💰 Low-cost • 📊 Structured • 📈 Built for scale**  
Collect published product reviews from [G2](https://www.g2.com) for competitive intelligence, sentiment pipelines, or dashboards. Point the actor at a product, choose how results should be ordered, and cap how many reviews you need - sky is the limit!

---

#### ✅ What you get

Pull detailed review rows aligned with what analysts expect from G2: scores, prose responses, reviewer context, categories with direct links, optional video flags, and stable review URLs. Use **any public product URL** you would open in the browser - or just paste the **product slug**.

The actor is built with engineering excellence in mind:

- **Flexible product input:** Full `g2.com` product URLs (reviews tab, compare pages, single-review pages, regional sites) **or** a bare slug such as `hubspot-marketing-hub`.
- **Comprehensive, rich output:** 40+ data points per review - more than you’d typically need.
- **Multiple sort options:** Most recent, most helpful, highest / lowest rated, and G2 default.
- **Volume control:** Set how many reviews to collect per product (up to **30,000** per run, within plan limits).
- **Optional filters:** Star rating condition (`minimum` / `maximum`) + star value (1–5), and “published within the last N days” to narrow the window.
- **Lightning fast:** Give it a spin & see!

> More features are coming soon: category's products scraping, G2 search pages scraping & much more. Stay tuned!
---

### 🛠️ How to use this actor

1. [Create a free Apify account](https://apify.com/sign-up) if you do not have one.  
2. Open the actor, fill in **Input**, and start a run.  
3. Download results from the **Dataset** tab (JSON, CSV, or via API).  

**🔗 Product URL or slug**

- Full URLs, for example:  
  `https://www.g2.com/products/slack/reviews`  
  `https://www.g2.com/products/hubspot-marketing-hub/reviews/12345678`  
  `https://fr.g2.com/products/clickup`  
- Or **slug only:** `slack`, `zendesk-for-customer-service`, etc.

**🔀 Sort order (`sortOrder`)**

| In the actor UI | `sortOrder` value |
| :--------------: | :----------------: |
| G2 default | `g2_default` |
| Most recent | `most_recent` |
| Most helpful | `most_helpful` |
| Highest rated | `highest_rated` |
| Lowest rated | `lowest_rated` |

Default: **`most_recent`**.

**🎚️ Limits & filters**

- **`maxItems`** - Maximum reviews to collect for the product (minimum **5**, maximum **30,000** on input; effective cap may be lower on free plans).  
- **`starFilterCondition`** (optional) - Choose `minimum` (at or above) or `maximum` (at or below).  
- **`starFilterValue`** (optional) - Star value used by the selected condition (1–5).  
- Set **both** `starFilterCondition` and `starFilterValue` to apply a star filter; if one is missing, star filtering is skipped.
- **`lookbackDays`** (optional) - Only reviews published within the last *N* days.

**Star filter examples**

- `starFilterCondition=minimum` + `starFilterValue=4` → include 4-star and 5-star reviews.
- `starFilterCondition=maximum` + `starFilterValue=2` → include 1-star and 2-star reviews.

---

### 🆓 Free tier limitations

We want you to see how this actor works before you commit. To keep things fair for everyone, the **free tier** usually includes these trial limits:

- **Sample data:** up to **5 reviews** per run - enough to check data quality.  
- **Daily cap:** **5 runs** per calendar day (UTC).  
- **Between runs:** at least **1 minute** before you can start another run.

> Free-user limits can change with platform load and your intended usage. [**Upgrade to a paid plan**](https://apify.com/pricing?fpr=cbgdsf) for unlimited extraction!

---

### 📥 Input

| Field | Type | Description |
| :-----: | :----: | :-----------: |
| `productUrl` | `string` | Any `g2.com` product URL that contains `/products/{slug}/`, or the product slug alone. |
| `sortOrder` | `string` | How reviews are ordered (see table above). |
| `maxItems` | `integer` | Max reviews to collect (up to 30,000 per run). |
| `starFilterCondition` | `string` | Optional. `minimum` or `maximum`. Must be paired with `starFilterValue` to apply star filtering. |
| `starFilterValue` | `integer` | Optional. Star threshold 1–5 used with `starFilterCondition`. |
| `lookbackDays` | `integer` | Optional. Only reviews published within the last N days. |

---

### 📦 Output

Each **dataset item** is one review, and has this format:

```json
{
	"reviewId": "7083825",
	"categories": [
		{
			"id": 36,
			"name": "Marketing Automation",
			"url": "https://www.g2.com/categories/36"
		}
	],
	"company_segment": 179,
	"company_segment_label": "Small-Business",
	"contract_length": "1 Year",
	"contract_length_weight": 12,
	"country": "United States",
	"discount": null,
	"discount_weight": null,
	"ease_of_admin": 7,
	"ease_of_doing_business_with": 6,
	"ease_of_setup": 7,
	"ease_of_use": 7,
	"hate_theme_humanized": "Uiux",
	"helpful": 0,
	"love_theme_humanized": "Usability",
	"meets_requirements": 7,
	"nps": 9,
	"nps_score": 5,
	"price": 6,
	"product_id": 364,
	"product_name": "HubSpot Marketing Hub",
	"productSlug": "hubspot-marketing-hub",
	"published": true,
	"published_at": "2026-04-16T16:12:41.189-05:00",
	"quality_of_support": 3,
	"rating": 4.5,
	"response_type": "text",
	"review_source": "g2gives",
	"reviewUrl": "https://www.g2.com/products/hubspot-marketing-hub/reviews/7083825",
	"security_confidence": 7,
	"security_importance": 7,
	"service_location": null,
	"source_type": "g2gives",
	"status": "approved",
	"submitted_at": "2022-09-08T10:23:10.031-05:00",
	"switched_from_other_product": false,
	"switched_from_products": [],
	"switched_reason": null,
	"switching_theme": null,
	"switching_theme_humanized": null,
	"switching_themes": null,
	"title": "Best marketing automation platform out there ",
	"user_name": "Anna Kate M.",
	"video_review_submitted_at": null,
	"videoIncluded": false,
	"whatDoYouDislike": "The customer support has seriously gone downhill.",
	"whatDoYouLike": "The AI tools have been a great addition and the email marketing analytics and email health is top tier.",
	"whatProblemsOrBenefits": "They allow our clients to gain valuable insights and analytics while also streamlining their processes. Best marketing automation platform out there"
}
````

### 📬 Contact & Support

**Need a custom solution? Have a feature request?**\
We'd love to hear from you!

- 💬 **Discord**: `@azzouzana`
- 📧 **Email**: <labs@azzouzana.com>

***

### 🔍 SEO keywords

G2 scraper, G2 reviews scraper, G2 product reviews, scrape G2 reviews, software reviews data, B2B reviews API, G2 dataset, Apify G2, competitor reviews, review sentiment data, G2 CSV export, G2 JSON export

***

### ⚖️ Disclaimer

This actor is an **independent tool**, not affiliated with, endorsed by, or sponsored by G2 or its affiliates. All trademarks belong to their respective owners.

# Actor input Schema

## `productUrl` (type: `string`):

Any g2.com product page whose path includes /products/{slug}/ (reviews, compare, single review, etc.), or the product slug alone (e.g. hubspot-marketing-hub).

## `sortOrder` (type: `string`):

Sorting options: Most recent, Most helpful, Highest rated, Lowest rated.

## `maxItems` (type: `integer`):

Maximum reviews to collect (capped at 30000).

## `starFilterCondition` (type: `string`):

Choose whether to include reviews with ratings at or above (minimum) or at or below (maximum) a selected star value.

## `starFilterValue` (type: `integer`):

Star value used with the selected condition (1–5). Example: minimum + 4 means 4 stars and above.

## `lookbackDays` (type: `integer`):

Only reviews with published\_at within this many days. Omit or 0 for all time.

## Actor input object example

```json
{
  "productUrl": "https://www.g2.com/products/hubspot-marketing-hub/reviews",
  "sortOrder": "most_recent",
  "maxItems": 2000
}
```

# Actor output Schema

## `reviews` (type: `string`):

One dataset row per G2 review (scores, text, reviewer context, categories, review URL).

# 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 = {
    "productUrl": "https://www.g2.com/products/hubspot-marketing-hub/reviews",
    "maxItems": 2000
};

// Run the Actor and wait for it to finish
const run = await client.actor("azzouzana/g2-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 = {
    "productUrl": "https://www.g2.com/products/hubspot-marketing-hub/reviews",
    "maxItems": 2000,
}

# Run the Actor and wait for it to finish
run = client.actor("azzouzana/g2-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 '{
  "productUrl": "https://www.g2.com/products/hubspot-marketing-hub/reviews",
  "maxItems": 2000
}' |
apify call azzouzana/g2-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "G2 Reviews Scraper",
        "description": "From $1/1K 💰 Scrape G2 product reviews by URL or slug. Export JSON or CSV with rating, pros, cons, NPS and 45+ fields. Sort, filter, up to 30K/run. From $1/1K. Competitive intel & AI workflows.",
        "version": "0.0",
        "x-build-id": "Jia1xxgeIRIQYkQ9P"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/azzouzana~g2-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-azzouzana-g2-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/azzouzana~g2-scraper/runs": {
            "post": {
                "operationId": "runs-sync-azzouzana-g2-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/azzouzana~g2-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-azzouzana-g2-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": [
                    "productUrl"
                ],
                "properties": {
                    "productUrl": {
                        "title": "Product URL or slug",
                        "type": "string",
                        "description": "Any g2.com product page whose path includes /products/{slug}/ (reviews, compare, single review, etc.), or the product slug alone (e.g. hubspot-marketing-hub)."
                    },
                    "sortOrder": {
                        "title": "Sort order",
                        "enum": [
                            "g2_default",
                            "most_recent",
                            "most_helpful",
                            "highest_rated",
                            "lowest_rated"
                        ],
                        "type": "string",
                        "description": "Sorting options: Most recent, Most helpful, Highest rated, Lowest rated.",
                        "default": "most_recent"
                    },
                    "maxItems": {
                        "title": "Max reviews",
                        "minimum": 50,
                        "maximum": 30000,
                        "type": "integer",
                        "description": "Maximum reviews to collect (capped at 30000).",
                        "default": 2000
                    },
                    "starFilterCondition": {
                        "title": "Star filter condition (optional)",
                        "enum": [
                            "minimum",
                            "maximum"
                        ],
                        "type": "string",
                        "description": "Choose whether to include reviews with ratings at or above (minimum) or at or below (maximum) a selected star value."
                    },
                    "starFilterValue": {
                        "title": "Star filter value (optional)",
                        "minimum": 1,
                        "maximum": 5,
                        "type": "integer",
                        "description": "Star value used with the selected condition (1–5). Example: minimum + 4 means 4 stars and above."
                    },
                    "lookbackDays": {
                        "title": "Published within last N days (optional)",
                        "minimum": 1,
                        "maximum": 3650,
                        "type": "integer",
                        "description": "Only reviews with published_at within this many days. Omit or 0 for all time."
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
