---
title: "G2 API: Search | Perceptlayer"
description: "Search from G2 as JSON. 1 credit per successful call."
url: https://perceptlayer.com/apis/g2/search
---

[APIs](https://perceptlayer.com/apis) / [G2](https://perceptlayer.com/apis/g2) / Search

# G2: Search

Search from G2 as JSON. 1 credit per successful call.

GET `/v1/g2/search`

## Parameters

Send parameters in the query string.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `query` | string | Required | Up to 100 characters |
| `page` | integer | Optional | Any |
| `order` | string | Optional | relevance, popular, top\_shelf, alphabetical |
| `star_rating[]` | list of integer | Optional | Any |
| `category_id[]` | list of integer | Optional | Any |

## Example request

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.

[Run this endpoint in the playground](https://perceptlayer.com/apis/g2?try=search#playground) with your own parameters. 1 credit per successful call; failed calls are free.

## Response fields

`data` has these 4 fields, read from a recorded call. The recording leaves out fields that were empty, so a live call can return more.

| Field | Type |
| --- | --- |
| `order` | string |
| `results` | object\[\] |
| `available_filters` | object |
| `pagination` | object |
