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

G2 Compare API Documentation

GET https://scrappa.co/api/g2/compare

G2 Compare API compares two products. Each product returns its rating, review count, categories, entry pricing (pricing), review-based insights (time_to_implement, return_on_investment, average_discount), the pros and cons with mention counts, and the sub_ratings: meets_requirements, ease_of_use, ease_of_setup, ease_of_admin, quality_of_support, good_partner and product_direction. Each sub-rating has a score from 0 to 10 and the number of votes. A sub-rating G2 does not show for a pair is null.

choose_if lists the reasons G2 gives for choosing each product. The products come back in the order of a and b. G2 does not offer every pair: for such a pair the request fails with 503, is not billed and can be retried with another pair. One request makes one lookup and costs one credit.

G2 Compare API Documentation 1 credit/request

Endpoint

Request preview
GET
https://scrappa.co/api/g2/compare
Auth header
x-api-key
Cost
1 credit/request
a = example b = example
Response preview
200 OK
{
    "data": {
        "products": [
            {
                "url": "https://www.g2.com/products/asana/reviews",
                "cons": [
                    {
                        "id": "1059540",
                        "count": 605,
                        "label": "Learning Curve"
                    },
                    {
                        "id": "1059884",
                        "count": 597,
...

Parameters

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

Runnable path

2 required parameters needed before sending a request.

a string Required

G2 slug of the first product. Example: asana.

Example value example
b string Required

G2 slug of the second product, different from the first. Example: monday-com.

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": {
        "products": [
            {
                "url": "https://www.g2.com/products/asana/reviews",
                "cons": [
                    {
                        "id": "1059540",
                        "count": 605,
                        "label": "Learning Curve"
                    },
                    {
                        "id": "1059884",
                        "count": 597,
                        "label": "Missing Features"
                    }
                ],
                "name": "Asana",
                "pros": [
                    {
                        "id": "1059298",
                        "count": 1525,
                        "label": "Ease of Use"
                    },
                    {
                        "id": "1061195",
                        "count": 1464,
                        "label": "Task Management"
                    }
                ],
                "slug": "asana",
                "rating": 4.4,
                "pricing": {
                    "plan": "Personal",
                    "unit": "2 Users",
                    "free_trial": true,
                    "price_text": "Free"
                },
                "insights": {
                    "average_discount": {
                        "value": "9%",
                        "responses": null,
                        "comparison": "1% more"
                    },
                    "time_to_implement": {
                        "value": "1 month",
                        "responses": 416,
                        "comparison": "Faster"
                    },
                    "return_on_investment": {
                        "value": "8 months",
                        "responses": 389,
                        "comparison": "2 months sooner"
                    }
                },
                "categories": [
                    "AI Agent Builders",
                    "AI Agents For Business Operations"
                ],
                "sub_ratings": {
                    "ease_of_use": {
                        "score": 8.6,
                        "votes": 11820
                    },
                    "ease_of_setup": {
                        "score": 8.6,
                        "votes": 5383
                    },
                    "meets_requirements": {
                        "score": 8.7,
                        "votes": 11687
                    }
                },
                "review_count": 14056
            },
            {
                "url": "https://www.g2.com/products/monday-com/reviews",
                "cons": [
                    {
                        "id": "1054865",
                        "count": 1681,
                        "label": "Missing Features"
                    },
                    {
                        "id": "1054710",
                        "count": 1163,
                        "label": "Learning Curve"
                    }
                ],
                "name": "monday AI Work Platform",
                "pros": [
                    {
                        "id": "1057948",
                        "count": 3935,
                        "label": "Ease of Use"
                    },
                    {
                        "id": "1056211",
                        "count": 2721,
                        "label": "Team Collaboration"
                    }
                ],
                "slug": "monday-com",
                "rating": 4.7,
                "pricing": {
                    "plan": "Standard",
                    "unit": "3 Seats Per Month",
                    "free_trial": true,
                    "price_text": "$12.00"
                },
                "insights": {
                    "average_discount": {
                        "value": "8%",
                        "responses": null,
                        "comparison": null
                    },
                    "time_to_implement": {
                        "value": "2 months",
                        "responses": 606,
                        "comparison": null
                    },
                    "return_on_investment": {
                        "value": "10 months",
                        "responses": 555,
                        "comparison": null
                    }
                },
                "categories": [
                    "Work Management",
                    "Marketing Calendar"
                ],
                "sub_ratings": {
                    "ease_of_use": {
                        "score": 9.1,
                        "votes": 14320
                    },
                    "ease_of_setup": {
                        "score": 8.8,
                        "votes": 8275
                    },
                    "meets_requirements": {
                        "score": 9,
                        "votes": 14032
                    }
                },
                "review_count": 17421
            }
        ],
        "choose_if": [
            {
                "name": "Asana",
                "slug": "asana",
                "points": [
                    "You manage projects with complex task dependencies requiring automatic due date adjustments.",
                    "You coordinate multi-person workflows with task handoffs and approvals in a single task."
                ]
            }
        ]
    },
    "meta": {
        "billable": true,
        "endpoint_family": "compare"
    },
    "success": true
}

Errors

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

404

Not Found

The comparison is not available. This response is not billable.

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