Skip to content
Scrappa Get API key
G2 API 1 credit/request

G2 Grid API Documentation

GET https://scrappa.co/api/g2/categories/{slug}/grid

G2 Grid API returns the G2 grid of one category: every ranked product with its review_count, rating (half-star steps), market_presence and satisfaction (both 0 to 100, position on the grid) and the quadrant: leaders, high_performers, contenders or niche. The quadrant is derived from the position with the midpoint 50 on both axes.

Set company_size to small_business or enterprise for the grid of one segment. Without it you get the grid of all segments. Find category slugs with the category tree endpoint. An unknown category slug returns 404 and is not billed. One request costs one credit.

G2 Grid API Documentation 1 credit/request

Endpoint

Request preview
GET
https://scrappa.co/api/g2/categories/{slug}/grid
Auth header
x-api-key
Cost
1 credit/request
slug = example
Response preview
200 OK
{
    "data": {
        "count": 252,
        "category": {
            "slug": "project-management"
        },
        "products": [
            {
                "id": 262,
                "url": "https://www.g2.com/products/24sevenoffice/reviews",
                "name": "24SevenOffice",
                "slug": "24sevenoffice",
                "rating": 4,
                "logo_url": "https://images.g2crowd.com/uploads/product/image/detail/detail_3c894a64808b605a5e2eee82a7782931/24s\u2026",
...

Parameters

Start with the required fields, then add optional filters only when your use case needs them.

Runnable path

1 required parameter needed before sending a request.

1 optional filter available.

slug string Required

G2 category slug (path parameter). Example: project-management.

Example value example
company_size string Optional

small_business or enterprise. Default: all segments.

Example value example

Response Schema

Example response fields are illustrative; inspect the JSON before integrating.

Example response fields

Scan these fields before integrating.

data meta success
JSON Response
200 OK
{
    "data": {
        "count": 252,
        "category": {
            "slug": "project-management"
        },
        "products": [
            {
                "id": 262,
                "url": "https://www.g2.com/products/24sevenoffice/reviews",
                "name": "24SevenOffice",
                "slug": "24sevenoffice",
                "rating": 4,
                "logo_url": "https://images.g2crowd.com/uploads/product/image/detail/detail_3c894a64808b605a5e2eee82a7782931/24s\u2026",
                "quadrant": "niche",
                "review_count": 25,
                "satisfaction": 33.2,
                "market_presence": 46.8
            },
            {
                "id": 263,
                "url": "https://www.g2.com/products/basecamp/reviews",
                "name": "Basecamp",
                "slug": "basecamp",
                "rating": 4,
                "logo_url": "https://images.g2crowd.com/uploads/product/image/detail/detail_a4b2e76104efa19c85f3eaaca2791f87/bas\u2026",
                "quadrant": "leaders",
                "review_count": 5488,
                "satisfaction": 62.9,
                "market_presence": 72.2
            }
        ],
        "company_size": null
    },
    "meta": {
        "billable": true,
        "endpoint_family": "grid"
    },
    "success": true
}

Errors

Handle these documented responses before retrying or showing customer-facing failures.

404

Not Found

The category slug does not exist on G2. This response is not billable.

{
    "meta": {
        "billable": false,
        "retryable": false,
        "endpoint_family": "grid"
    },
    "error": {
        "code": "NOT_FOUND",
        "message": "The requested resource was not found."
    },
    "success": false
}
422

Validation Error

A parameter is missing or has an invalid value. This response is not billable.

{
    "errors": {
        "slug": [
            "The slug field is required."
        ]
    },
    "message": "The request validation failed"
}
503

Upstream Unavailable

G2 could not be reached or returned data that does not match the request. This response is not billable and is retryable.

{
    "meta": {
        "billable": false,
        "retryable": true,
        "endpoint_family": "grid"
    },
    "error": {
        "code": "UPSTREAM_UNAVAILABLE",
        "message": "G2 could not be reached. Please retry shortly."
    },
    "success": false
}

Generate Code with AI

Copy a ready-made prompt with all the endpoint details, parameters, and example responses. Paste it into ChatGPT, Claude, or any AI assistant to instantly generate working code.

Try It Live

Test this endpoint in our interactive playground with real data.