# G2 Compare API Documentation

<p><strong>G2 Compare API</strong> compares two products. Each product returns its rating, review count, categories, entry pricing (<code>pricing</code>), review-based insights (<code>time_to_implement</code>, <code>return_on_investment</code>, <code>average_discount</code>), the pros and cons with mention counts, and the <code>sub_ratings</code>: <code>meets_requirements</code>, <code>ease_of_use</code>, <code>ease_of_setup</code>, <code>ease_of_admin</code>, <code>quality_of_support</code>, <code>good_partner</code> and <code>product_direction</code>. Each sub-rating has a <code>score</code> from 0 to 10 and the number of <code>votes</code>. A sub-rating G2 does not show for a pair is <code>null</code>.</p><p><code>choose_if</code> lists the reasons G2 gives for choosing each product. The products come back in the order of <code>a</code> and <code>b</code>. 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.</p>

- **Documentation:** [https://scrappa.co/docs/g2-api/g2_compare](https://scrappa.co/docs/g2-api/g2_compare)
- **API group:** G2 API
- **Endpoint:** `GET https://scrappa.co/api/g2/compare`

## Authentication

Send your Scrappa API key in the `X-API-KEY` request header. Paid endpoints also support accountless x402 payments when called without an API key.

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `a` | string | Yes | G2 slug of the first product. Example: asana. |
| `b` | string | Yes | G2 slug of the second product, different from the first. Example: monday-com. |

## Example response

```json
{
    "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

| Status | Error | Description |
| --- | --- | --- |
| 404 | Not Found | The comparison is not available. This response is not billable. |
| 422 | Validation Error | A parameter is missing or has an invalid value. This response is not billable. |
| 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. |

## More Scrappa resources

- [API documentation](https://scrappa.co/docs)
- [Full LLM-readable API reference](https://scrappa.co/llms-full.txt)
- [OpenAPI specification](https://scrappa.co/docs/api.json)
- [Pricing](https://scrappa.co/pricing)
