The Piloterr G2 Scraper API lets you extract public data from G2 as clean, structured JSON — no proxies, headless browsers or HTML parsing to maintain. Endpoints available in production:
- G2 Product Info API — Read a G2 product reviews page: rating, pricing, categories, alternatives, screenshots, and the reviews shown on the page.
Use it for lead generation, CRM enrichment, market mapping, investment research or job market analytics.
| Endpoint | Path | Credits | What you get |
|---|---|---|---|
| G2 Product Info API | /v2/g2/product/info |
2 | Read a G2 product reviews page |
- How it works
- G2 Product Info API
- Code examples in other languages
- Practical use cases
- Why Piloterr?
- FAQ
- Official SDKs
- Related scrapers
- Support
- Create a free Piloterr account and copy your API key from the dashboard.
- Send a
GET(orPOST) request tohttps://api.piloterr.com/v2/...with the headerx-api-key: YOUR_API_KEY. - Receive structured JSON — Piloterr handles rendering, proxies, retries and parsing.
export PILOTERR_API_KEY="your-api-key"
pip install requests # Python
# TypeScript: Node.js 18+ (native fetch), run with `npx tsx file.ts`Every endpoint accepts both
GET(query string) andPOST(JSON body with the same fields).
Read a G2 product reviews page: rating, pricing, categories, alternatives, screenshots, and the reviews shown on the page.
GET | POST https://api.piloterr.com/v2/g2/product/info · 2 credits per request · Full reference
| Parameter | Type | Required | Description |
|---|---|---|---|
query |
string | ✅ | Product slug or a www.g2.com product URL. |
nps_score |
number | — | Keep reviews of one star rating, from 1 to 5. Omit it to read the unfiltered reviews page. |
return_page_source |
boolean | — | Return the rendered HTML instead of the parsed product. |
import json
import os
import requests
response = requests.get(
"https://api.piloterr.com/v2/g2/product/info",
headers={"x-api-key": os.environ["PILOTERR_API_KEY"]},
params={
"query": "postman",
},
timeout=120,
)
response.raise_for_status()
data = response.json()
print(json.dumps(data, indent=2, ensure_ascii=False)[:2000])type G2ProductInfo = {
rating?: number;
reviews?: {
reviewer?: {
link?: string;
name?: string;
industry?: string;
job_title?: string;
company_size?: string;
};
review_id?: number;
review_link?: string;
publish_date?: string;
review_title?: string;
review_rating?: number;
review_question_answers?: {
answer?: string;
question?: string;
}[];
}[];
what_is?: string;
category?: string;
breadcrumb?: {
url?: string;
name?: string;
position?: number;
}[];
categories?: string[];
company_id?: number;
is_claimed?: boolean;
product_id?: number;
screenshots?: {
url?: string;
title?: string;
description?: string;
}[];
alternatives?: {
rating?: number;
product_link?: string;
product_name?: string;
reviews_count?: number;
}[];
product_link?: string;
product_logo?: string;
product_name?: string;
product_slug?: string;
product_type?: string;
pricing_plans?: {
name?: string;
price?: unknown;
price_display?: string;
}[];
reviews_count?: number;
discussions_link?: string;
star_distribution?: {
"1"?: number;
"2"?: number;
"3"?: number;
"4"?: number;
"5"?: number;
};
product_description?: string;
};
const params = new URLSearchParams({
"query": "postman",
});
const response = await fetch(`https://api.piloterr.com/v2/g2/product/info?${params}`, {
headers: { "x-api-key": process.env.PILOTERR_API_KEY! },
});
if (!response.ok) throw new Error(`Piloterr error ${response.status}: ${await response.text()}`);
const data = (await response.json()) as G2ProductInfo;
console.log(JSON.stringify(data, null, 2).slice(0, 2000));POST variant
POST https://api.piloterr.com/v2/g2/product/info
x-api-key: YOUR_API_KEY
Content-Type: application/json
{"query": "postman"}Example response from the API reference, abridged — real values depend on the page you scrape.
{
"rating": 4.6,
"reviews": [
{
"reviewer": {
"link": "example",
"name": "example",
"industry": "example",
"job_title": "example",
"company_size": "example"
},
"review_id": 13694235,
"review_link": "https://www.g2.com/products/postman/reviews#postman-review-13694235",
"publish_date": "2026-10-04",
"review_title": "Effortless API Testing with Team Collaboration",
"review_rating": 4,
"review_question_answers": [
{}
]
}
],
"what_is": "Postman is the world’s leading API platform, used by more than 40 million developers and 500,000 organizations to build, test, and manage…",
"category": "API Platforms",
"breadcrumb": [
{
"url": "https://www.g2.com/",
"name": "Home",
"position": 1
},
{
"url": "https://www.g2.com/categories/api-platforms",
"name": "API Platforms",
"position": 2
}
],
"categories": [
"Service Virtualization",
"API Platforms"
],
"company_id": 16505,
"is_claimed": true,
"product_id": 20238,
"screenshots": [
{
"url": "https://images.g2crowd.com/cdn-cgi/image/width=1200,height=1200,fit=scale-down,format=auto,onerror=redirect,/https://images.g2crowd.com/u…",
"title": "Postman Demo - API Design",
"description": "You can design your API specifications in Postman using OpenAPI, RAML, GraphQL, or SOAP formats."
}
],
"alternatives": [
{
"rating": 4.4,
"product_link": "https://www.g2.com/products/mulesoft-anypoint-platform/reviews",
"product_name": "MuleSoft Anypoint Platform",
"reviews_count": 894
},
{
"rating": 4.7,
"product_link": "https://www.g2.com/products/workato/reviews",
"product_name": "Workato",
"reviews_count": 858
}
],
"product_link": "https://www.g2.com/products/postman/reviews",
"product_logo": "https://images.g2crowd.com/uploads/product/image/social_landscape/social_landscape_fd527e1fc777d9e31b2a28e8d3c959a4/postman.jpg",
"product_name": "Postman",
"product_slug": "postman",
"product_type": "Software",
"pricing_plans": [
{
"name": "Free Plan",
"price": null,
"price_display": "Free"
},
{
"name": "Basic Plan",
"price": 14,
"price_display": "$14.00"
}
],
"reviews_count": 1795,
"discussions_link": "https://www.g2.com/products/postman/discuss",
"star_distribution": {
"1": 0,
"2": 0,
"3": 0,
"4": 16,
"5": 82
},
"product_description": "Postman is the world’s leading API platform, used by more than 40 million developers and 500,000 organizations to build, test, and manage…"
}| Field | Type | Description |
|---|---|---|
rating |
number | |
reviews[] |
object[] | |
reviews[].reviewer |
object | |
reviews[].review_id |
integer | |
reviews[].review_link |
string | |
reviews[].publish_date |
string | |
reviews[].review_title |
string | |
reviews[].review_rating |
integer | |
reviews[].review_question_answers[] |
object[] | |
what_is |
string | |
category |
string | |
breadcrumb[] |
object[] | |
breadcrumb[].url |
string | |
breadcrumb[].name |
string | |
breadcrumb[].position |
integer | |
categories |
string[] | |
company_id |
integer | |
is_claimed |
boolean | |
product_id |
integer | |
screenshots[] |
object[] | |
screenshots[].url |
string | |
screenshots[].title |
string | |
screenshots[].description |
string | |
alternatives[] |
object[] | |
alternatives[].rating |
number |
Ready-to-run examples live in the examples/ folder. Each one reads your key from the PILOTERR_API_KEY environment variable.
| Language | Product Info |
|---|---|
| cURL (Bash) | product-info |
| PHP | product-info |
| C# | product-info |
| Go | product-info |
| Java | product-info |
| Ruby | product-info |
| Node.js | product-info |
- Lead generation — Build target account lists from public company data.
- CRM enrichment — Keep firmographics, websites and descriptions up to date.
- Market mapping — Map competitors and segments across countries and industries.
- Investment research — Screen companies, funding and signals for deal flow.
- Job market analytics — Track hiring, roles and salaries where available.
- No infrastructure — no proxies, headless browsers or CAPTCHA solving to run yourself.
- Structured JSON — stable, documented fields instead of brittle HTML selectors.
- Pay per request — transparent credit cost per endpoint, failed requests are retried for you.
- One API key, hundreds of sources — G2 plus many other e-commerce, search and company data endpoints in the Piloterr library.
- Any language — plain HTTPS + JSON, with examples for Python, TypeScript, cURL, PHP, C#, Go, Java, Ruby and Node.js.
Collecting publicly available data is generally allowed in many jurisdictions, but rules depend on your country, the data you collect and how you use it. Avoid personal data unless you have a lawful basis, respect the website's terms where they apply, and get legal advice for your specific use case. This is not legal advice.
No. Piloterr handles rendering, proxy rotation and retries on its side. You only send an HTTPS request with your x-api-key header and receive JSON.
Credits per call: /v2/g2/product/info 2. See the Piloterr website for plans.
Each endpoint returns structured JSON: G2 Product Info — rating, reviews[], reviews[].reviewer, reviews[].review_id, reviews[].review_link, reviews[].publish_date.
Yes. Set return_page_source=true and the response becomes {"result": "..."} with the page source.
Any language that can make an HTTP request. This README shows Python and TypeScript; the examples/ folder contains cURL, PHP, C#, Go, Java, Ruby and Node.js.
Use Piloterr from your own language with a typed client:
| SDK | Package | Install |
|---|---|---|
| Node.js | @piloterr/sdk |
npm install @piloterr/sdk |
| Python | piloterr |
pip install piloterr |
| Go | piloterr-go |
go get github.com/piloterr/piloterr-go |
| .NET | Piloterr |
dotnet add package Piloterr |
| Ruby | piloterr |
gem install piloterr |
| PHP | piloterr/sdk |
composer require piloterr/sdk |
| Java | piloterr-java |
build from source, see its README |
| CLI | @piloterr/cli |
npm install -g @piloterr/cli |
| MCP server | @piloterr/mcp |
npx -y @piloterr/mcp |
- Company Database Scraper API
- Crunchbase Scraper API
- Europages Scraper API
- Fiverr Scraper API
- GitHub Scraper API
- Glassdoor Scraper API
- All Piloterr scrapers on GitHub
- 💬 Join the Piloterr Discord to ask questions and share what you build.
- 📚 Browse the API reference (OpenAPI) and the Piloterr library.
- 🔑 Get your API key.
Built by Piloterr — web scraping APIs for e-commerce, search, real estate and more, one API key.
G2 is a trademark of its respective owner. This repository is not affiliated with or endorsed by G2. Examples are released under the MIT license.
