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

G2 Alternatives API Documentation

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

G2 Alternatives API returns the top 10 alternatives of one product. Each alternative has the position, slug, name, URL, image, rating, review count, vendor, description, the price range (price_low, price_high, price_currency), the phrases reviewers use to compare it with your product (compared_to, for example More expensive) and the categories both products share.

Sponsored placements are never returned. An alternative without a price range returns null for the three price fields. One request makes one lookup and costs one credit. An unknown slug returns 404 and is not billed.

G2 Alternatives API Documentation 1 credit/request

Endpoint

Request preview
GET
https://scrappa.co/api/g2/products/{slug}/alternatives
Auth header
x-api-key
Cost
1 credit/request
slug = example
Response preview
200 OK
{
    "data": {
        "count": 10,
        "product": {
            "slug": "asana"
        },
        "alternatives": [
            {
                "url": "https://www.g2.com/products/clickup/reviews",
                "name": "ClickUp",
                "slug": "clickup",
                "rating": 4.6,
                "vendor": {
                    "name": "ClickUp",
...

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.

slug string Required

G2 product slug (path parameter). Example: asana.

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": 10,
        "product": {
            "slug": "asana"
        },
        "alternatives": [
            {
                "url": "https://www.g2.com/products/clickup/reviews",
                "name": "ClickUp",
                "slug": "clickup",
                "rating": 4.6,
                "vendor": {
                    "name": "ClickUp",
                    "slug": "clickup"
                },
                "position": 1,
                "image_url": "https://images.g2crowd.com/uploads/product/image/thumb/thumb_a05e90757d45fd56faa93611eb55814d/clickup.png",
                "price_low": 7,
                "price_high": 12,
                "compared_to": [
                    "Slower to reach roi"
                ],
                "description": "ClickUp is one app to replace them all. It's the future of work. More than just task management - ClickUp offers docs,\u2026",
                "review_count": 15195,
                "price_currency": "USD",
                "shared_categories": [
                    {
                        "name": "AI Agent Builders",
                        "slug": "ai-agent-builders"
                    }
                ]
            }
        ]
    },
    "meta": {
        "billable": true,
        "endpoint_family": "alternatives"
    },
    "success": true
}

Errors

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

404

Not Found

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

{
    "meta": {
        "billable": false,
        "retryable": false,
        "endpoint_family": "alternatives"
    },
    "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": "alternatives"
    },
    "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.