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.
Run this endpoint
Endpoint
Response Schema
Example response fields are illustrative; inspect the JSON before integrating.
Example response fields
Scan these fields before integrating.
data
meta
success
{
"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.
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"
}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.