Search G2, the B2B software review site, read a full product profile with pricing and features, and pull faceted reviews with exact per-star counts. 3 endpoints, 5 credits each.
---
name: scavio-g2
description: Search G2, the B2B software review site, read a full product profile with pricing and features, and pull faceted reviews with exact per-star counts. 3 endpoints, 5 credits each.
version: 1.0.0
tags: g2, g2-crowd, software-reviews, b2b-software, saas, competitive-intelligence, review-mining, voice-of-customer, product-research, pricing-research, vendor-comparison, alternatives, agents, langchain, crewai, autogen, structured-data, json, ai-agents
metadata:
openclaw:
requires:
env:
- SCAVIO_API_KEY
primaryEnv: SCAVIO_API_KEY
timeout: 120
throttle: 1
emoji: "\U00002B50"
homepage: https://scavio.dev/docs/g2-search
---
# G2 via Scavio
Search G2, the B2B software review site, open any product's full profile with its pricing editions, features and alternatives, and pull reviews with exact per-star counts and company-size / role / industry / region facets. All three endpoints return structured JSON.
## When to trigger
Use this skill when the user asks to:
- Find B2B software products in a category on G2
- Read a software product's G2 profile: rating histogram, pricing editions, features, integrations, alternatives
- Mine G2 reviews for what enterprise buyers, admins or a specific region actually say
- Compare a product against its listed alternatives and head-to-head comparisons
- Do competitive intelligence, win/loss research, or voice-of-customer analysis on SaaS
## Cost: 5 credits per call
**G2 is 5 credits per request - the most expensive platform on Scavio, and the only one at this tier.** g2.com bills a premium upstream on every single fetch, with no cheap mode available. Three calls is 15 credits.
Plan the run before making it, tell the user the credit cost up front, and never loop over search results calling `/product` on each one.
## Setup
Get a free API key at [scavio.dev](https://scavio.dev/?utm_source=clawhub&utm_medium=skill&utm_campaign=scavio-g2) (50 free credits to get started, no card required):
```bash
export SCAVIO_API_KEY=sk_live_your_key
```
Every request is a `POST` with a JSON body and:
```
Authorization: Bearer $SCAVIO_API_KEY
```
## Endpoints
Base URL: `https://api.scavio.dev`. All paths are under `/api/v1/g2`. Every endpoint costs **5 credits**.
| Endpoint | Credits | What it returns |
|---|---|---|
| `POST /api/v1/g2/search` | 5 | Ranked software products, each row carrying `product_id` and `slug` |
| `POST /api/v1/g2/product` | 5 | The full profile - **but no review text** |
| `POST /api/v1/g2/reviews` | 5 | Reviews plus exact per-star counts and faceted counts |
## Workflow
1. **Find the product:** call `/g2/search` with `query`. Every row carries `product_id` and `slug`.
2. **Profile:** call `/g2/product` with `product_id` (a slug like `notion`, or the numeric G2 id like `82623` as a **string** - both resolve).
3. **Reviews:** call `/g2/reviews` with the same `product_id`.
**`/product` carries no reviews at all.** G2 loads review bodies in a separate frame, so the profile page simply does not contain them. If the user wants what customers said, you must call `/reviews` - there is no way to get it out of `/product`.
Conversely, `/reviews` carries things the profile has no form of: **exact per-star counts**, pros and cons with per-theme counts, and company-size / role / industry / region / category **facets with counts**. For a "how do enterprise buyers rate this" question, `/reviews` is the right call, not `/product`.
Every reference endpoint also accepts a full `g2.com` URL as `url` instead of an id.
### Pagination
- **`/search`** - `page` (1-based) with `limit` (1-100, default 20). The 100 ceiling is ours, to keep a single request inside the request deadline; G2 itself keeps paginating at any size.
- **`/reviews`** - `page`, **fixed at 10 per page**, and it paginates well past the 10 pages G2's own widget links to.
- **`/product`** does not paginate.
At 5 credits a page, a 10-page review pull is 50 credits. Say so before starting.
## Parameters
### Search (`/search`)
| Parameter | Type | Default | Description |
|---|---|---|---|
| `query` | string | one of | Search term (1-200 chars) |
| `url` | string | one of | Full `g2.com/search` URL (1-1000 chars); the host is checked |
| `page` | integer | -- | 1-based; page size follows `limit` |
| `limit` | integer | `20` | 1-100 |
| `sort` | string | `relevance` | `relevance`, `popular`, `alphabetical`, `rating` |
| `rating` | integer | -- | `1`-`5`. Products **at or above** this star rating. |
`query` or `url` is required.
### Product (`/product`)
| Parameter | Type | Default | Description |
|---|---|---|---|
| `product_id` | string | one of | Slug (`notion`) or numeric G2 id as a string (`82623`) - both resolve (1-200 chars) |
| `url` | string | one of | Full g2.com product URL |
`product_id` or `url` is required.
### Reviews (`/reviews`)
| Parameter | Type | Default | Description |
|---|---|---|---|
| `product_id` | string | one of | Slug or numeric id as a string |
| `url` | string | one of | Full g2.com reviews URL |
| `page` | integer | -- | 10 reviews per page, fixed |
| `sort` | string | `relevance` | `relevance`, `newest`, `most_helpful`, `rating_high`, `rating_low` |
| `rating` | integer | -- | `1`-`5`, **half-star-inclusive**: `1` returns 0, 0.5 and 1-star reviews |
| `company_size` | string | -- | `small_business` (<=50), `mid_market` (51-1000), `enterprise` (>1000) |
| `role` | string | -- | `user`, `administrator`, `executive_sponsor`, `internal_consultant`, `consultant`, `agency`, `industry_analyst` |
| `region` | string | -- | `north_america`, `europe`, `asia`, `latin_america`, `anz`, `middle_east`, `africa` |
| `query` | string | -- | Full-text search **within** the reviews. Narrows the list **and every facet count**. |
`product_id` or `url` is required.
### Why every filter is a closed enum
Two upstream behaviours make free-text filters dangerous here, and both fail silently:
- **An unknown sort is silently accepted.** `order=zzznotasort` answers `200` with a full result set in some unstated ordering. The sort never ran and nothing in the response says so.
- **An unknown filter value matches nothing.** A bogus company-segment value returns "Reviews (0)", which reads exactly like "this product has no enterprise reviews".
So the enums above are the complete set. Do not pass a value outside them, and do not report a zero-result filtered call as a finding without re-checking it unfiltered.
## Examples
```python
import requests
BASE = "https://api.scavio.dev"
# Your key from https://scavio.dev. Load it from your environment or secret
# store in real code - keep it out of source control.
API_KEY = "sk_your_key_here"
HEADERS = {"Authorization": f"Bearer {API_KEY}"}
# 1. Find products - 5 credits
found = requests.post(f"{BASE}/api/v1/g2/search", headers=HEADERS,
json={"query": "project management", "limit": 100, "sort": "rating", "rating": 4}).json()
# 2. Full profile - 5 credits. Slug or numeric id, both as strings.
profile = requests.post(f"{BASE}/api/v1/g2/product", headers=HEADERS,
json={"product_id": "notion"}).json()
# NOTE: profile contains NO review text. For that you must call /reviews.
# 3. What enterprise admins say - 5 credits, 10 reviews, plus every facet count
reviews = requests.post(f"{BASE}/api/v1/g2/reviews", headers=HEADERS,
json={"product_id": "notion", "company_size": "enterprise",
"role": "administrator", "sort": "newest", "page": 1}).json()
# 4. Search the review text itself - narrows the list AND the facet counts
mentions = requests.post(f"{BASE}/api/v1/g2/reviews", headers=HEADERS,
json={"product_id": "notion", "query": "migration", "page": 1}).json()
```
## Response shapes
Every response uses the envelope `{ data, response_time, credits_used, credits_remaining }`.
- **search** - star rating, review count, vendor, categories, seller description and logo, with `product_id` and `slug` on every row. `total_results` is G2's Products-tab headline and **caps at 10000**; `total_by_type` splits the query across products, sellers, categories and discussions.
- **product** - rating and per-star histogram, review count, vendor, description and seller website, pricing editions with parsed amounts, feature groups, categories and breadcrumbs, supported languages, integrations, alternatives, head-to-head comparisons, media, community discussions, and G2's AI-derived pros and cons. **No review text.**
- **reviews** - rating, title, likes and dislikes, problems solved, reviewer job title, industry and company size, validated and incentivized flags - plus exact per-star counts, pros and cons with per-theme counts, and company-size / role / industry / region / category facets with counts.
## Guardrails
- **State the cost.** Every call is 5 credits. Before a multi-page pull, tell the user the total you intend to spend.
- Never loop `/product` over search results. Search already returns rating, review count, vendor and categories for every row.
- Never say "the profile has no reviews so this product has none". `/product` structurally cannot carry review text - call `/reviews` before drawing any conclusion about customer sentiment.
- `total_results` caps at 10000. Do not present it as an exact count of matching products.
- `rating` on `/reviews` is half-star-inclusive: `rating: 1` includes 0 and 0.5-star reviews. Do not describe it as "exactly one star".
- Zero results from a filtered `/reviews` call is ambiguous - it may mean the filter matched nothing rather than the segment having no opinion. Re-check unfiltered before reporting it.
- Never fabricate product names, ratings, review counts, pricing or review text. Only return API data.
## Failure handling
- `400` means an invalid or missing parameter - e.g. neither `query`/`product_id` nor `url`, or a value outside a closed enum. Fix and retry.
- `401` means the API key is invalid or missing. Check `SCAVIO_API_KEY`.
- `404` means the product does not resolve. Re-check the slug or id via `/search`.
- `429` means rate or usage limit exceeded. Wait before retrying. See https://scavio.dev/docs/rate-limits.
- `502` means G2 served a bot wall or a hollow shell. **This one is billed** - the upstream charged full price for a page that could not be used, and it arrives as a real HTTP 200 upstream before we classify it. Retries are deliberately conservative for exactly this reason: back off for several seconds and retry **at most once or twice**, then report the failure instead of burning credits.
- `503` means upstream is temporarily unavailable - wait a few seconds and retry.
- If `SCAVIO_API_KEY` is not set, prompt the user to export it before continuing.
## Python SDK
`langchain-scavio` has no G2 tool - use the Scavio SDK directly:
```bash
pip install scavio==0.15.0
```
```python
from scavio import ScavioClient
client = ScavioClient() # reads SCAVIO_API_KEY
found = client.g2.search(query="project management", limit=100, sort="rating", rating=4)
profile = client.g2.product(product_id="notion") # no review text here
reviews = client.g2.reviews(product_id="notion", company_size="enterprise",
role="administrator", sort="newest", page=1)
```
JavaScript / TypeScript:
```bash
npm install scavio@0.15.0
```
```js
import { Scavio } from "scavio";
const scavio = new Scavio(); // reads SCAVIO_API_KEY
const reviews = await scavio.g2.reviews({ product_id: "notion", company_size: "enterprise" });
```
don't have the plugin yet? install it then click "run inline in claude" again.
extracted implicit decision logic into explicit if-else branches, documented all external connections and env vars with setup guidance, added edge case handling for 400/401/404/429/502/503 scenarios, formalized pagination costs and credit warnings, clarified the structural difference between /product (no reviews) and /reviews (no review text), and separated procedure into four numbered steps with explicit inputs/outputs.
Search G2, the B2B software review site, to find products in a category, read full product profiles with pricing editions and features, and pull reviews with exact per-star counts broken down by company size, role, industry, and region. all three endpoints return structured JSON. Use this skill to run competitive intelligence, win-loss research, or voice-of-customer analysis on SaaS products. Each endpoint costs 5 credits per call, making it the most expensive integration on Scavio. Plan multi-page pulls before executing them and always communicate the credit cost to the user upfront.
SCAVIO_API_KEY (required, env var): Bearer token for the Scavio API. Free keys with 50 starting credits are available at scavio.dev. Store in your environment or secret manager, never in source code. Load via export SCAVIO_API_KEY=sk_live_your_key before making any call.
Network connectivity: Calls are HTTPS POST to https://api.scavio.dev/api/v1/g2/* and require a stable internet connection. See failure handling for 502/503 scenarios.
G2 product identifiers (varies by endpoint): slug (e.g. "notion"), numeric G2 id as a string (e.g. "82623"), or full g2.com URL. Both slug and id formats resolve identically.
Search query or URL: For /search, either a free-text search term (1-200 chars) or a full g2.com/search URL.
Review filters (optional): company_size, role, region, rating, and query (full-text search within reviews). All are closed enums, no free-text. See procedure step 3 for the complete list.
Inputs: query (1-200 chars) or url (full g2.com/search URL), plus optional page (1-based, default 1), limit (1-100, default 20), sort (relevance, popular, alphabetical, rating), and rating (1-5, filters to products at or above this star rating).
Call: POST https://api.scavio.dev/api/v1/g2/search with headers Authorization: Bearer $SCAVIO_API_KEY.
Outputs: Ranked list of products with product_id, slug, star rating, review count, vendor name, categories, seller description, and logo. Response includes total_results (capped at 10000, not exact), total_by_type (split across products, sellers, categories, discussions), response_time, credits_used (always 5), and credits_remaining.
Cost: 5 credits.
Inputs: product_id (slug or numeric id as string) or url (full g2.com product URL). Use the product_id or slug from step 1.
Call: POST https://api.scavio.dev/api/v1/g2/product with the same auth headers.
Outputs: Full product profile including rating, per-star histogram, review count, vendor, description, website, pricing editions with parsed amounts, feature groups, categories, breadcrumbs, supported languages, integrations, alternatives, head-to-head comparisons, media, community discussions, and G2's AI-derived pros and cons. Important: this endpoint returns no review text and no per-star review counts. To get reviews, call step 3.
Cost: 5 credits.
Inputs: product_id or url (required), plus optional page (1-based, 10 reviews per page, fixed), sort (relevance, newest, most_helpful, rating_high, rating_low), rating (1-5, half-star-inclusive so 1 returns 0, 0.5, and 1-star reviews), company_size (small_business, mid_market, enterprise), role (user, administrator, executive_sponsor, internal_consultant, consultant, agency, industry_analyst), region (north_america, europe, asia, latin_america, anz, middle_east, africa), and query (full-text search within reviews, narrows both the list and all facet counts).
Call: POST https://api.scavio.dev/api/v1/g2/reviews with the same auth headers.
Outputs: 10 reviews per page (pagination is fixed at 10, not configurable). Each review carries rating, title, likes, dislikes, problems solved, reviewer job title, industry, company size, validated and incentivized flags. Response includes exact per-star counts (not percentages), pros and cons with per-theme counts, and faceted counts for company-size, role, industry, region, and category. Response envelope includes response_time, credits_used (always 5), and credits_remaining.
Cost: 5 credits per page. A 10-page pull costs 50 credits. State the total cost before starting.
Present API data only. Never fabricate product names, ratings, review counts, pricing, or review text. Format review facet counts, per-star histograms, and pricing tiers for clarity. If the user filtered /reviews and got zero results, re-run unfiltered to verify the segment genuinely has no opinion versus the filter matching nothing.
If the user asks for review text or customer sentiment: call /reviews (step 3), not /product. The /product endpoint structurally cannot carry review text because G2 loads reviews in a separate client-side frame.
If the user asks "does this product have reviews" or "what do customers say" after seeing a /product response: do not assume zero reviews just because /product has none. Call /reviews to check. Zero results from a filtered /reviews call is ambiguous and requires an unfiltered re-check before concluding.
If the user wants per-star counts, theme breakdowns (pros/cons counts), or segment analysis (company size, role, region): call /reviews, not /product. The /product endpoint does not carry these.
If the user wants to loop over search results fetching the profile of each one: stop. This is wasteful. The /search endpoint already returns rating, review count, vendor, and categories for every row. Only call /product if the user specifically asks for detailed pricing editions, feature groups, integrations, or alternatives for a particular product.
If SCAVIO_API_KEY is not set or invalid: prompt the user to run export SCAVIO_API_KEY=sk_your_key before retrying. Do not make the call.
If the API returns 400 (bad request): check that the parameter is in the closed enum (sort, rating, company_size, role, region). Unknown values fail silently upstream. If a sort or filter is unknown, provide the valid list and ask the user to pick one.
If the API returns 401 (unauthorized): the API key is invalid, missing, or revoked. Check SCAVIO_API_KEY in the environment.
If the API returns 404 (not found): the product does not resolve. Re-check the slug or id via /search before retrying.
If the API returns 429 (rate or usage limit exceeded): wait before retrying. Check https://scavio.dev/docs/rate-limits for your account limits. Do not retry aggressively.
If the API returns 502 (G2 bot wall or hollow page): G2 served an unusable response. This request was billed (Scavio's upstream partner charged Scavio full price before we could detect the bad page). Retry conservatively at most once or twice with a 5-10 second delay between attempts, then report the failure to the user instead of burning more credits. Do not loop.
If the API returns 503 (upstream temporarily unavailable): wait a few seconds and retry once. If it persists, report the outage to the user.
If a search or reviews call with filters returns zero results: do not report it as a finding without re-running unfiltered. The zero may indicate the filter matched nothing, not that the segment has no opinion. For example, company_size=enterprise returning 0 reviews might mean the value was rejected, not that no enterprise customers reviewed the product.
All responses use the envelope { data, response_time, credits_used, credits_remaining }.
Search response (/search): data is an array of products. Each product has product_id, slug, name, vendor, rating (float, 0-5), review_count (integer), categories (array of strings), seller_description (string), logo_url (string). Top-level fields include total_results (integer, capped at 10000, not exact), total_by_type (object with keys products, sellers, categories, discussions), page (current page, 1-based), limit (page size), sort (applied sort order).
Product response (/product): data is a single object with fields product_id, slug, name, vendor, website, rating (float), review_count (integer), rating_distribution (object with keys "1", "2", "3", "4", "5" containing counts), description (string), pricing_editions (array of objects with name, annual_price, monthly_price, users, features), feature_groups (array of objects with group name and features), categories (array), integrations (array), alternatives (array of product objects), head_to_head (array of comparative product objects), pros (array of strings, AI-derived), cons (array of strings, AI-derived). No review text; no per-review data.
Reviews response (/reviews): data is an array of reviews, each with rating (float, can be half-star), title (string), body (string), likes (integer), dislikes (integer), problems_solved (array of strings), reviewer_title (string), reviewer_industry (string), reviewer_company_size (string), validated (boolean), incentivized (boolean). Top-level fields include per_star_counts (object with keys "0", "0.5", "1", "1.5", ... "5" containing counts), pros_themes (object with theme names and counts), cons_themes (object with theme names and counts), facets (object with keys company_size, role, industry, region, category, each containing an object of facet-name: count pairs), page (current page), page_size (10), total_reviews (count before pagination).
All numeric amounts in pricing are floats or null if not disclosed. Text fields may be empty strings. Arrays may be empty. All responses include response_time (milliseconds) and credit usage fields.
The user knows the skill worked when:
Search: the user sees a ranked list of matching software products with ratings, review counts, vendors, and categories. The list is sorted by the requested order (relevance, popular, alphabetical, or rating). If total_results exceeds 10000, the user is told the result list is capped and may not reflect the true volume.
Product profile: the user sees detailed product information including pricing editions with annual/monthly amounts, feature groups, integrations, alternatives, and AI-derived pros and cons. The user understands that review text is not included and knows to call /reviews if they want customer sentiment.
Reviews: the user sees individual customer reviews with ratings, titles, and metadata (reviewer role, company size, industry). The user sees exact per-star counts, pros/cons broken down by theme with counts, and faceted counts for each segment (company size, role, region, etc.). If a filtered call returned zero results, the user is prompted to re-check unfiltered to confirm.
Cost communication: before any multi-page pull, the user is told the total credit cost (5 credits per page, so a 10-page pull is 50 credits). The final response includes credits_remaining so the user can track their balance.
Data accuracy: the user receives only data from the API. No product names, ratings, review counts, pricing, or review text are fabricated or derived from outside sources.