scraper
Back to API docs

Overview

  • Overview

APIs

  • POSTAnalytics
  • POSTProducts
  • POSTDiscussions
  • POSTReviews
  • POSTFacet Values

G2 Analytics

1 credit

Get product analytics from G2.

POST/api/v1/tools/g2/analytics

Parameters

productsstring[]required

Array of product slugs (min 1 item).

ratingsnumber[]

Filter by rating values 1-5. Defaults to [1,2,3,4,5].

companySegmentstring[]

Filter by company segment. Values: "small_business", "mid_market", "enterprise".

primaryRegionsstring[]

Filter by primary region: "Americas", "Asia Pacific", or "EMEA".

sourceTypesstring[]

Filter by G2 review source type.

responseTypesstring[]

Filter by review response type.

loveThemesstring[]

Filter by positive review themes.

hateThemesstring[]

Filter by negative review themes.

switchingThemesstring[]

Filter by product-switching themes.

discountsstring[]

Filter by disclosed discount values.

reviewSourcesstring[]

Filter by review source.

dateFromstring

Start date filter (ISO string).

dateTostring

End date filter (ISO string).

includeNonPublicboolean

Also count approved reviews that G2 does not show publicly. Defaults to true. Set false for public reviews only.

Response Schema

dataobject

G2 analytics result

analyticsobject[]

Array of product analytics objects

countnumber

Number of products returned

metaobject

Request metadata

toolstring

Tool name (g2-analytics)

creditsUsednumber

Credits consumed (1)

requestIdstring

Unique request ID

Request

curl -X POST https://scraper.run/api/v1/tools/g2/analytics \
-H "Authorization: Bearer sc_live_..." \
-H "Content-Type: application/json" \
-d '{
"products": ["slack"],
"ratings": [4, 5],
"companySegment": ["enterprise"]
}'

Response Example

{
"data": {
"analytics": [
{
"productName": "Slack",
"productSlug": "slack",
"totalReviews": 12450,
"ratingDistribution": {
"1": 120,
"2": 340,
"3": 1200,
"4": 4500,
"5": 6290
},
"nps": {
"avg": 8.2,
"count": 12450
},
"easeOfUse": {
"avg": 8.7,
"count": 11200
},
"topLoveThemes": [
{
"theme": "Easy communication",
"count": 3200
}
],
"topHateThemes": [
{
"theme": "Notification overload",
"count": 890
}
]
}
],
"count": 1
},
"meta": {
"tool": "g2-analytics",
"creditsUsed": 1,
"requestId": "req_abc123"
}
}