# G2 Grid API Documentation

<p><strong>G2 Grid API</strong> returns the G2 grid of one category: every ranked product with its <code>review_count</code>, <code>rating</code> (half-star steps), <code>market_presence</code> and <code>satisfaction</code> (both 0 to 100, position on the grid) and the <code>quadrant</code>: <code>leaders</code>, <code>high_performers</code>, <code>contenders</code> or <code>niche</code>. The quadrant is derived from the position with the midpoint 50 on both axes.</p><p>Set <code>company_size</code> to <code>small_business</code> or <code>enterprise</code> for the grid of one segment. Without it you get the grid of all segments. Find category slugs with the category tree endpoint. An unknown category slug returns 404 and is not billed. One request costs one credit.</p>

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

## 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 category slug (path parameter). Example: project-management. |
| `company_size` | string | No | small_business or enterprise. Default: all segments. |

## Example response

```json
{
    "data": {
        "count": 252,
        "category": {
            "slug": "project-management"
        },
        "products": [
            {
                "id": 262,
                "url": "https://www.g2.com/products/24sevenoffice/reviews",
                "name": "24SevenOffice",
                "slug": "24sevenoffice",
                "rating": 4,
                "logo_url": "https://images.g2crowd.com/uploads/product/image/detail/detail_3c894a64808b605a5e2eee82a7782931/24s\u2026",
                "quadrant": "niche",
                "review_count": 25,
                "satisfaction": 33.2,
                "market_presence": 46.8
            },
            {
                "id": 263,
                "url": "https://www.g2.com/products/basecamp/reviews",
                "name": "Basecamp",
                "slug": "basecamp",
                "rating": 4,
                "logo_url": "https://images.g2crowd.com/uploads/product/image/detail/detail_a4b2e76104efa19c85f3eaaca2791f87/bas\u2026",
                "quadrant": "leaders",
                "review_count": 5488,
                "satisfaction": 62.9,
                "market_presence": 72.2
            }
        ],
        "company_size": null
    },
    "meta": {
        "billable": true,
        "endpoint_family": "grid"
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 404 | Not Found | The category 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)
