G2

List every G2 category

List every category in G2's directory with its slug and the group it belongs to.

GET/v1/g2/categories
x-api-keystringheader

API key (`sfk_...`)

Response fields
13

Endpoint-specific response payload.

datatotalResults
integer

Categories in the directory; every one is in `categories`.

Every category, in G2's alphabetical order.

datacategories[]slug
string

Category slug, e.g. `crm`: pass it as `slug` to the category endpoint.

datacategories[]name
string

Category name, e.g. `CRM Software`.

datacategories[]url
string

The category's G2 page.

datacategories[]parentName
stringnullable

The group G2 files it under, e.g. `Sales Tools`.

Metadata describing the request and billing outcome.

metarequestId
string

Unique request identifier for tracing this API call.

min 1 chars

metacreditsCharged
integer

Credits charged for this request.

≥ 0

metaversion
string

Public API version that served the response.

one of: v1

metastale
booleanoptional

Present, and `true`, only when the source couldn't be reached and this is the last good answer for the same request instead, up to 24 hours old. Absent on every live answer.

one of: true

metafetchedAt
stringoptional

When a stale answer (`stale: true`) was originally fetched (ISO 8601, UTC). Absent on every live answer.

Code example

curl "https://api.socialfetch.dev/v1/g2/categories" \
  -H "x-api-key: YOUR_API_KEY"

Responses

G2's category directory.