scraper
Back to API docs

Overview

  • Overview

APIs

  • POSTAnalytics
  • POSTProducts
  • POSTDiscussions
  • POSTReviews
  • POSTFacet Values

G2 Facet Values

1 credit

Discover valid source values for G2 review facets.

POST/api/v1/tools/g2/facets

Parameters

fieldstringrequired

Facet field: source_type, response_type, love_theme_humanized, hate_theme_humanized, switching_theme_humanized, discount, or review_source.

Response Schema

dataobject

G2 facet values

fieldstring

Requested source field

valuesstring[]

Up to 500 distinct values

countnumber

Values returned

metaobject

Request metadata

toolstring

Tool name (g2-facets)

creditsUsednumber

Credits consumed (1)

requestIdstring

Unique request ID

Request

curl -X POST https://scraper.run/api/v1/tools/g2/facets \
-H "Authorization: Bearer sc_live_..." \
-H "Content-Type: application/json" \
-d '{
"field": "source_type"
}'

Response Example

{
"data": {
"field": "source_type",
"values": [
"organic",
"user_profile"
],
"count": 2
},
"meta": {
"tool": "g2-facets",
"creditsUsed": 1,
"requestId": "req_abc123"
}
}