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

G2 Product API Documentation

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

G2 Product API returns one product. product holds the id, uuid, slug, name, vendor, rating, review count, description, categories and image from the G2 search result of the exact slug (unchanged).

details adds data from the first review page: the aggregate rating and review_count, the star distribution (count and percent for 5 to 1 stars), facets (review counts per company size, role, category, industry and region), pros and cons with mention counts and the ai_summary. A product request makes two lookups. If the second one fails, you still get product and billed details: null.

Set include=sub_ratings to add details.sub_ratings (meets_requirements, ease_of_use, ease_of_setup, ease_of_admin, quality_of_support, each with score from 0 to 10 and votes) and details.compared_with, the slug of the product used for the comparison. This needs two more lookups (the first alternative, then the comparison), so the call is slower. If G2 has no comparison for the pair, sub_ratings is null and the call is still billed. The credit cost is one credit either way.

An unknown slug, or a slug that does not appear in the search result of its own name, returns 404 and is not billed.

G2 Product API Documentation 1 credit/request

Endpoint

Request preview
GET
https://scrappa.co/api/g2/products/{slug}
Auth header
x-api-key
Cost
1 credit/request
slug = example
Response preview
200 OK
{
    "data": {
        "details": {
            "cons": [
                {
                    "id": "1059540",
                    "count": 605,
                    "label": "Learning Curve"
                }
            ],
            "pros": [
                {
                    "id": "1059298",
                    "count": 1525,
...

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 product slug (path parameter). Example: slack.

Example value example
include array Optional

sub_ratings adds sub-ratings (two more lookups). Repeat the parameter or send a comma list.

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": {
        "details": {
            "cons": [
                {
                    "id": "1059540",
                    "count": 605,
                    "label": "Learning Curve"
                }
            ],
            "pros": [
                {
                    "id": "1059298",
                    "count": 1525,
                    "label": "Ease of Use"
                }
            ],
            "facets": {
                "role": [
                    {
                        "id": "1",
                        "count": 8839,
                        "label": "User"
                    }
                ],
                "region": [
                    {
                        "id": "North America",
                        "count": 9752,
                        "label": "North America"
                    }
                ],
                "category": [
                    {
                        "id": "7",
                        "count": 437,
                        "label": "Marketing Resource Management"
                    }
                ],
                "industry": [
                    {
                        "id": "333",
                        "count": 1819,
                        "label": "Marketing and Advertising"
                    }
                ],
                "company_size": [
                    {
                        "id": "179",
                        "count": 7915,
                        "label": "Small Business (50 or fewer emp.)"
                    }
                ]
            },
            "rating": 4.4,
            "ai_summary": "Users consistently praise Asana for its user-friendly interface and ease of use, which simplifies task organization and\u2026",
            "sub_ratings": {
                "ease_of_use": {
                    "score": 8.6,
                    "votes": 11820
                }
            },
            "distribution": [
                {
                    "count": 9240,
                    "stars": 5,
                    "percent": 65.74
                },
                {
                    "count": 3871,
                    "stars": 4,
                    "percent": 27.54
                }
            ],
            "review_count": 14056,
            "compared_with": "monday-com"
        },
        "product": {
            "id": 576,
            "url": "https://www.g2.com/products/zoho-crm/reviews",
            "name": "Zoho CRM",
            "slug": "zoho-crm",
            "uuid": "00000000-0000-0000-0000-000000000000",
            "rating": 4.1,
            "source": "search",
            "vendor": "Zoho",
            "image_url": "https://images.g2crowd.com/uploads/product/image/example/zoho-crm.png",
            "vendor_id": 1,
            "categories": [
                {
                    "id": 179,
                    "name": "CRM",
                    "slug": "crm"
                }
            ],
            "description": "Zoho CRM is a customer relationship management platform.",
            "vendor_slug": "zoho",
            "review_count": 2955
        }
    },
    "meta": {
        "billable": true,
        "endpoint_family": "product"
    },
    "success": true
}

Errors

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

404

Not Found

The slug is unknown. This response is not billable.

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

Validation Error

A required parameter or a value is invalid. This response is not billable.

{
    "errors": {
        "query": [
            "The query 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": "product"
    },
    "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.