API · G2
GET /g2/categories
Every G2 software category, as a tree with parents and top-level groups.
| Request | GET /v1/g2/categories |
| Operation id | g2.categories.get |
| Cost | 1 credit, refunded if the call fails |
| Auth | API key: Authorization: Bearer <key> or x-api-key. |
Every G2 software category, as a tree with parents and top-level groups.
Responses
| Status | Meaning | Schema |
|---|---|---|
200 | Every category. | G2CategoriesResponse |
400 | Invalid input. Nothing was charged. | Error |
401 | Missing or invalid API key. | Error |
402 | Not enough credits, a spend cap was reached, or payment is required. | Error |
403 | The target is private, or the account is suspended. | Error |
404 | G2 lists no product by that name. | Error |
429 | Too many requests. Wait for Retry-After seconds. | Error |
503 | G2 is temporarily unavailable. Retryable; nothing was charged. | Error |
G2CategoriesResponse fields
| Field | Type | Description |
|---|---|---|
categories | G2Category[] | |
total | integer |
Errors use one shape everywhere; see Errors for every code and what to do.