[Home](https://scrapfly.io/)/[Scrapers](https://scrapfly.io/scrapers)/G2

Reviews · ratings · search · alternatives

# // G2 Scraper API

Get G2 software reviews, star ratings, review counts, search results and ranked alternatives as clean JSON. Scrapfly handles G2's DataDome bot check, so you send a URL and read the data.

- **Clone it and run it.** An open-source G2 scraper for reviews, search results and alternatives pages, tested against live G2 every night.
- **Rating, review count and reviews in one request.** Read the product data G2 embeds in each reviews page: product name, average rating, review count and categories, plus each review's title, rating, date and text.
 
 [Get free API key](https://scrapfly.io/register) [View GitHub scraper](https://github.com/scrapfly/scrapfly-scrapers/tree/main/g2-scraper) [Read Unblocker docs](https://scrapfly.io/docs/scrape-api/unblocker) 

1,000 free credits. No credit card required.

 [  ](https://scrapeway.com/web-scraping-api/scrapfly) [  ](https://www.capterra.com/p/212653/Scrapfly/)  

 4.9/5 from 238 reviews 

 



 

 

 G2 pages · illustration

 

 

 Product JSON**Output**

```
{
  <span class="c-str">"product"</span>: <span class="c-str">"DigitalOcean"</span>,
  <span class="c-str">"rating"</span>: <span class="c-num">4.6</span>,
  <span class="c-str">"reviews"</span>: <span class="c-num">757</span>,
  <span class="c-str">"categories"</span>: <span class="c-num">9</span>,
  <span class="c-str">"first_review"</span>: {
    <span class="c-str">"rating"</span>: <span class="c-num">4.5</span>,
    <span class="c-str">"date"</span>: <span class="c-str">"2026-10-07"</span>
  }
}
```

Printed by the Python request below[See the request ↓](#implementation)

  

What you can scrape from G2

Four kinds of G2 data you can scrape with Scrapfly, no G2 account required.

 

## // Scrape G2 reviews

Each reviews page lists 10 reviews with the title, star rating and date, the answers to "What do you like best" and "What do you dislike", tags such as Validated Reviewer, Current User or Incentivized, and the reviewer's company size segment.

- reviewTitle
- reviewRate
- reviewData
- reviewLikes
- reviewDislikes
- reviewTags
- authorCompanySize

  

## // Scrape G2 ratings and review counts

Every product reviews page carries the average star rating, the total number of reviews and the G2 categories the product is listed in, as structured data inside the page. The block is there even when the review cards have not loaded, so you can read it without parsing a single review.

- aggregateRating
- ratingValue
- reviewCount
- applicationCategory

  

## // Scrape G2 search results

Search G2 by keyword and get 20 products per results page with name, G2 URL, logo, description and categories, plus the star rating and review count of every reviewed product and the number of matching products. Add `&page=2` for the next page.

- name
- link
- image
- rate
- reviewsNumber
- description
- categories

  

## // Scrape G2 alternatives and competitors

The top 10 alternatives G2 lists for a product, in rank order, with name, G2 URL, star rating, review count and tagline. Map a product's competitors from the products G2 itself puts next to it.

- ranking
- name
- link
- rate
- numberOfReviews
- description

  



Reliability

## // Get past G2's DataDome bot check

G2 runs DataDome in front of its product, review, search and alternatives pages. A plain request from a datacenter IP gets HTTP 403 and a DataDome challenge page that asks you to enable JavaScript, instead of the content. Use Unblocker (formerly ASP) with residential proxies to fetch G2 pages.

`unblocker=true`

Enable Scrapfly's [Unblocker](https://scrapfly.io/products/unblocker) for G2's DataDome challenge.



`proxy_pool=residential`

Send requests through residential proxies, with `country=US` for G2.



`render_js=true`

Review cards can load after the first HTML response. Render JavaScript on reviews pages and wait for `section#reviews article` before parsing.



 



Choose your tools

## // Scrapfly products for G2 scraping

Start with the Web Scraping API, Unblocker and residential proxies. Add a review extraction model, screenshots, a browser session or a URL-list crawl as your workflow needs them. One API key covers all five products.

 

### Web Scraping API for G2

Fetch reviews, search and alternatives URLs with Unblocker and residential proxies. Render JavaScript on reviews pages so the review cards are in the HTML you get back.

Read the product data embedded in the page, or parse the review cards, search results and alternatives directly.

```
GET /scrape?url=https://www.g2.com/products/digitalocean/reviews&unblocker=true&render_js=true&proxy_pool=residential&country=US
```

 [Explore Web Scraping API →](https://scrapfly.io/products/web-scraping-api)  

### Data Extraction API for G2 reviews

Add `extraction_model=review_list` to get the reviews on a page as a standard list, with no parser to write.

Get each review's title, text, rating, date and a sentiment label, plus the product's average rating and review count, in the same schema you use for other review sites.

```
GET /scrape?url=https://www.g2.com/products/digitalocean/reviews&unblocker=true&render_js=true&proxy_pool=residential&country=US&extraction_model=review_list
```

 [Explore Data Extraction API →](https://scrapfly.io/products/extraction-api)  

### Screenshot API for G2 pages

Capture a product's reviews page with its rating, review count and review cards.

Keep a dated visual record of how a product appears on G2 alongside your JSON.

```
GET /screenshot?url=https://www.g2.com/products/digitalocean/reviews&country=us&capture=fullpage&format=png
```

 [Explore Screenshot API →](https://scrapfly.io/products/screenshot-api)  

### Cloud Browser API for G2 sessions

Call the Cloud Browser Unblock API with a G2 URL to get a hosted Chromium session that is already past the DataDome check.

Connect Playwright or Puppeteer to the returned `ws_url`, open the reviews page, wait for the review cards and read the rendered content.

```
POST https://browser.scrapfly.io/unblock?key=KEY {"url": "https://www.g2.com/products/digitalocean/reviews", "country": "us"}
```

 [Explore Cloud Browser API →](https://scrapfly.io/products/cloud-browser-api)  

### Crawler API for lists of G2 URLs

Submit alternatives, search and product URLs as one bounded job, with Unblocker and residential proxies applied to the requests.

Ask for HTML output and parse the alternatives, search results and product data after the job finishes.

- url\_list
- unblocker
- proxy\_pool
- country
- content\_formats

 [Explore Crawler API →](https://scrapfly.io/products/crawler-api)  



One request

## // Fetch a G2 reviews page and read its rating

The JSON at the top is what this code prints for DigitalOcean's reviews page on G2: one rendered request, then fields from the product data G2 embeds in the page.

Install `scrapfly-sdk` and replace the key below. The example uses only the SDK and Python's standard library.

**Prefer the full scraper?** The open-source [G2 scraper on GitHub](https://github.com/scrapfly/scrapfly-scrapers/tree/main/g2-scraper) collects search results across pages, a product's reviews and its alternatives, in Python 3.10. It runs against live G2 every night. Clone it, set `SCRAPFLY_KEY`, and point it at your own search or product URL.

 

 Python · scrapfly-sdkscrape + parse

```
<span class="c-key">import</span> json
<span class="c-key">import</span> re
<span class="c-key">from</span> scrapfly <span class="c-key">import</span> ScrapeConfig, ScrapflyClient

client = ScrapflyClient(key=<span class="c-str">"YOUR_SCRAPFLY_KEY"</span>)
result = client.scrape(ScrapeConfig(
    <span class="c-str">"https://www.g2.com/products/digitalocean/reviews"</span>,
    unblocker=<span class="c-key">True</span>, render_js=<span class="c-key">True</span>,
    wait_for_selector=<span class="c-str">"section#reviews article"</span>,
    proxy_pool=<span class="c-str">"residential"</span>, country=<span class="c-str">"US"</span>,
))
pattern = <span class="c-str">r'<script type="application/ld\+json">(.*?)</script>'</span>
docs = [json.loads(b)
        <span class="c-key">for</span> b <span class="c-key">in</span> re.findall(pattern, result.content, re.S)]
app = next((d <span class="c-key">for</span> d <span class="c-key">in</span> docs
            <span class="c-key">if</span> d.get(<span class="c-str">"@type"</span>) == <span class="c-str">"SoftwareApplication"</span>), <span class="c-key">None</span>)
<span class="c-key">if</span> app <span class="c-key">is</span> <span class="c-key">None</span>:
    <span class="c-key">raise</span> RuntimeError(<span class="c-str">"No product data in the response"</span>)
rating = app[<span class="c-str">"aggregateRating"</span>]
review = app[<span class="c-str">"review"</span>][<span class="c-num">0</span>]
product = {
    <span class="c-str">"product"</span>: app[<span class="c-str">"name"</span>],
    <span class="c-str">"rating"</span>: rating[<span class="c-str">"ratingValue"</span>],
    <span class="c-str">"reviews"</span>: rating[<span class="c-str">"reviewCount"</span>],
    <span class="c-str">"categories"</span>: len(app[<span class="c-str">"applicationCategory"</span>].split(<span class="c-str">","</span>)),
    <span class="c-str">"first_review"</span>: {
        <span class="c-str">"rating"</span>: review[<span class="c-str">"reviewRating"</span>][<span class="c-str">"ratingValue"</span>],
        <span class="c-str">"date"</span>: review[<span class="c-str">"datePublished"</span>][:<span class="c-num">10</span>],
    },
}
print(json.dumps(product, indent=<span class="c-num">2</span>, ensure_ascii=<span class="c-key">False</span>))
```

 

 



What the data is used for

## // Common G2 scraping use cases

### Competitor review monitoring

Track new reviews, ratings and review counts for your product and its competitors.



### Voice-of-customer research

Collect what reviewers like and dislike about the products in a category.



### Rating benchmarks

Compare average ratings and review counts across a category from search results.



### Competitive landscape mapping

Build competitor lists from the alternatives G2 ranks next to a product.



### Software market research

List the products for a keyword with their descriptions and G2 categories.



### Review sentiment tracking

Score review text over time with the extraction model's sentiment label.



 



Common questions

## // G2 scraping FAQ

 Is scraping G2 legal?

There is no universal answer. Legality depends on your jurisdiction, the data, the access method and how you use the result. Keep the workflow to public pages, avoid signed-in content, treat reviewer names and profile links as personal data, review G2's terms of use, and get legal advice for commercial use.

 Does G2 have a public API?

G2's API is for G2 customers: vendors create an API token in their G2 account and use it for data about their own products, such as new leads and visits to their product profile. These requests read public G2 pages signed out, so you need a Scrapfly API key, not a G2 account or API token.

 Why does G2 return HTTP 403?

That is G2's DataDome bot check. It answers with HTTP 403 and a challenge page that asks you to enable JavaScript. Set `unblocker=true`, `proxy_pool=residential` and `country=US`, and check that the response contains the product data before parsing it.

 Can I get a G2 rating without rendering the page?

Yes. The average rating, review count and categories sit in the structured data of every product reviews page, including responses where the review cards have not loaded yet. Only the review cards need JavaScript rendering: render the page and wait for `section#reviews article` before parsing them.

 Can I scrape G2 search results?

Yes. A search page lists 20 products with name, G2 URL, logo, description and categories, plus the star rating and review count of every reviewed product and the number of matching products. Add `&page=2` to the search URL for the next page.

 Can I scrape a product's G2 alternatives?

Yes. A product's alternatives page lists the top 10 alternatives G2 shows for it, in rank order, with name, G2 URL, star rating, review count and tagline.

 How much does scraping G2 cost?

A G2 page with Unblocker and residential proxies costs 40 credits, or 45 when the request renders JavaScript. Reviews pages need rendering, and Unblocker also renders when it solves a new DataDome challenge. The review extraction model adds credits based on the response size. Every account starts with 1,000 free credits.

 What are the rate limits when scraping G2?

Scrapfly sets no G2-specific limit. Your maximum parallelism is the concurrency quota on your plan, or a lower cap configured for the project. Each in-flight request uses one slot until it finishes.

 



Start with one request

## Fetch the URL. Read the JSON.

Web Scraping API with Unblocker and residential proxies, one call per G2 URL.

Proxies across 190+ countries

 [G2 scraper on GitHub](https://github.com/scrapfly/scrapfly-scrapers/tree/main/g2-scraper) [How to scrape G2](https://scrapfly.io/blog/posts/how-to-scrape-g2-company-data-and-reviews) [All scraper pages](https://scrapfly.io/scrapers) 

 

 [Get free API key](https://scrapfly.io/register) [Read the docs](https://scrapfly.io/docs/scrape-api/unblocker)