---
title: "G2 API: software search, suggestions as JSON | Perceptlayer"
description: "G2 API for software search and suggestions, product ratings, features, pricing, filtered reviews, alternatives and comparisons as JSON. 1 credit per call."
url: https://perceptlayer.com/apis/g2
---

[APIs](https://perceptlayer.com/apis) / [Reviews](https://perceptlayer.com/verticals/reviews) / G2

1 credit per call 11 endpoints 13 datapoints 

# G2 API

G2 API for software search and suggestions, product ratings, features, pricing, filtered reviews, alternatives and comparisons as JSON. 1 credit per call.

[Get a free API key](https://perceptlayer.com/signup) Run it below

G2

GET /v1/g2/search?query=crm&page=1&order=popular 

```
{
  "success": true,
  "data": {
    "query": "crm",
    "order": "popular",
    "results": [
      {
        "id": 7372,
        "uuid": "090c6f73-9bae-4323-98ac-8880acea7fbd",
        "slug": "zoom-workplace",
        "name": "Zoom Workplace",
        "vendor": "Zoom",
        "vendor_id": 5786,
        "vendor_slug": "zoom-a5000ea1-6d30-4ab4-b591-20723189ac97",
        "rating": 4.5,
        "review_count": 56474,
        "categories": [
          {
            "id": 19,
            "name": "Video Conferencing",
            "slug": "video-conferencing"
          }
        ],
        "image_url": "https://images.g2crowd.com/uploads/product/image/528f622c63c3c11dc3f068e3abe26a0c/zoom-workplace.png",
        "url": "https://www.g2.com/products/zoom-workplace/reviews",
        "position": 1
      },
      {
        "id": 1434,
        "uuid": "12952123-2f96-4695-87b4-ecb71299a14d",
        "slug": "google-workspace",
        "name": "Google Workspace",
        "vendor": "Google",
        "vendor_id": 311,
        "vendor_slug": "google",
        "rating": 4.6,
        "review_count": 48302,
        "categories": [
          {
            "id": 1015815,
            "name": "AI Content Intelligence Platforms",
            "slug": "ai-content-intelligence-platforms"
          }
        ],
        "image_url": "https://images.g2crowd.com/uploads/product/image/4a9a6d57cdd833bf0381d21fd9246641/google-workspace.png",
        "url": "https://www.g2.com/products/google-workspace/reviews",
        "position": 2
      },
      {
        "id": 3437,
        "uuid": "bdac866e-7e0a-490c-b679-c43570cce3ce",
        "slug": "slack",
        "name": "Slack",
        "vendor": "Salesforce",
        "vendor_id": 469,
        "vendor_slug": "salesforce",
        "rating": 4.5,
        "review_count": 40491,
        "categories": [
          {
            "id": 2360,
            "name": "Work Management",
            "slug": "work-management"
          }
        ],
        "image_url": "https://images.g2crowd.com/uploads/product/image/f6ee5c9dddbf5c28b136829c8782ed1b/slack.png",
        "url": "https://www.g2.com/products/slack/reviews",
        "position": 3
      }
    ],
    "count": 20,
    "available_filters": {},
    "pagination": {
      "page": 1,
      "last_page": 400,
      "has_next": true
    }
  },
  "meta": {
    "endpoint_family": "search",
    "request_id": "req_88ad2af08ad24a91afc6e76ac5a4a2d9",
    "credits_charged": 1,
    "credits_remaining": 1785
  }
}
```

200 OK JSON X-Credits-Used: 1

Recorded from our API and shortened.

Sample data

## What one call returns

A recorded run of `search`: the fields and shapes you will get, shortened to 3 items.

| # | id integer | uuid string | slug string | name string | vendor string | vendor\_id integer | vendor\_slug string | rating number | review\_count integer | categories object\[\] | image\_url url | url url | position integer |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| 1 | 7372 | 090c6f73-9bae-4323-98ac-8880acea7fbd | zoom-workplace | Zoom Workplace | Zoom | 5786 | zoom-a5000ea1-6d30-4ab4-b591-20723189ac97 | 4.5 | 56474 | \[1 item\] | https://images.g2crowd.com/uploads/product/image/528f622c63c3c11dc3f068e3abe26a0c/zoom-workplace.png | https://www.g2.com/products/zoom-workplace/reviews | 1 |
| 2 | 1434 | 12952123-2f96-4695-87b4-ecb71299a14d | google-workspace | Google Workspace | Google | 311 | google | 4.6 | 48302 | \[1 item\] | https://images.g2crowd.com/uploads/product/image/4a9a6d57cdd833bf0381d21fd9246641/google-workspace.png | https://www.g2.com/products/google-workspace/reviews | 2 |
| 3 | 3437 | bdac866e-7e0a-490c-b679-c43570cce3ce | slack | Slack | Salesforce | 469 | salesforce | 4.5 | 40491 | \[1 item\] | https://images.g2crowd.com/uploads/product/image/f6ee5c9dddbf5c28b136829c8782ed1b/slack.png | https://www.g2.com/products/slack/reviews | 3 |

Recorded from our API · 3 items shown · 13 datapoints per item GET /v1/g2/search?query=crm&page=1&order=popular

13 datapoints

### Identity

-   id integer
-   uuid string
-   slug string
-   name string
-   vendor\_id integer
-   vendor\_slug string

### Contact

-   image\_url url
-   url url

### Reputation

-   rating number
-   review\_count integer

### Other

-   vendor string
-   categories object\[\]
-   position integer

Playground

## Run this API

cURL shell 

```
curl "https://api.perceptlayer.com/v1/g2/search?query=crm&page=1&order=popular" \
  -H "X-API-Key: $API_KEY"
```

G2 · 11 endpoints

## Endpoints

Every endpoint takes the same key. Open one for its parameters, the fields it returns and an example request.

| Endpoint | Required parameters | Returns | Cost |
| --- | --- | --- | --- |
| [GET `/v1/g2/categories`](https://perceptlayer.com/apis/g2/categories) | none | JSON | 1 credit |
| [GET `/v1/g2/categories-grid`](https://perceptlayer.com/apis/g2/categories-grid) | `slug` +1 optional | JSON | 1 credit |
| [GET `/v1/g2/compare`](https://perceptlayer.com/apis/g2/compare) | `a` `b` | JSON | 1 credit |
| [GET `/v1/g2/products`](https://perceptlayer.com/apis/g2/products) | `slug` +1 optional | JSON | 1 credit |
| [GET `/v1/g2/products-alternatives`](https://perceptlayer.com/apis/g2/products-alternatives) | `slug` | JSON | 1 credit |
| [GET `/v1/g2/products-features`](https://perceptlayer.com/apis/g2/products-features) | `slug` | JSON | 1 credit |
| [GET `/v1/g2/products-pricing`](https://perceptlayer.com/apis/g2/products-pricing) | `slug` | JSON | 1 credit |
| [GET `/v1/g2/reviews`](https://perceptlayer.com/apis/g2/reviews) | `slug` +9 optional | JSON | 1 credit |
| [GET `/v1/g2/search`](https://perceptlayer.com/apis/g2/search) | `query` +4 optional | `order` `results` `available_filters` `pagination` | 1 credit |
| [GET `/v1/g2/sellers`](https://perceptlayer.com/apis/g2/sellers) | `slug` | JSON | 1 credit |
| [GET `/v1/g2/suggest`](https://perceptlayer.com/apis/g2/suggest) | `query` +1 optional | JSON | 1 credit |

Overview

## About the G2 API

## What you can get

The G2 API returns G2 software data as JSON through 11 endpoints.

-   **Search:** `search` takes a `query`, with `page`, `order` (relevance, popular, top\_shelf or alphabetical), `star_rating[]` and `category_id[]`. `suggest` takes a `query`, with `limit`.
-   **Products:** `products` takes a `slug`, with `include[]` (sub\_ratings). `products-features`, `products-pricing` and `products-alternatives` take a `slug`.
-   **Reviews:** `reviews` takes a `slug`, with `stars[]`, `company_size[]` (small\_business, mid\_market or enterprise), `region[]` (north\_america, asia, europe, latin\_america, anz, middle\_east or africa), `role[]`, `industry[]`, `category_id[]`, `coverage` (latest or extended), `sort` (most\_relevant, most\_recent, most\_helpful, highest\_rated or lowest\_rated) and `page`.
-   **Compare:** `compare` takes two product slugs, `a` and `b`.
-   **Categories:** `categories` lists them; `categories-grid` takes a category `slug`, with `company_size` (small\_business or enterprise).
-   **Sellers:** `sellers` takes a vendor `slug`.

The recorded `search` call for "crm" ( `order` popular, `page` 1) returns `results`, each with `id`, `slug`, `name`, `vendor`, `vendor_slug`, `rating`, `review_count`, `categories` ( `id`, `name`, `slug`), `url` and `position`. It also returns `count`, and `pagination` with `page`, `last_page` and `has_next`.

## How a call works

Search, then look up: `GET /v1/g2/search?query=crm&order=popular&page=1` with your key in the `X-API-Key` header returns each product's `slug`, which `products`, `reviews`, `products-pricing` and the other product endpoints take. A result's `vendor_slug` goes to `sellers`. Every successful call costs 1 credit; failed calls cost nothing.

Reviews JSON REST MCP

### More reviews APIs

[11880.com](https://perceptlayer.com/apis/11880) [Bazaarvoice](https://perceptlayer.com/apis/bazaarvoice) [Capterra](https://perceptlayer.com/apis/capterra) [Clutch](https://perceptlayer.com/apis/clutch) [ConsumerAffairs](https://perceptlayer.com/apis/consumeraffairs) [Das Örtliche](https://perceptlayer.com/apis/dasoertliche) [Doctolib](https://perceptlayer.com/apis/doctolib) [Feefo](https://perceptlayer.com/apis/feefo) [Fresha](https://perceptlayer.com/apis/fresha) [Gelbe Seiten](https://perceptlayer.com/apis/gelbeseiten) [GoodFirms](https://perceptlayer.com/apis/goodfirms) [Goodreads](https://perceptlayer.com/apis/goodreads)

Use cases

### Track the rating and review count of your product and competitors

`Use the G2 API to track the rating and review count of your product and competitors` 

### Collect five-star or one-star reviews by company size and region, without reviewer details

`Use the G2 API to collect five-star or one-star reviews by company size and region, without reviewer details` 

### Compare two products' features and pricing side by side

`Use the G2 API to compare two products' features and pricing side by side` 

### List the alternatives G2 shows for a competitor

`Use the G2 API to list the alternatives G2 shows for a competitor` 

FAQ

## Questions

**Do I need a G2 vendor account?**

No. You call this G2 API with your Perceptlayer key in the \`X-API-Key\` header, and it reads any public product page, not only your own.

**How much does the G2 API cost?**

Each successful call costs one credit. New accounts get free credits to start, and credit packs bring the price down as you scale.

**Can I filter reviews by star rating?**

Yes. Pass one or more values in \`stars\[\]\` to \`reviews\`, for example \`stars\[\]=5\`, and combine them with \`company\_size\[\]\` or \`region\[\]\`.

**What format are responses in?**

Every endpoint returns JSON, with no HTML parsing on your side.

**Is this the official G2 API?**

No. Perceptlayer is an independent service and is not affiliated with G2. It returns G2 data as JSON with a Perceptlayer key, so there is no G2 developer account, app review or partner approval to get first. It only reads data: if G2 has an official API and you need to act on your own G2 account, such as posting, managing orders or reading private data, use that one.

**Should I build a G2 scraper instead?**

You can, but a G2 scraper is code you maintain: page changes break it, requests get blocked, and G2's terms govern how you collect data. The G2 API gives you 11 endpoints of named JSON fields for 1 credit per successful call, and failed calls cost nothing. A scraper makes sense only for data these endpoints don't return, so check the response in the playground on this page first.

## Try the G2 API with 100 free credits

No credit card. Failed calls are never billed.

[Get a free API key](https://perceptlayer.com/signup) [Read the docs](https://docs.perceptlayer.com)
