# G2 Reviews Scraper — Ratings, Role & Reputation Monitor (`bgfc97/g2-reviews-scraper`) Actor

🔥 Up to 20% OFF! Scrape G2 software reviews — rating, text, reviewer role & company size, sub-ratings, with cross-run reputation monitoring (new & negative-review alerts). Residential proxy built in. Perfect for competitive & market research. ⚡

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

## Pricing

from $2.00 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
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 Scraper

Give it a **G2 product** (a slug like `slack`, or any product/reviews URL) and get back the **product summary, its reviews, and ready-made competitive-intelligence analytics** — the reviewer's job title and company size, the star rating, the structured **pros / cons / problems solved**, the review id, the date, verified/incentivized flags, plus the **product's pricing & entry-level intelligence, pricing tiers, category breadcrumb, screenshot + video media gallery, integrations intelligence, sub-offerings/editions, G2 FAQ and top alternatives**. On top of the raw data it hands you two derived records no other G2 scraper ships: a **`reviewInsights`** analytics record per product (star-rating **sentiment**, **recurring liked/disliked themes** reviewers actually wrote, firmographic + provenance mix) and a **`comparison`** matrix ranking the product against its competitors. Built to beat the generic "G2 Product Reviews Scraper": richer firmographics, real per-review ids, built-in **filters and sort**, and an escalation path that keeps working when G2 throws up its anti-bot wall.

### Embrace everything — with or without proxy

G2 sits behind **Cloudflare + DataDome**, so most requests are challenged. This Actor escalates through **three tiers** and never fabricates data:

1. a **plain, free request first** (fast, no proxy);
2. the same request **through the Apify proxy** (undici) if it's blocked;
3. a **real stealth browser** (`playwright-extra` + stealth on Crawlee **PlaywrightCrawler**, `apify/actor-node-playwright-chrome`) behind **Apify Proxy — residential by default**, which solves the JS challenge and renders the page.

A product that stays blocked on every tier is reported as an **honest error record**, never faked. **You, the account running the Actor, pay for the proxy and compute** — we never skip the proxy to cut cost, and never route through the author's infrastructure.

### Input

```json
{
  "mode": "productReviews",
  "productUrlsOrSlugs": ["slack", "https://www.g2.com/products/asana/reviews"],
  "maxReviews": 100,
  "sortBy": "most_recent",
  "minRating": 4,
  "reviewsFrom": "2026-01-01",
  "companySizes": ["Mid-Market", "Enterprise"],
  "verifiedOnly": true,
  "proxyConfiguration": { "useApifyProxy": true, "apifyProxyGroups": ["RESIDENTIAL"] }
}
```

- `mode` — `productReviews` (product + reviews) or `productInfo` (summary only, **not charged**).
- `productUrlsOrSlugs` — one or more products: a bare slug, a product URL or a reviews URL. **Required.** Renamed products are handled automatically (the Actor detects G2's canonical slug from the page).
- `maxReviews` — reviews per product after filtering (1–50000, default 100).
- `sortBy` — `most_recent` (default), `most_helpful`, `highest_rated`, `lowest_rated`.
- **Review filters** — `minRating` / `maxRating` (1–5), `reviewsFrom` / `reviewsTo` (`YYYY-MM-DD`), `companySizes` (`Small-Business` / `Mid-Market` / `Enterprise`), `verifiedOnly`, `includeIncentivized`.
- `includeAlternatives` / `includeFaq` — add G2's top alternatives and FAQ to the product record (default on).
- `includeInsights` — emit the per-product **`reviewInsights`** analytics record (default on, `productReviews` mode, **not charged**).
- `includeComparison` — emit the run-level **`comparison`** matrix (default on, **not charged**).
- `trackChanges` — turn the run into a **reputation monitor**: diff today's G2 against the last run with the same `monitorKey` (see [Cross-run change monitoring](#-cross-run-change-monitoring-opt-in)). Adds the `monitored` / `first_seen` / `last_checked_prev` / `is_new_product` / `change_since` columns on products, `is_new_review` on reviews, and one free `monitor_summary`. Default **off** — zero monitor columns when off.
- `monitorKey` — a stable name tying successive monitoring runs together (e.g. `"slack-reputation-watch"`). Use the **same key + same products/filters** on each run. Only used when `trackChanges` is on; blank falls back to `"default"`. One key per saved product set — different keys keep independent histories.
- `proxyConfiguration` — proxy for the escalation tiers. Residential is used by default.

### Output

**One product record per product** (real sample, Asana):

```json
{
  "type": "product",
  "slug": "asana",
  "canonicalSlug": "asana",
  "name": "Asana",
  "url": "https://www.g2.com/products/asana/reviews",
  "productId": 278,
  "productUuid": "ababe6c4-cb0d-4e1c-9416-6d554f3dd3ff",
  "productType": "Software",
  "vendor": "Asana",
  "vendorId": 243,
  "vendorUrl": "https://www.g2.com/sellers/asana",
  "category": ["AI Agent Builders", "Project Collaboration", "Work Management", "..."],
  "overallRating": 4.4,
  "totalReviews": 14134,
  "ratingCount": 14134,
  "bestRating": 5,
  "worstRating": 0,
  "starDistribution": { "5_star_pct": 65, "4_star_pct": 27, "3_star_pct": 5, "2_star_pct": 0 },
  "categoryBreadcrumb": [
    { "position": 2, "name": "Project, Portfolio & Program Management Software", "url": "https://www.g2.com/categories/project-portfolio-program-management" },
    { "position": 3, "name": "Project Collaboration Software", "url": "https://www.g2.com/categories/project-collaboration" }
  ],
  "primaryCategory": "Project Collaboration Software",
  "offers": [
    { "name": "Personal", "price": 0, "currency": "USD" },
    { "name": "Starter", "price": 10.99, "currency": "USD" },
    { "name": "Advanced", "price": 24.99, "currency": "USD" }
  ],
  "pricing": {
    "available": true, "hasFreeTier": true, "entryLevelPrice": 0, "lowestPaidPrice": 10.99,
    "highestPrice": 24.99, "planCount": 3, "paidPlansCount": 2,
    "priceRange": { "min": 0, "max": 24.99, "currency": "USD" }, "currency": "USD",
    "pricingUrl": "https://www.g2.com/products/asana/pricing"
  },
  "g2Summary": { "pros": ["Easy Day-to-Day Use", "Organized Tasks And Projects", "..."], "cons": ["Steep Learning Curve", "Key Features Behind Paywall", "..."] },
  "featureMentions": { "liked": ["Easy Day-to-Day Use", "..."], "disliked": ["Steep Learning Curve", "..."] },
  "screenshots": [
    "https://images.g2crowd.com/uploads/attachment/file/83979/MyTasks-1600x900-EN_2x.png",
    "https://images.g2crowd.com/uploads/attachment/file/83978/WorkflowBuilder-1600x900-EN_2x.png"
  ],
  "media": {
    "screenshots": 6,
    "videos": 5,
    "items": [
      { "id": 83979, "type": "screenshot", "url": "https://images.g2crowd.com/uploads/attachment/file/83979/MyTasks-1600x900-EN_2x.png", "title": "My Tasks", "caption": "My Tasks is your one-stop-shop for viewing and prioritizing all of the work assigned to you." },
      { "id": 30482, "type": "video", "provider": "youtube", "embedUrl": "https://www.youtube.com/embed/CGJEbZrT-ls", "videoId": "CGJEbZrT-ls", "thumbnail": "https://i.ytimg.com/vi/CGJEbZrT-ls/maxresdefault.jpg", "title": "Asana product overview" }
    ]
  },
  "integrations": {
    "count": 98,
    "listed": ["box", "bynder", "campaign-monitor", "canva", "clockify"],
    "integrationsUrl": "https://www.g2.com/products/asana/integrations"
  },
  "subOfferings": [
    { "slug": "asana-goals", "name": "Asana Goals", "url": "https://www.g2.com/products/asana/subofferings/asana-goals/reviews", "description": "Asana Goals is a dedicated goal-tracking and management capability ..." },
    { "slug": "asana-intelligence-ai", "name": "Asana Intelligence (AI)", "url": "https://www.g2.com/products/asana/subofferings/asana-intelligence-ai/reviews", "description": "Asana Intelligence (AI) is a suite of artificial intelligence capabilities ..." }
  ],
  "pricingTiers": [
    { "name": "Personal", "price": 0, "unit": null },
    { "name": "Starter", "price": 10.99, "unit": "Per User Per Month" },
    { "name": "Advanced", "price": 24.99, "unit": "Per User Per Month" }
  ],
  "faq": [{ "question": "What is Asana, and what problem is it built to solve?", "answer": "Asana is a work platform where people and AI collaborate ..." }],
  "alternatives": [
    { "slug": "clickup", "name": "ClickUp", "rating": 4.5, "url": "https://www.g2.com/products/clickup/reviews" },
    { "slug": "wrike", "name": "Wrike", "rating": 4, "url": "https://www.g2.com/products/wrike/reviews" }
  ],
  "alternativesUrl": "https://www.g2.com/products/asana/competitors/alternatives",
  "logo": "https://images.g2crowd.com/uploads/product/image/.../asana.png"
}
```

**Then one record per review** (real sample):

```json
{
  "type": "review",
  "reviewId": "asana-review-13993454",
  "surveyResponseId": 13993454,
  "reviewerId": 10302234,
  "productSlug": "asana",
  "productId": 278,
  "rating": 4,
  "title": "User-Friendly Setup with Powerful Automation and Claude Integration",
  "reviewer": {
    "name": "Daniel B.",
    "role": "operations manager",
    "companySize": "Small-Business (50 or fewer emp.)",
    "companySegment": 179,
    "industry": null,
    "userType": "Current User",
    "avatar": "https://..."
  },
  "pros": "user friendly, easy to understand, set up is not complicated ...",
  "cons": "We're on the Starter tier. We leverage Teams as a portfolio, and I dislike ...",
  "problemsSolved": "we struggled with monitoring the progress of a project ...",
  "recommendations": null,
  "text": "Likes: ...\n\nDislikes: ...\n\nProblems solved: ...",
  "markdown": "## User-Friendly Setup ... — 4/5\n*Daniel B. · operations manager · ...*\n\n**What they like best:** ...",
  "date": "2026-11-05",
  "dateModified": "2026-11-05",
  "verified": true,
  "incentivized": true,
  "reviewSource": "Seller invite",
  "hasVideo": false,
  "dataSource": "html",
  "sourceUrl": "https://www.g2.com/products/asana/reviews/asana-review-13993454"
}
```

> With **`trackChanges`** on, each **product** row additionally carries `monitored` / `first_seen` / `last_checked_prev` / `is_new_product` / `change_since`, and each **review** row carries `monitored` / `first_seen` / `last_checked_prev` / `is_new_review` (+ a `change_since` if the review was edited), plus one free `monitor_summary` record per run. Off = these columns are **absent entirely**. See [Cross-run change monitoring](#-cross-run-change-monitoring-opt-in).

**Plus one `reviewInsights` record per product** — analytics derived from the reviews collected this run (not charged). Every number is computed from real data; sentiment is each review's own G2 star rating:

```json
{
  "type": "reviewInsights",
  "slug": "asana",
  "productName": "Asana",
  "basedOnReviews": 100,
  "averageRating": 4.25,
  "ratingDistribution": { "5": 40, "4": 48, "3": 8, "2": 3, "1": 1, "unrated": 0, "withHalfStar": 22 },
  "ratingDistributionPct": { "5": 40, "4": 48, "3": 8, "2": 3, "1": 1 },
  "sentimentBreakdown": { "basis": "g2-star-rating", "positive": 88, "neutral": 8, "negative": 4, "positivePct": 88, "neutralPct": 8, "negativePct": 4 },
  "firmographics": {
    "companySizeMix": { "Small-Business": 42, "Mid-Market": 38, "Enterprise": 20, "unknown": 0 },
    "companySizePct": { "Small-Business": 42, "Mid-Market": 38, "Enterprise": 20 },
    "topIndustries": [{ "name": "Computer Software", "count": 14 }, { "name": "Marketing and Advertising", "count": 9 }],
    "topRoles": [{ "name": "Project Manager", "count": 11 }, { "name": "Operations Manager", "count": 7 }]
  },
  "provenance": {
    "verified": 100, "verifiedPct": 100, "incentivized": 71, "incentivizedPct": 71, "organicPct": 29,
    "sourceMix": [{ "name": "Seller invite", "count": 64 }, { "name": "Organic", "count": 22 }, { "name": "G2 invite", "count": 14 }],
    "userTypeMix": { "Current User": 96, "Former User": 2, "unknown": 2 }
  },
  "recency": { "newest": "2026-11-05", "oldest": "2026-06-18", "spanDays": 140 },
  "media": { "withVideo": 0, "withVideoPct": 0 },
  "themes": {
    "g2FeatureMentions": { "liked": ["Easy Day-to-Day Use", "..."], "disliked": ["Steep Learning Curve", "..."] },
    "likedPhrases": [{ "phrase": "project management", "mentions": 18 }, { "phrase": "easy to navigate", "mentions": 7 }],
    "dislikedPhrases": [{ "phrase": "steep learning curve", "mentions": 6 }, { "phrase": "mobile app", "mentions": 4 }],
    "problemsSolvedPhrases": [{ "phrase": "team collaboration", "mentions": 9 }]
  }
}
```

**And one `comparison` matrix per run** — the product(s) you scraped ranked against each other and against the ratings on each product's G2 "Top-Rated Alternatives" cards (not charged). Each row is tagged with its data source so nothing is dressed up as more complete than it is:

```json
{
  "type": "comparison",
  "productCount": 5,
  "scrapedProducts": ["clickup", "asana"],
  "leader": { "slug": "clickup", "name": "ClickUp", "rating": 4.5 },
  "ratingHigh": 4.5, "ratingLow": 4, "ratingAverage": 4.34,
  "products": [
    { "slug": "clickup", "name": "ClickUp", "rating": 4.5, "totalReviews": 10800, "entryLevelPrice": 0, "hasFreeTier": true, "primaryCategory": "Project Management", "source": "scraped" },
    { "slug": "monday-com", "name": "monday AI Work Platform", "rating": 4.5, "totalReviews": null, "source": "g2-alternatives-widget" },
    { "slug": "asana", "name": "Asana", "rating": 4.4, "totalReviews": 14134, "entryLevelPrice": 0, "hasFreeTier": true, "primaryCategory": "Project Collaboration Software", "source": "scraped" }
  ]
}
```

### How it beats the generic "G2 Product Reviews Scraper"

| Capability | This Actor | Typical generic G2 scraper |
|---|---|---|
| Human-readable firmographics (`role` = real job title, `companySize` = full label) | ✅ | opaque integer segment codes |
| Numeric G2 `surveyResponseId` + `reviewerId` (stable keys) | ✅ | review text only |
| `companySegment` code (179/180/181) **and** label | ✅ | one or the other |
| Structured `pros` / `cons` / `problemsSolved` kept separate **and** combined `text` | ✅ | often merged or truncated on single-line answers |
| **LLM/RAG-ready `markdown`** per review | ✅ | ❌ |
| Provenance: `verified`, `incentivized`, `reviewSource`, `userType`, `hasVideo` | ✅ | partial |
| Authoritative dates (`date` + `dateModified`) from JSON-LD/tracking | ✅ | scraped label only |
| Product pricing `offers` + **entry-level intelligence** (`pricing`: free tier, entry price, range) | ✅ | raw list at best |
| Full `category` list, **category breadcrumb** + `primaryCategory`, `starDistribution` | ✅ | partial |
| Product **screenshot gallery** (`screenshots`) | ✅ | ❌ |
| Structured **media** gallery incl. **product demo videos** (`media`: YouTube embed, thumbnail, captions) | ✅ | ❌ screenshots-only, videos missed |
| **Integrations** intelligence (`integrations`: total count + named integrating products) | ✅ | ❌ |
| **Sub-offerings / editions** (`subOfferings`: each add-on module with its own reviews page) | ✅ | ❌ |
| **Pricing tiers with billing unit** (`pricingTiers`: edition name + price + "Per User Per Month") | ✅ | raw list at best |
| G2's AI pros/cons (`g2Summary` / `featureMentions`) | ✅ | ❌ |
| Product **FAQ** (Q\&A) | ✅ | ❌ |
| **Top alternatives / competitors** (slug, name, rating) | ✅ | separate paid add-on |
| **`reviewInsights` analytics** — star-rating sentiment, firmographic + provenance mix (verified/incentivized %, source mix) | ✅ | ❌ do-it-yourself |
| **Recurring theme extraction** — liked/disliked phrases reviewers actually wrote, counted | ✅ | ❌ |
| **`comparison` matrix** — product ranked vs competitors (ratings, price, free tier) | ✅ | ❌ |
| Built-in **filters** (star, date, company size, verified, incentivized) + **sort** | ✅ | download-then-filter |
| Handles **renamed products** (URL slug ≠ canonical slug) | ✅ | returns 0 reviews |
| JSON-LD **fallback** if review markup changes | ✅ | breaks silently |
| 3-tier escalation (plain → proxied → stealth browser), honest error on hard block | ✅ | one path, wall of 403s |
| **Cross-run reputation monitoring** — diffs vs. your last run: new reviews, **new NEGATIVE reviews**, rating ↑/↓, 1★ spike alert, new competitors (opt-in, free `monitor_summary`) | ✅ | ❌ re-scrape + diff by hand |

### 🔭 Cross-run change monitoring (opt-in)

Everything above is a single snapshot. Turn on **`trackChanges`** with a stable **`monitorKey`** and the Actor becomes a **reputation monitor**: each product's compact snapshot (average rating, total reviews, star distribution, pricing, competitors) **and a bounded index of the reviews seen this run** are saved to a **named key-value store** that *survives between runs* (the default dataset/store are wiped at the start of every run — a named store is not), so the **next run with the same key diffs today's G2 against the last look** and tells you exactly what moved. Run it on a **schedule** (daily/weekly) over the **same products + filters** and you get a live reputation change-feed instead of a pile of snapshots you'd diff by hand — which is the whole reason you re-run a reviews scraper.

**Each product then carries:**

- **`is_new_product`** — `true` if the monitor hadn't seen this product before, `false` if it had, `null` on the monitor's very first (baseline) run. Never guessed.
- **`change_since`** — `null` the first time a product is seen (no history to compare — honestly null, never an invented delta), otherwise an object with `since` (when it was last captured), `change_count`, `worst_severity` (`critical`/`negative`/`positive`/`neutral`), a one-line `headline`, and a `changes[]` array. Each change is a literal before→after (`type`, `field`, `severity`, `direction`, `from`, `to`, `delta`, `detail`), covering:
  - **Average star rating** — `rating_up` / `rating_down` (the headline reputation signal).
  - **Total review count** — `reviews_total_change`: how many reviews entered (or were removed from) G2 **overall** since last run, from the authoritative `AggregateRating` count — independent of the ~100-review anonymous paging cap.
  - **Star distribution** — `star_dist_change` per bucket, and **`one_star_spike`** (1★ share jumping ≥ 5 points = a **critical** reputation alert).
  - **Pricing** (`pricing_change`, `free_tier_change`), **integrations** count, **primary category**, and **competitors** in G2's own Top-Rated Alternatives (`new_competitor`, `competitor_left`, `competitor_rating_change`).
- **`first_seen`** / **`last_checked_prev`** / **`monitored`: true**.

**Each review then carries** `monitored`, `first_seen`, `last_checked_prev`, and **`is_new_review`** — `true` if that review id wasn't in the previous run for this product, `false` if it was, and `null` when the product itself is new to the monitor or on the baseline run (no prior review index yet — *not* a guess that every review is new; genuine per-review new-flagging starts on the second run for a product). A review a reviewer edited (rating/flag/title) also gets a `change_since`.

**And one free `monitor_summary` record** (`record_type: "monitor_summary"`, **never charged**) rolls the run up — **new NEGATIVE reviews first** (`new_negative_reviews`, worst star first), then `new_reviews_sample`, `rating_down` / `rating_up` (biggest movers), `review_count_growth` (how many reviews entered G2 per product), `one_star_spikes`, `new_competitors`, `new_products`, a coverage-gated `reviews_removed`, and a per-product `products` dashboard — plus `new_reviews_total`, `new_negative_reviews_total`, `changed_count`, `products_tracked` and `run_count`.

Real two-run example (verified against the live Apify SDK storage in two separate processes): run 1 recorded a baseline for Slack; a few days later run 2 re-checks it. Average rating slipped 4.5 → 4.2, the 1★ share spiked, 2 new reviews landed (one of them a 1★), and an old review dropped off a fully-covered set:

```json
// the Slack product row in run 2
{
  "type": "product", "slug": "slack", "name": "Slack", "overallRating": 4.2, "totalReviews": 34030,
  "monitored": true,
  "first_seen": "2026-11-19T06:00:00.000Z",
  "last_checked_prev": "2026-11-19T06:00:00.000Z",
  "is_new_product": false,
  "change_since": {
    "since": "2026-11-19T06:00:00.000Z",
    "change_count": 5,
    "worst_severity": "critical",
    "headline": "1★ share SPIKED 1% → 9% (+8 pt) — reputation alert",
    "changes": [
      { "type": "rating_down", "field": "overall_rating", "severity": "negative", "direction": "down", "from": 4.5, "to": 4.2, "delta": -0.3, "detail": "Average rating 4.5 → 4.2 (-0.3)" },
      { "type": "reviews_total_change", "field": "total_reviews", "severity": "neutral", "direction": "up", "from": 34000, "to": 34030, "delta": 30, "detail": "Total reviews 34000 → 34030 (+30)" },
      { "type": "star_dist_change", "field": "star_1_pct", "star": 1, "severity": "negative", "direction": "up", "from": 1, "to": 9, "delta": 8, "detail": "1★ share 1% → 9% (+8 pt)" },
      { "type": "one_star_spike", "field": "star_1_pct", "star": 1, "severity": "critical", "direction": "up", "from": 1, "to": 9, "delta": 8, "detail": "1★ share SPIKED 1% → 9% (+8 pt) — reputation alert" }
    ]
  }
}
```

```json
// the free monitor_summary row that run
{
  "record_type": "monitor_summary", "monitor_key": "slack-reputation-watch", "first_run": false,
  "since": "2026-11-19T06:00:00.000Z", "run_count": 2, "products_tracked": 1, "products_checked": 1,
  "new_product_count": 0, "changed_count": 1, "critical_change_count": 1,
  "new_reviews_total": 2, "new_negative_reviews_total": 1, "reviews_removed_total": 1,
  "new_negative_reviews": [ { "slug": "slack", "name": "Slack", "review_key": "s:8", "rating": 1, "date": "2026-11-22" } ],
  "new_reviews_sample": [ { "slug": "slack", "name": "Slack", "review_key": "s:7", "rating": 5, "date": "2026-11-21" } ],
  "rating_down": [ { "slug": "slack", "name": "Slack", "from": 4.5, "to": 4.2, "delta": -0.3 } ],
  "review_count_growth": [ { "slug": "slack", "name": "Slack", "from": 34000, "to": 34030, "delta": 30 } ],
  "one_star_spikes": [ { "slug": "slack", "name": "Slack", "from": 1, "to": 9, "delta": 8 } ],
  "reviews_removed": [ { "slug": "slack", "name": "Slack", "review_key": "s:9", "rating": 3, "date": "2026-10-01" } ],
  "products": [ { "slug": "slack", "name": "Slack", "rating": 4.2, "rating_delta": -0.3, "new_reviews": 2, "new_negative_reviews": 1, "worst_severity": "critical", "headline": "1★ share SPIKED 1% → 9% (+8 pt) — reputation alert", "coverage_full": true } ],
  "summary": "Monitor \"slack-reputation-watch\": 1 product(s) changed since last run — 1 NEW NEGATIVE review(s), 2 new review(s), 1 rating drop(s), 1 1★ spike(s)."
}
```

> **Honest & bounded.** The store holds **only** compact snapshots — a couple dozen scalar product fields G2 served this run, plus a per-review index of the essentials (id, stars, date, verified/incentivized flags, a title hash — never the review body, never anything invented). **`is_new_review` and `reviews_removed` respect G2's anonymous ~100-review paging cap**: per-review new-flagging runs only once a product has a prior index, and a review is reported **removed** only for a product whose reviews were **fully covered** this run (not capped by `maxReviews`, not filtered, not blocked, and G2 served every review it has) — otherwise a paged-out review is *not* mistaken for a removed one and a `reviews_removed_note` explains why. The `total_reviews` delta always reports true overall volume from the authoritative count. The store is **pruned by age** (products/reviews not re-seen in 400 days are dropped) and **hard-capped** (5,000 products; 5,000 reviews per product, most-recently-seen kept), so it can't grow without bound. We never invent G2's non-public signals (per-review sub-ratings, NPS, category rank are `null`, as everywhere in this Actor). Different `monitorKey`s keep independent histories — **use one key per saved product set**.

### Filters & sort

Filters are applied honestly to the parsed reviews, and `maxReviews` counts the **kept** reviews, so a run can page deep to fill a selective filter. With `sortBy: "most_recent"` the Actor **stops paging early** once it passes `reviewsFrom`. `companySizes` match G2's `Small-Business` / `Mid-Market` / `Enterprise` segments.

### Insights & comparison (derived, honest, not charged)

- **`reviewInsights`** is computed from the reviews this run collected — a **sample**, not necessarily the product's whole G2 history (`basedOnReviews` tells you how many). **Sentiment** is bucketed from each review's own G2 **star rating** (4–5★ positive, 3★ neutral, 1–2★ negative), labelled `basis: "g2-star-rating"` — it is not a guessed NLP sentiment. **Theme phrases** are bi/tri-grams counted across the reviews (each phrase at most once per review, minimum 2 mentions, stopwords and the product's own name removed); a dimension with nothing repeating comes back as an empty list rather than noise. Firmographic/provenance mixes are plain counts of the fields already on each review.
- **`comparison`** is assembled only from data actually scraped: the full product records collected this run plus the ratings G2 prints on each product's "Top-Rated Alternatives" cards. Rows from alternatives carry **only** the rating G2 showed (other fields `null`) and are tagged `source: "g2-alternatives-widget"`; scraped rows are tagged `source: "scraped"`. The Actor does **not** fetch or parse G2 `/compare/` pages (their current markup can't be reliably verified), so it never fabricates a side-by-side it didn't measure.

### Honesty notes (what G2's public reviews HTML does and does not contain)

- Fields returned come straight from the page: JSON-LD (`SoftwareApplication` + `AggregateRating` + `Offers` + `FAQPage` + `BreadcrumbList`), the per-review tracking JSON (`survey_response_id`, `reviewer_id`, `published_date`, `video_review`), the `elv-` review blocks, the product screenshot gallery (`images.g2crowd.com/uploads/attachment/file/…`), the **Media carousel** (`data-media-id` / `data-media-type` slides, with the `data-video` embed JSON for demo videos), the **Integrations** header (`"<Product> Integrations (N)"`), the **Sub-offerings** cards, the **Pricing Options** card, and the sidebar histogram / seller link.
- `integrations.count` is the authoritative total G2 prints; `integrations.listed` is the alphabetical **preview** of integrating-product slugs G2 server-renders on the page (a sample — the complete list lives at `integrationsUrl`). `media.items` is G2's own product gallery, so it captures **demo videos** a flat screenshot scrape misses; `subOfferings` and `pricingTiers` appear only when the product actually has them, and come back `[]` otherwise.
- G2 **retired** the old reviews-page *Seller Details* firmographics table (HQ / year founded / employees / ownership) and the numeric *criteria scores* (Ease of Use / Quality of Support … with category averages) from the current public template — they survive only in years-old snapshots — so this Actor does **not** claim them; where present on the live page they would be added, but the current `elv-` layout no longer exposes them.
- G2's **public** reviews pages do **not** expose per-review sub-ratings (Ease of Use / Quality of Support / …), NPS/likelihood-to-recommend, helpful-vote counts, per-review media/screenshots, switched-from data, or a numeric category-grid rank (those live in G2's internal survey API or on gated pages). We verified their absence against captured live G2 DOM. This Actor does **not** invent them — absent fields come back `null` rather than fabricated, and `hasVideo` is the only review-media signal G2 exposes.
- `industry` is populated only when G2 shows it on the review. Pagination follows `?page=N` until no new reviews appear, `maxReviews` is reached, or G2 stops serving more reviews anonymously (G2 caps anonymous paging at roughly 10 pages / ~100 reviews per product; collecting a product's entire multi-thousand review history is not possible without a logged-in session, so `maxReviews` beyond that will stop early — honestly, not by faking rows).

### Pricing

Pay-per-event: **one charge per review** (`review`). `productInfo` mode, the product record, and the derived `reviewInsights`, `comparison` and `monitor_summary` records are **not charged** — you only pay for the reviews themselves. Turning on **`trackChanges`** adds no charge: the monitor columns and `monitor_summary` are pure bookkeeping over reviews you already collected (in `productInfo` mode you get product-level reputation monitoring for free).

# Actor input Schema

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

What to return: 'productReviews' (product summary + its individual reviews) or 'productInfo' (just the product summary — rating, pricing, categories, FAQ, top alternatives — with no reviews and no per-review charge).

## `productUrlsOrSlugs` (type: `array`):

One or more G2 products. A bare slug ("slack"), a product URL ("https://www.g2.com/products/asana") or a reviews URL all work. Renamed products are handled automatically (the Actor detects G2's canonical slug from the page).

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

Maximum number of reviews to collect per product (across all pages, after filtering). Each collected review is one charged item.

## `sortBy` (type: `string`):

Order G2 returns reviews in. 'most_recent' lets the Actor stop early once a date filter is passed; 'most_helpful' is G2's own default.

## `minRating` (type: `integer`):

Keep only reviews rated at least this many stars (1-5). Leave empty for no minimum.

## `maxRating` (type: `integer`):

Keep only reviews rated at most this many stars (1-5). Leave empty for no maximum.

## `reviewsFrom` (type: `string`):

Keep only reviews published on or after this date (YYYY-MM-DD). With 'Most recent' sort the Actor stops paging once it passes this date.

## `reviewsTo` (type: `string`):

Keep only reviews published on or before this date (YYYY-MM-DD).

## `companySizes` (type: `array`):

Keep only reviews from these reviewer company segments. Empty = all.

## `verifiedOnly` (type: `boolean`):

Keep only reviews from G2 'Validated Reviewer' profiles.

## `includeIncentivized` (type: `boolean`):

When off, drop reviews G2 marks as incentivized (gift-card / reward reviews).

## `includeAlternatives` (type: `boolean`):

Add G2's 'Top-Rated Alternatives' (competitor products with slug, name and rating) to each product record.

## `includeFaq` (type: `boolean`):

Add G2's product FAQ (question/answer pairs) to each product record.

## `includeInsights` (type: `boolean`):

Emit one extra 'reviewInsights' record per product, computed from the reviews collected this run: star-rating sentiment breakdown, recurring liked/disliked phrases reviewers actually wrote, G2's own feature mentions, company-size / industry / role mix, and provenance analytics (verified %, incentivized %, source mix, current-vs-former-user mix). Derived from real data only — nothing fabricated. Not charged. Only applies in 'productReviews' mode.

## `includeComparison` (type: `boolean`):

Emit one 'comparison' record for the run: a side-by-side of every product scraped (rating, total reviews, entry-level price, free tier, primary category) plus the ratings G2 shows on each product's 'Top-Rated Alternatives' cards, ranked by rating. Each row is tagged with its data source. Not charged.

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

Proxy used when the Actor escalates past the free plain-fetch pass (G2 sits behind Cloudflare + DataDome, so a plain request is usually challenged). RESIDENTIAL is strongly recommended and used by default. You pay for proxy traffic. The plain-fetch first pass runs without proxy; escalation (proxied fetch, then a stealth browser) turns it on automatically. Turn the proxy off to run every tier direct.

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

How many pages the stealth-browser tier fetches in parallel. Real browsers are memory-heavy, so this is clamped 1-8; default 3.

## `requestDelaySecs` (type: `number`):

Polite pause between page requests (0-15).

## `timeoutSecs` (type: `integer`):

Timeout per page request (5-180).

## `trackChanges` (type: `boolean`):

Turn the run into a REPUTATION MONITOR. Each product's snapshot (average rating, total reviews, star distribution, pricing, competitors) and a bounded index of this run's reviews are saved to a named key-value store that survives between runs, so the next run with the same monitorKey diffs today's G2 against the last look: NEW reviews, NEW NEGATIVE reviews (≤2★ — flagged first), average-rating up/down, how many reviews entered G2 overall, star-distribution shifts (a 1★ spike = critical alert), new competitors in G2's Top-Rated Alternatives, pricing moves. Adds a few monitor columns per product/review and one free 'monitor_summary' row. Off = identical to today, zero monitor columns. Run on a schedule with the same monitorKey + same products/filters.

## `monitorKey` (type: `string`):

A stable name tying successive monitoring runs together (e.g. 'slack-reputation-watch'). Use the SAME key + same products/filters on each run so diffs compare like with like. Only used when 'Track changes' is on; blank falls back to 'default'. Use one key per saved product set — different keys keep independent histories.

## Actor input object example

```json
{
  "mode": "productReviews",
  "productUrlsOrSlugs": [
    "slack",
    "https://www.g2.com/products/asana/reviews"
  ],
  "maxReviews": 100,
  "sortBy": "most_recent",
  "verifiedOnly": false,
  "includeIncentivized": true,
  "includeAlternatives": true,
  "includeFaq": true,
  "includeInsights": true,
  "includeComparison": true,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  },
  "maxConcurrency": 3,
  "requestDelaySecs": 1,
  "timeoutSecs": 40,
  "trackChanges": false,
  "monitorKey": "slack-reputation-watch"
}
```

# Actor output Schema

# 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 = {
    "productUrlsOrSlugs": [
        "slack",
        "https://www.g2.com/products/asana/reviews"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    },
    "monitorKey": "slack-reputation-watch"
};

// Run the Actor and wait for it to finish
const run = await client.actor("bgfc97/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 = {
    "productUrlsOrSlugs": [
        "slack",
        "https://www.g2.com/products/asana/reviews",
    ],
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
    "monitorKey": "slack-reputation-watch",
}

# Run the Actor and wait for it to finish
run = client.actor("bgfc97/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 '{
  "productUrlsOrSlugs": [
    "slack",
    "https://www.g2.com/products/asana/reviews"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  },
  "monitorKey": "slack-reputation-watch"
}' |
apify call bgfc97/g2-reviews-scraper --silent --output-dataset

```

## MCP server setup

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