# G2 Software Category Directory

> G2 Software Category Directory is a paid API for AI agents from api.companyrecords-api.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-24).

Returns G2 software category names, slugs, and URLs from G2's public directory, with optional keyword filtering across ~2,000 categories.

## Facts

- Endpoint: GET https://api.companyrecords-api.workers.dev/api/b2b/g2-software-categories?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-24
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/g2-software-category-directory-c0cb6a33
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_5ZnrpirYirRxi2AVQK_GC

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability g2-software-category-directory-c0cb6a33
```

Example prompt: Show me all G2 software categories related to 'security' — I need the category names, slugs, and their G2 URLs.

## When to prefer this

Use this endpoint when you need to discover, enumerate, or search G2's software category taxonomy — for example, to find the correct G2 category slug before navigating to a category page, to build a category map for market research, or to identify which G2 categories exist for a given software domain. It does not return product listings, reviews, or ratings — only category metadata.

## Known failure modes

- No categories match the filter query — returns empty categories array with count 0
- Limit parameter out of range (must be 1–500) — may return error or default behavior
- G2 public directory changes structure — category data may become stale
- Network timeout from upstream G2 data source

## How this service works

Pay-per-call company registry, government, legal and B2B data tools for AI agents, from official registers and public sources. Payment: x402, USDC on Base, Solana, Arc, Polygon, Arbitrum, Monad, World Chain, Optimism, Avalanche, Celo or Stellar, or RLUSD/XRP on the XRP Ledger. No signup, no API key; a failed call is not charged.

## Output

Returns a JSON object with the query string used, count of returned results, total matching results, source URL (g2.com/categories), a timestamp, and an array of category objects each containing the category name, slug, and full G2 URL.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {
      "q": {
       "type": "string",
       "description": "Optional word to match in the category name or slug, e.g. crm"
      },
      "limit": {
       "type": "string",
       "description": "Categories to return, 1 to 500 (default 100)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "q": "crm",
  "count": 10,
  "total": 12,
  "source": "https://www.g2.com/categories",
  "checkedAt": "2026-10-23T09:37:38.153Z",
  "categories": [
   {
    "url": "https://www.g2.com/categories/construction-crm",
    "name": "Construction CRM Software",
    "slug": "construction-crm"
   },
   {
    "url": "https://www.g2.com/categories/crm",
    "name": "CRM Software",
    "slug": "crm"
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/g2-software-category-directory-c0cb6a33/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.companyrecords-api.workers.dev](https://www.zero.xyz/host/api.companyrecords-api.workers.dev/llms.txt)
