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

G2 Categories API Documentation

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

G2 Categories API returns the full G2 software category tree in one call: about 38 groups and 2,250 categories, each with slug, name and G2 URL. The tree changes slowly, so the response is cached for 24 hours. The call takes no parameters.

Category product lists are not available. Use the Search API to find products of a topic.

G2 Categories API Documentation 1 credit/request

Endpoint

Request preview
GET
https://scrappa.co/api/g2/categories
Auth header
x-api-key
Cost
1 credit/request
Response preview
200 OK
{
    "data": {
        "groups": [
            {
                "name": "Sales Tools",
                "categories": [
                    {
                        "url": "https://www.g2.com/categories/crm",
                        "name": "CRM Software",
                        "slug": "crm"
                    }
                ]
            }
        ],
...

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": {
        "groups": [
            {
                "name": "Sales Tools",
                "categories": [
                    {
                        "url": "https://www.g2.com/categories/crm",
                        "name": "CRM Software",
                        "slug": "crm"
                    }
                ]
            }
        ],
        "group_count": 38,
        "category_count": 2254
    },
    "meta": {
        "billable": true,
        "endpoint_family": "categories"
    },
    "success": true
}

Errors

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

422

Validation Error

A required parameter or a value is invalid. This response is not billable.

{
    "errors": {
        "query": [
            "The query 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": "categories"
    },
    "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.