# G2 Search Scraper | Fast & Reliable (`fatihtahta/g2-scraper`) Actor

Fast G2 search scraper. Paste any G2 search URL and get clean, deduped product/company data. Ideal for enrichment & market research.

- **URL**: https://apify.com/fatihtahta/g2-scraper.md
- **Developed by:** [Fatih Tahta](https://apify.com/fatihtahta) (community)
- **Categories:** Lead generation, Automation, Developer tools
- **Stats:** 195 total users, 3 monthly users, 100.0% runs succeeded, 3 bookmarks
- **User rating**: 1.20 out of 5 stars

## Pricing

$6.99 / 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.

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 Scraper | Fast & Reliable | $7 / 1k

**Slug:** `fatihtahta/g2-scraper`
**Price:** **$7.00 per 1,000 saved products**

Turn any **G2 search results page** into clean, structured company/product data you can actually use. Just point at a search URL and get a deduped dataset for research, enrichment, and analysis.

***

### What is G2?

**G2** is one of the largest software marketplaces and review platforms. Companies list their products, collect verified user reviews, and are organized into categories (e.g., CRM, Marketing Automation, BI). Search pages typically show a product’s **name, vendor, rating, review count, description snippet, categories, logos**, and links to the product and seller pages. That’s exactly the information this actor captures—at scale.

***

### What You Get (Features & Fields)

This actor extracts the **public data shown on G2 search result pages** and saves each product row as a structured record:

- **Identity & Links**
  - `productName`, `vendorName`, `itemType` (e.g., “Software”)
  - `productUrl`, `reviewsUrl`
  - `sellerName`, `sellerUrl`
  - `thumbImageUrl` (logo, not a placeholder)
- **IDs & Rank**
  - `productId`, `productUuid`, `vendorId` *(when present in the page metadata)*
  - `resultRank` *(position in the list when available)*
- **Ratings & Social Proof**
  - `ratingOutOfFive` (0–5), `ratingOutOfTen` (0–10)
  - `reviewCount`
- **Content & Taxonomy**
  - `descriptionSnippet` (the visible summary on the card)
  - `relatedCategories` (names)
  - `categoriesDetailed` (array of `{ id, name, url }`)
- **Provenance**
  - `searchUrl`, `query`, `scrapedAt`, `foundVia`

**Use it for:**

- Company & product **enrichment** (ratings, review counts, categories, logos).
- **Market landscaping** and category mapping.
- **Competitor lists** and shortlist generation.
- Feeding downstream **research, scoring, and prioritization** workflows.

***

### 📥 Input Configuration

- `startUrl` *(string, required)*: A **G2 search results** URL
  Examples:
  - `https://www.g2.com/search?query=mention`
  - `https://www.g2.com/search?query=crm`
- `maxItems` *(integer, optional)*: Hard cap on saved results.

> Tip: Keep the URL simple. The actor will handle page numbers for you.

***

### 📦 Input & Output Examples

#### Example Input

```
{
  "startUrl": "[https://www.g2.com/search?query=mention](https://www.g2.com/search?query=mention)",
  "maxItems": 120,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": ["RESIDENTIAL"]
  }
}
```

#### Example Output Item

Each dataset item represents a **product row** from the search page:

```
{
  "scrapedAt": "2025-09-06T12:42:32.358Z",
  "searchUrl": "https://www.g2.com/search?query=mention",
  "query": "mention",
  "itemType": "Software",
  "productId": 20638,
  "productUuid": "901093dc-bf92-47b1-a2d0-588fe09ba66f",
  "vendorId": 16830,
  "resultRank": 4,
  "productName": "Mentionlytics",
  "vendorName": "Mentionlytics Ltd",
  "ratingOutOfFive": 4.9,
  "ratingOutOfTen": 9.8,
  "reviewCount": 90,
  "descriptionSnippet": "Web & Social Media Monitoring tool that tracks mentions across the web and social platforms.",
  "thumbImageUrl": "https://images.g2crowd.com/uploads/product/hd_favicon/374068704d3e8ad9268aa24d76a7029f/mentionlytics.svg",
  "relatedCategories": [
    "Media Monitoring",
    "Social Media Analytics",
    "Social Media Management",
    "Social Media Listening Tools"
  ],
  "categoriesDetailed": [
    {"id": 350, "name": "Media Monitoring", "url": "https://www.g2.com/categories/media-monitoring"},
    {"id": 240, "name": "Social Media Analytics", "url": "https://www.g2.com/categories/social-media-analytics"}
  ],
  "sellerName": "Mentionlytics Ltd",
  "sellerUrl": "https://www.g2.com/sellers/mentionlytics-ltd",
  "productUrl": "https://www.g2.com/products/mentionlytics/reviews",
  "reviewsUrl": "https://www.g2.com/products/mentionlytics/reviews",
  "foundVia": "g2"
}
```

***

### 💰 Pricing (Simple & Transparent)

- **$7.00 per 1,000 saved products.**
  Only pay for **successfully saved** items.
  Example: 10,000 products cost **(10,000 / 1,000) × $7.00 = $70.00**.

### ⚖️ Legal

This scraper extracts **publicly visible information** from G2 search pages. You’re responsible for how you use the data. If your use case involves personal data (e.g., user-generated content), ensure you have a lawful basis (GDPR/CCPA/etc.). When in doubt, talk to your counsel.

***

### ❓ Support

Questions, bugs, or feature requests? Open an issue on the **Issues** tab of the actor page in Apify Console and it'll be solved around the clock.

Happy Scraping!
**Fatih**

# Actor input Schema

## `startUrl` (type: `string`):

Paste a full G2 search URL.

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

Total number of products to save from this search page. The run stops once this limit is reached.

## Actor input object example

```json
{
  "startUrl": "https://www.g2.com/search?query=databricks",
  "maxItems": 100000
}
```

# 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("fatihtahta/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 = {}

# Run the Actor and wait for it to finish
run = client.actor("fatihtahta/g2-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 fatihtahta/g2-scraper --silent --output-dataset

```

## MCP server setup

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