# G2  Explorer (`jupri/g2-explorer`) Actor

💫 Scrape G2.com

- **URL**: https://apify.com/jupri/g2-explorer.md
- **Developed by:** [cat](https://apify.com/jupri) (community)
- **Categories:** Other
- **Stats:** 1,935 total users, 44 monthly users, 98.4% runs succeeded, 67 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

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

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

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

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

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

# README

## Welcome to G2.com Scraper

<img height="32" src="https://apify.com/actor-badge?actor=jupri~g2-explorer" align="right">

![dont be sad readme is here  6](https://raw.githubusercontent.com/JupriGH/resources/main/cats/catframe.png)

### 🍂 About G2.com

<img src="https://images.apifyusercontent.com/JRyzvTfUHSpJhtBRnNmeAukZUYWZozMlV3N5HALLpGs/rs:fill:128:128/cb:1/aHR0cHM6Ly9hcGlmeS1pbWFnZS11cGxvYWRzLXByb2QuczMudXMtZWFzdC0xLmFtYXpvbmF3cy5jb20vNEtHRUtmMUVVam1ZVzc2ZGQvMzJKQmhNbkpoRXRUVUJwa2wtZzIucG5n.png">

**G2.com**, formerly **G2 Crowd**, is a [peer-to-peer](https://en.wikipedia.org/wiki/Social_peer-to-peer_processes "Social peer-to-peer processes") review site[\[1\]](https://en.wikipedia.org/wiki/G2_Crowd#cite_note-1) headquartered in Chicago, Illinois. It was known as G2 Labs, Inc. until 2013.[\[2\]](https://en.wikipedia.org/wiki/G2_Crowd#cite_note-bloom2016-2) The company was launched in May 2012 by former [BigMachines](https://en.wikipedia.org/wiki/BigMachines "BigMachines") employees, with a focus on aggregating user reviews for business software.

### 🍂 About This Actor

Scrape product data from [G2.com](https://www.g2.com)

### 🍂 Tutorial

#### 🍃 Parameters

| Parameter | Type | Description |
|-|-|-|
| `query` |***string***| Keyword OR Product `slug`(s) separated by spaces or commas |
| `limit` |***integer***| Limit number of results per slug |
| `mode` | ***string***| Operation Mode |

### 🍂 Input Examples

#### *Example #1: Searching for product reviews*

```yaml
{ "query": "apify", "limit": 10 }
```

> **Review Questions :**
>
> - *\[1] What do you like best*
> - *\[2] What do you dislike*
> - *\[3] Recommendations to others considering the product*
> - *\[4] What problems is the product solving and how is that benefiting you*

> **Notes:**
>
> - To find product slug, go to https://www.g2.com, and find the product url. For example: `https://www.g2.com/apify/reviews` the slug is `apify`
> - `limit` is for per product slug. For example if you inputs **3** products and `limit = 10` then you will get **30** results

#### *Example #2: Searching for products*

```yaml
{ "query": "Web scraping tools", "mode": "product", "limit": 10 }
```

#### *Example #3: Searching for service softwares*

```yaml
{ "query": "Web Server", "mode": "product", "product_types": ["Provider"], "limit": 10 }
```

#### *Example #4: Get single product information*

```yaml
{ "query": "apify", "mode":  "product_info" }
```

### 🍂 Output Samples

#### Product Review

```yaml
{
    "answers": [
        "First, Apify offers a number of ready solutions that can be launched in minutes with zero or very little coding skills. I tested several of them and they work well. \r\nSecond, it's easy and quick to get custom solutions built if needed. I got a custom solution made in less than a week. \r\nPlus, their support team is just amazing (shoutout to Tsveta!).\r\nI discovered Apify less than a month ago and it's already one of the core tools in my stack.",
        "Nothing really. It took me some time to get the outcomes I was looking for, but it's a new category of tools to me so it's understandable.",
        "-",
        "I am scraping several websites to power my lead generation process. Without Apify, I'd have to use VAs, which would be less convenient and more time-consuming."
    ],
    "date": {
        "published": "2022-08-18T09:05:00.496-05:00",
        "submitted": "2022-08-18T05:51:54.968-05:00",
        "updated": "2022-08-18T05:51:55.384-05:00"
    },
    "id": "6996026",
    "industry": "Computer Software",
    "location": {
        "country": "Poland",
        "primary": "EMEA",
        "region": "Europe"
    },
    "name": "Lucjan K.",
    "product_id": 74085,
    "product_slug": "apify",
    "role": "User",
    "score": 5,
    "segment": "small-business",
    "type": "text"
}
```

### 🍂 Support

⚡️ Feel free to [reach out](https://console.apify.com/actors/4KGEKf1EUjmYW76dd/issues) to the developer for any issues or suggestions for improvement.

<img src="https://apify-uploads-prod.s3.us-east-1.amazonaws.com/5SxZhwYwpknFk8ek9-cat.gif" width="240">

# Actor input Schema

## `query` (type: `string`):

💡 Keywords OR Slug(s) separated by spaces, line-break or commas

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

💡 Operation Mode

## `limit` (type: `integer`):

💡 Limit number of results <i>(per slug for Search Reviews Mode)</i>.

## `review_search` (type: `string`):

💡 Search within reviews

## `date_from` (type: `string`):

💡 Publish Date

## `date_until` (type: `string`):

💡 Publish Date

## `review_stars` (type: `string`):

No description

## `response_type` (type: `string`):

No description

## `sort_review` (type: `string`):

💡 Sorting key

## `strict_search` (type: `boolean`):

💡 Limit search to only specified (product) slugs.

## `switched` (type: `boolean`):

No description

## `no_parse` (type: `boolean`):

💡 WARNING: 💀 <i>Unreliable Parser</i> 💀

## `sort_product` (type: `string`):

💡 Sorting key

## `product_website` (type: `string`):

💡 example: apify.com

## `product_stars` (type: `string`):

No description

## `product_types` (type: `array`):

No description

## `product_categories` (type: `array`):

💡 Category-IDs (must be digits!)

## `software_categories` (type: `array`):

💡 Software categories (slugs)

## `service_categories` (type: `array`):

💡 Service Providers (slugs)

## `include_article_content` (type: `boolean`):

💡 WARNING: The results size could be huge.

## `sort_discuss` (type: `string`):

💡 Sorting key

## `dev_custom_headers` (type: `array`):

💡 Additional HTTP Headers

## `dev_custom_cookies` (type: `array`):

💡 Additional HTTP Cookies

## `dev_transform_fields` (type: `array`):

💡 <b>Transform the resulting output. Select only needed fields.</b><br><br>For nested object use <b>DOT</b>. For example: <pre>address.streetAddress</pre><br>For nested array use <b>NUMBER</b> <i>(index of array element starting from index=0)</i>. For example: <pre>images.0.url</pre>

## `dev_dataset_name` (type: `string`):

💡 <b>Save results into custom named Dataset, use mask to customize dataset name</b><br><br><code>{ACTOR} = actor name<br>{DATE} = date (YYYYMMDD)<br>{TIME} = time (HHMMSS)</code><br><br>This masks can be used to autogenerate Dataset Name.<br><br>example: <i><code>data-{DATE}</code></i><br>Depending on today date the dataset name will be: <code>data-20230603</code><i><br><br>default: <code>data-{ACTOR}-{DATE}-{TIME}</code></i>

## `dev_dataset_clear` (type: `boolean`):

Clear Dataset before insert/update.

## `dev_no_strip` (type: `boolean`):

💡 Keep/Save empty values <i><code>(NULL, FALSE, empty ARRAY, empty OBJECT, empty STRING)</code></i>

## `dev_fileupload` (type: `string`):

💡 Upload your file and copy & paste the URL somewhere.

## Actor input object example

```json
{
  "query": "apify",
  "mode": "review",
  "limit": 5
}
```

# 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 = {
    "query": "apify",
    "limit": 5
};

// Run the Actor and wait for it to finish
const run = await client.actor("jupri/g2-explorer").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 = {
    "query": "apify",
    "limit": 5,
}

# Run the Actor and wait for it to finish
run = client.actor("jupri/g2-explorer").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 '{
  "query": "apify",
  "limit": 5
}' |
apify call jupri/g2-explorer --silent --output-dataset

```

## MCP server setup

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

```

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/4KGEKf1EUjmYW76dd/builds/d8q21LOIAUzJtZs1h/openapi.json
