GroundsocialDocs

API · G2

GET /g2/categories

Every G2 software category, as a tree with parents and top-level groups.

RequestGET /v1/g2/categories
Operation idg2.categories.get
Cost1 credit, refunded if the call fails
AuthAPI key: Authorization: Bearer <key> or x-api-key.

Every G2 software category, as a tree with parents and top-level groups.

Responses

StatusMeaningSchema
200Every category.G2CategoriesResponse
400Invalid input. Nothing was charged.Error
401Missing or invalid API key.Error
402Not enough credits, a spend cap was reached, or payment is required.Error
403The target is private, or the account is suspended.Error
404G2 lists no product by that name.Error
429Too many requests. Wait for Retry-After seconds.Error
503G2 is temporarily unavailable. Retryable; nothing was charged.Error

G2CategoriesResponse fields

FieldTypeDescription
categoriesG2Category[]
totalinteger

Errors use one shape everywhere; see Errors for every code and what to do.