> ## Documentation Index
> Fetch the complete documentation index at: https://docs.scrapeunblocker.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Scrape G2 software reviews

> Given a G2 `product` (slug like `slack`, or a g2.com product URL), returns the product summary (`name`, `rating`, `reviewCount`, `starDistribution`, `categories`, `aiSummary`, `pros`, `cons`, `segments`) and its `reviews`: `title`, `rating`, `date`, `reviewer` (job title, industry, company size), `likeBest`, `dislike`, `problemsSolved`, the full `answers`, badges (`validatedReviewer`, `currentUser`, `incentivized`, `source`) and `vendorResponse`. Pages through G2's review pages up to `max_results` (10 per page, at most 10 pages per view); pick the view with `sort`, `stars` and `search`. `details=true` adds the vendor, description, website and languages. `mode=search&query=` searches G2's product catalog. Billed one unit per page fetched (`pagesFetched`).



## OpenAPI

````yaml /api-reference/openapi.json post /reviews/g2
openapi: 3.1.0
info:
  title: ScrapeUnblocker API
  description: >-
    Public API for the ScrapeUnblocker proxy/anti-bot service. Authenticate
    every request with the `x-scrapeunblocker-key` header. Documented here:
    page-source extraction, Google SERP scraping, image fetch, and the dedicated
    plugin endpoints (search engines, marketplaces, reviews, travel, social and
    more). All other paths exist for internal operations and are intentionally
    hidden from this spec.
  version: 3.0.0
servers:
  - url: https://api.scrapeunblocker.com
    description: Production
security: []
paths:
  /reviews/g2:
    post:
      tags:
        - Plugins
      summary: Scrape G2 software reviews
      description: >-
        Given a G2 `product` (slug like `slack`, or a g2.com product URL),
        returns the product summary (`name`, `rating`, `reviewCount`,
        `starDistribution`, `categories`, `aiSummary`, `pros`, `cons`,
        `segments`) and its `reviews`: `title`, `rating`, `date`, `reviewer`
        (job title, industry, company size), `likeBest`, `dislike`,
        `problemsSolved`, the full `answers`, badges (`validatedReviewer`,
        `currentUser`, `incentivized`, `source`) and `vendorResponse`. Pages
        through G2's review pages up to `max_results` (10 per page, at most 10
        pages per view); pick the view with `sort`, `stars` and `search`.
        `details=true` adds the vendor, description, website and languages.
        `mode=search&query=` searches G2's product catalog. Billed one unit per
        page fetched (`pagesFetched`).
      operationId: g2_reviews_reviews_g2_post
      parameters:
        - name: product
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: >-
              G2 product slug, e.g. 'slack' or 'hubspot-sales-hub', or a g2.com
              product URL such as https://www.g2.com/products/slack/reviews.
              Required unless mode=search.
            title: Product
          description: >-
            G2 product slug, e.g. 'slack' or 'hubspot-sales-hub', or a g2.com
            product URL such as https://www.g2.com/products/slack/reviews.
            Required unless mode=search.
        - name: mode
          in: query
          required: false
          schema:
            type: string
            description: >-
              'reviews' (default): a product's reviews. 'search': search G2's
              product catalog for `query`.
            default: reviews
            title: Mode
          description: >-
            'reviews' (default): a product's reviews. 'search': search G2's
            product catalog for `query`.
        - name: query
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Keyword to search G2 products for (mode=search), e.g. 'crm'.
            title: Query
          description: Keyword to search G2 products for (mode=search), e.g. 'crm'.
        - name: page
          in: query
          required: false
          schema:
            type: integer
            description: >-
              1-based page to start from: 10 reviews per page, at most 10 (G2's
              limit per sort/filter view); with mode=search 20 products per
              page, at most 20. Use the `nextPage` of a previous response to
              continue.
            default: 1
            title: Page
          description: >-
            1-based page to start from: 10 reviews per page, at most 10 (G2's
            limit per sort/filter view); with mode=search 20 products per page,
            at most 20. Use the `nextPage` of a previous response to continue.
        - name: max_results
          in: query
          required: false
          schema:
            anyOf:
              - type: integer
              - type: 'null'
            description: >-
              How many reviews to collect across pages (1-100, default 10). With
              mode=search, how many products (1-100, default 20) - search
              answers whole pages of 20, so it can return a few more. Each page
              fetched is one billed unit.
            title: Max Results
          description: >-
            How many reviews to collect across pages (1-100, default 10). With
            mode=search, how many products (1-100, default 20) - search answers
            whole pages of 20, so it can return a few more. Each page fetched is
            one billed unit.
        - name: sort
          in: query
          required: false
          schema:
            type: string
            description: >-
              Review order: g2_default, most_recent, most_helpful,
              highest_rated, lowest_rated. Default: G2's own ranking.
            default: g2_default
            title: Sort
          description: >-
            Review order: g2_default, most_recent, most_helpful, highest_rated,
            lowest_rated. Default: G2's own ranking.
        - name: stars
          in: query
          required: false
          schema:
            anyOf:
              - type: integer
              - type: 'null'
            description: Only reviews with this star rating (1-5).
            title: Stars
          description: Only reviews with this star rating (1-5).
        - name: search
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Only reviews whose answers mention this keyword.
            title: Search
          description: Only reviews whose answers mention this keyword.
        - name: details
          in: query
          required: false
          schema:
            type: boolean
            description: >-
              Also fetch the product page for its vendor, description, website
              and languages (one more billed unit).
            default: false
            title: Details
          description: >-
            Also fetch the product page for its vendor, description, website and
            languages (one more billed unit).
        - name: proxy_country
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: >-
              Exit-IP country (ISO-2). Leave blank for the exit chosen for the
              domain.
            title: Proxy Country
          description: >-
            Exit-IP country (ISO-2). Leave blank for the exit chosen for the
            domain.
      responses:
        '200':
          description: >-
            JSON with `product`, a `reviews` array, totals and `nextPage` (or
            `results` with mode=search).
          content:
            application/json:
              schema: {}
        '400':
          description: Invalid parameters.
        '404':
          description: G2 has no product with that slug.
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '502':
          description: >-
            Blocked by G2, no review page returned, or G2 did not answer in
            time.
      security:
        - ScrapeUnblockerKey: []
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    ScrapeUnblockerKey:
      type: apiKey
      in: header
      name: x-scrapeunblocker-key
      description: Your ScrapeUnblocker API key. Apply on every request.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.