# G2 Alternatives API Documentation

<p><strong>G2 Alternatives API</strong> 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 (<code>price_low</code>, <code>price_high</code>, <code>price_currency</code>), the phrases reviewers use to compare it with your product (<code>compared_to</code>, for example <em>More expensive</em>) and the categories both products share.</p><p>Sponsored placements are never returned. An alternative without a price range returns <code>null</code> for the three price fields. One request makes one lookup and costs one credit. An unknown slug returns 404 and is not billed.</p>

- **Documentation:** [https://scrappa.co/docs/g2-api/g2_alternatives](https://scrappa.co/docs/g2-api/g2_alternatives)
- **API group:** G2 API
- **Endpoint:** `GET https://scrappa.co/api/g2/products/{slug}/alternatives`

## 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 |
| --- | --- | --- | --- |
| `slug` | string | Yes | G2 product slug (path parameter). Example: asana. |

## Example response

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

| Status | Error | Description |
| --- | --- | --- |
| 404 | Not Found | The product slug does not exist on G2. 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)
