# G2 Software Reviews & Product Intelligence (`mrdoe/g2-software-reviews-scraper`) Actor

Collect structured software product and review data from supported, authorized sources (JSON/CSV import or a licensed API) for SaaS research, competitor intelligence, product discovery, and customer feedback analysis.

- **URL**: https://apify.com/mrdoe/g2-software-reviews-scraper.md
- **Developed by:** [MrDoe](https://apify.com/mrdoe) (community)
- **Categories:** Business
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 16.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.90 / 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/actors/running/actors-in-store.md#pay-per-event

## 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

## G2 Software Reviews & Product Intelligence

Turn software product and review data you already have rights to use — a JSON or CSV export, or your own licensed API — into one clean, consistent dataset: products, reviews, categories, competitors, and a rule-based review-sentiment summary for each product.

### Important: this Actor does not scrape G2 live

G2's terms of service prohibit scraping, and the site is bot-protected. This Actor does **not** bypass that, and it does not include a bundled G2 integration — G2 has no public API to integrate with. Instead, it's a normalization engine for data you're already authorized to use:

- **Your own JSON or CSV export** (from G2 Sell, a data export you purchased, a partner feed, or anything else you have rights to).
- **A licensed/authorized API** you already have access to — this Actor's `authorized_api` source is a generic client you point at your own endpoint; it has no special G2 access of its own.

If you need live G2 data, you need your own authorized access to it (e.g. a G2 Sell / G2 partner data agreement); this Actor then normalizes and structures whatever you feed it.

### What it does

- Reads product, review, category, and competitor records from your import file or API.
- Normalizes them into one consistent schema regardless of source.
- Deduplicates records (by ID when available, by content fingerprint otherwise).
- Computes a free, rule-based review-sentiment summary per product — common pros/cons, frequent words in positive vs. negative reviews, and a rating-based sentiment split. No AI/LLM call, no extra cost.
- Reports exactly how many rows were collected, skipped (with the reason), or failed to normalize.

### Supported data sources

| Source           | What it needs                        | Notes                                                                                                                   |
| ---------------- | ------------------------------------ | ----------------------------------------------------------------------------------------------------------------------- |
| `json_import`    | `importUrl` pointing to a JSON file  | Bare array of records, or `{ "records": [...] }`                                                                        |
| `csv_import`     | `importUrl` pointing to a CSV file   | Header row = field names; a `recordType` column is required on every row                                                |
| `authorized_api` | `apiBaseUrl` (+ optional `apiToken`) | Generic client against **your own** authorized endpoint — see [Authorized API contract](#authorized-api-contract) below |

Every row/object from any source needs an explicit `recordType`: `product`, `review`, `category`, or `competitor`. There's no reliable way to guess this from a flat CSV row, so it's required rather than inferred.

### What data you can extract

- **Products**: name, URL, vendor, category, description, average rating, review count, pricing (when your source has it), competitors.
- **Reviews**: title, text, rating, date, reviewer role/company size, pros, cons, verified status.
- **Categories**: name, URL, product count.
- **Competitors**: per-product competitor name, URL, relationship type.
- **Review analysis** *(computed, not from the source)*: common pros/cons, frequent words in positive/negative reviews, rating-bucket sentiment split. Clearly labeled `recordType: "review_analysis"` and `analysisMethod` so it's never confused with source-provided data.

### Input parameters

| Field                        | Type            | Default       | Notes                                                                  |
| ---------------------------- | --------------- | ------------- | ---------------------------------------------------------------------- |
| `source`                     | string          | `json_import` | `json_import`, `csv_import`, or `authorized_api`                       |
| `dataType`                   | string          | `all`         | Filter output to `products`, `reviews`, `categories`, or `competitors` |
| `importUrl`                  | string          | —             | Required for `json_import`/`csv_import`                                |
| `apiBaseUrl`                 | string          | —             | Required for `authorized_api`                                          |
| `apiToken`                   | string (secret) | —             | Bearer token for `authorized_api`; never logged or output              |
| `productUrls` / `productIds` | array           | `[]`          | Keep only these products; empty = keep all                             |
| `category`                   | string          | —             | Case-insensitive substring filter on product category                  |
| `searchQuery`                | string          | —             | Passed to `authorized_api`'s search param; ignored by import sources   |
| `maxProducts`                | integer         | `50`          | Caps distinct products in scope                                        |
| `maxReviewsPerProduct`       | integer         | `20`          | Caps reviews kept per product                                          |
| `maxItems`                   | integer         | `500`         | Overall output cap across all record types; `0` = no cap               |
| `includeReviewText`          | boolean         | `true`        | Keep `reviewTitle`/`reviewText`                                        |
| `includePricing`             | boolean         | `true`        | Keep `pricingModel`/`pricingDetails`                                   |
| `includeCompetitors`         | boolean         | `true`        | Keep competitor records and the `competitors` field                    |
| `includeAnalysis`            | boolean         | `true`        | Add the computed `review_analysis` record per product                  |

### Example input

```json
{
    "source": "json_import",
    "importUrl": "https://your-domain.example/g2-export.json",
    "dataType": "all",
    "maxProducts": 20,
    "maxReviewsPerProduct": 10
}
```

A full example file is in [`examples/input.json`](examples/input.json) (JSON) and [`examples/input.csv`](examples/input.csv) (CSV).

### Example output

```json
{
    "recordType": "review_analysis",
    "productId": "acme-crm",
    "reviewCountAnalyzed": 2,
    "commonPros": [
        { "text": "fast setup", "count": 1 },
        { "text": "reliable support", "count": 1 }
    ],
    "commonCons": [
        { "text": "buggy mobile app", "count": 1 },
        { "text": "slow support", "count": 1 }
    ],
    "sentimentSummary": { "ratedReviewCount": 2, "averageRating": 3.5, "positiveCount": 1, "negativeCount": 1 },
    "analysisMethod": "rule-based: word/phrase frequency on pros, cons and review text, plus rating-bucket sentiment. No machine learning or LLM involved."
}
```

The full real output from running [`examples/input.json`](examples/input.json) through this Actor is in [`examples/output.json`](examples/output.json) — not a mock, the actual dataset rows from a real local run.

### Authorized API contract

If you choose `authorized_api`, this Actor calls `GET {apiBaseUrl}/records?page=&searchQuery=` with `Authorization: Bearer {apiToken}`, expecting either a bare JSON array or `{ "records": [...], "nextPage": <number|null> }`. This is this Actor's one assumed contract — adapt your endpoint to it, or use `json_import`/`csv_import` instead if your source doesn't match.

### Usage examples

**Python (Apify API client)**

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_API_TOKEN>")
run = client.actor("YOUR_USERNAME/g2-software-reviews-product-intelligence").call(run_input={
    "source": "json_import",
    "importUrl": "https://your-domain.example/g2-export.json",
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["recordType"], item.get("productName"))
```

**JavaScript (apify-client)**

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

const client = new ApifyClient({ token: '<YOUR_API_TOKEN>' });
const run = await client.actor('YOUR_USERNAME/g2-software-reviews-product-intelligence').call({
    source: 'json_import',
    importUrl: 'https://your-domain.example/g2-export.json',
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

**Apify API (HTTP)**

```bash
curl "https://api.apify.com/v2/acts/YOUR_USERNAME~g2-software-reviews-product-intelligence/run-sync-get-dataset-items?token=YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"source":"json_import","importUrl":"https://your-domain.example/g2-export.json"}'
```

### Pricing and compute cost

This Actor does lightweight JSON/CSV parsing and plain HTTP requests — no browser, no media processing — so compute cost per run is small and scales with file size, not runtime. Exact pay-per-event pricing is set in the Apify Console before publishing; it is not embedded in this README so it can't go stale. If you're using `authorized_api`, remember that API may have its own usage costs or rate limits on top of this Actor's own price.

### Data freshness and limitations

- Output is only as fresh and complete as your import file or authorized API — this Actor doesn't independently verify or refresh it against G2.
- `review_analysis` is a deterministic word/phrase-frequency and rating-bucket summary, not NLP or machine learning. It won't catch sarcasm, negation, or nuance the way a real sentiment model might.
- CSV import expects one `recordType` per row; it cannot represent nested structures CSV itself can't carry, beyond simple JSON-array cells for list fields like `pros`/`cons`.
- `authorized_api` only works against an endpoint matching this Actor's one assumed contract (see above) — it is not a universal API crawler.

### FAQ

**Does this scrape G2.com directly?** No. See [Important](#important-this-actor-does-not-scrape-g2-live) above.

**Can I use this without any G2 access at all?** Yes — any JSON/CSV file with the expected `recordType`-tagged rows works, regardless of where the data originally came from (as long as you have the rights to use it).

**What happens to malformed rows?** They're skipped, not dropped silently — the run's `SUMMARY` key-value record lists exactly how many were skipped and why.

**Is the review analysis AI-generated?** No — it's rule-based word/phrase frequency and rating buckets, explicitly labeled as such in `analysisMethod`.

### Responsible use

Only import or connect data you have the legal right to use. This Actor does not collect, infer, or output personal identifying information beyond what your source already includes (e.g. a reviewer's stated role/company size, not their identity). Do not use this Actor, or the data it outputs, in a way that violates G2's terms of service or the terms of whatever source you connect it to.

# Actor input Schema

## `source` (type: `string`):

json_import and csv_import read a file you provide via importUrl - no G2 access needed. authorized_api calls a licensed/authorized API you have your own access to (set apiBaseUrl and apiToken). This Actor does not scrape G2 live: G2's terms prohibit it and the site is bot-protected, so no bypass is implemented.

## `dataType` (type: `string`):

Which record type(s) to output. "all" keeps every record type present in the source.

## `importUrl` (type: `string`):

A URL to a JSON or CSV file you have the rights to use. Fetched once; not re-authenticated. See the README for the expected columns/structure.

## `apiBaseUrl` (type: `string`):

Base URL of the licensed/authorized API you already have access to. This Actor does not include a bundled G2 API integration - G2 has no public API - so this only works against a source you provide.

## `apiToken` (type: `string`):

Bearer token for the API above. Never logged or included in output records.

## `productUrls` (type: `array`):

Specific product URLs to keep, when the source record includes a productUrl. Leave empty to keep all products.

## `productIds` (type: `array`):

Specific product IDs to keep, when the source record includes a productId. Leave empty to keep all products.

## `category` (type: `string`):

Keep only records whose category matches this (case-insensitive, substring match).

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

Passed through to the authorized API's search parameter, if it supports one. Ignored by the import sources.

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

Maximum number of distinct products to include.

## `maxReviewsPerProduct` (type: `integer`):

Maximum number of review records kept per product.

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

Overall cap on how many records this run writes to the dataset, across all record types. Default is 5 for a free, quick test; raise it (or set 0 for no cap beyond the other limits above) for a real run.

## `includeReviewText` (type: `boolean`):

Keep the reviewTitle/reviewText fields on review records, when present in the source.

## `includePricing` (type: `boolean`):

Keep pricingModel/pricingDetails on product records, when present in the source.

## `includeCompetitors` (type: `boolean`):

Keep competitor records and the competitors field on product records, when present in the source.

## `includeAnalysis` (type: `boolean`):

For each product with at least one review, add one computed "review_analysis" record: common pros/cons, frequent words in positive/negative reviews, and a rating-based sentiment summary. Rule-based (word/phrase frequency), not AI - no paid API required.

## Actor input object example

```json
{
  "source": "json_import",
  "dataType": "all",
  "productUrls": [],
  "productIds": [],
  "maxProducts": 50,
  "maxReviewsPerProduct": 20,
  "maxItems": 5,
  "includeReviewText": true,
  "includePricing": true,
  "includeCompetitors": true,
  "includeAnalysis": true
}
```

# Actor output Schema

## `results` (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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("mrdoe/g2-software-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 = {}

# Run the Actor and wait for it to finish
run = client.actor("mrdoe/g2-software-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 '{}' |
apify call mrdoe/g2-software-reviews-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,mrdoe/g2-software-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/nTZ06Cf3iBqy8zsSx/builds/h5Rk5jWjedHvMQri7/openapi.json
