G2 Scraper is a powerful tool designed to extract valuable data from G2.com, the leading platform for business software reviews. This scraper allows you to gather comprehensive information about software products, user reviews, and market trends, providing you with actionable insights for your business decisions.
Data Point | Description |
---|---|
Review ID | Unique identifier for each review |
Author Information | Reviewer's name, position, and company size |
Rating | Star rating given by the reviewer |
Review Content | Title, text, and specific question responses |
Product Details | Name, URL, and vendor information |
Metadata | Review date, tags, and verification status |
The G2 Scraper API allows you to extract detailed software product information and reviews from G2.com. This powerful tool enables developers to integrate G2 data into their applications, conduct market research, or monitor trends and user feedback across various software products and categories.
To use the G2 Scraper API, you'll need to authenticate your requests using your API key. The API provides two endpoints for retrieving product information and reviews:
Include your API key in the request headers:
Authorization: Bearer YOUR_API_KEY
The request body should be a JSON object with the following structure:
// For product-reviews endpoint
{
"url": "https://www.g2.com/products/product-name/reviews"
}
// For product-overview endpoint
{
"url": "https://www.g2.com/products/product-name"
}
Please note that usage is subject to rate limiting. Refer to your plan details for specific limits.
import requests
import json
# Your API Key
api_key = 'YOUR_API_KEY'
# API Endpoint for product reviews
url = 'https://taskagi.net/api/b2b/g2-scraper/product-reviews'
# Headers
headers = {
'Authorization': f'Bearer {api_key}',
'Content-Type': 'application/json'
}
# Request Body
data = {
'url': 'https://www.g2.com/products/example-product/reviews'
}
# Send POST request
response = requests.post(url, headers=headers, json=data)
# Check if the request was successful
if response.status_code == 200:
# Parse the JSON response
product_reviews = response.json()
# Print the product reviews
print(json.dumps(product_reviews, indent=2))
else:
print(f"Error: {response.status_code}")
print(response.text)
# API Endpoint for product overview
url = 'https://taskagi.net/api/b2b/g2-scraper/product-overview'
# Request Body
data = {
'url': 'https://www.g2.com/products/example-product'
}
# Send POST request
response = requests.post(url, headers=headers, json=data)
# Check if the request was successful
if response.status_code == 200:
# Parse the JSON response
product_overview = response.json()
# Print the product overview
print(json.dumps(product_overview, indent=2))
else:
print(f"Error: {response.status_code}")
print(response.text)