# G2 Category API (g2.category)

- Canonical page: https://everyinfra.com/en/g2-api/category
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "g2", "action": "category", "params": {...}}
- Price: $0.001389 per call ($1.39 per 1,000 requests); failed calls and empty results are not charged
- Returns: list, default 10, max 40 per call
- Mode: sync; add "mode": "async" for slow tasks

## Health

- Live health (24h percent, hourly and daily trends): https://api.everyinfra.com/api/v1/social/availability?platform=g2&action=category

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| category | not declared | yes | not declared | Specifies the G2 software category path slug or full /categories/<slug> URL copied directly from a category page. It does not accept product names or free-form keywords, and accepted values are not restricted to predefined example lists. |
| limit | integer (1–40) | no | 10 | The most rows to return in this call, an integer from 1 to 40. The default applies when you leave it out, and a call can return fewer rows. Larger values return 422 before any charge. |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| name | Name of the object itself, for account, product and business capabilities. |
| slug | platform-native meaning |
| url | Link to the record on the platform. |
| vendor_name | platform-native meaning |
| vendor_slug | platform-native meaning |
| category | Category name in the platform's own taxonomy, not normalized across platforms. |
| category_slug | platform-native meaning |
| rating | Rating. **The scale varies by platform**: rating_scale on the same row gives the maximum (usually 5; Booking, Douban, iQIYI and NAVER use 10). Convert with rating_scale before comparing across platforms, or the comparison can come out backwards. |
| rating_scale | Maximum of rating in the same row: 5 for five-star scales, 10 for ten-point scales. Present only when the row has a rating. |
| review_count | Number of reviews, for product and business capabilities. null means not disclosed, not 0. |
| rank | platform-native meaning |
| page | platform-native meaning |
| image_url | Image link. Capabilities with several images may return an image_urls array. |
| platform | Source platform identifier, the same as platform in the request (for example xiaohongshu, tiktok). |
| description | Summary or description, usually shorter than text. |
| rating_out_of_ten | platform-native meaning |
| entry_level_price | platform-native meaning |
| is_sponsored | platform-native meaning |
| awards | platform-native meaning |

## Example

```bash
curl -X POST 'https://api.everyinfra.com/api/v1/social' \
  -H "Authorization: Bearer $EVERYINFRA_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "platform": "g2",
  "action": "category",
  "params": {
    "category": "project-management"
  }
}'
```

```python
import os
import requests

response = requests.post(
    "https://api.everyinfra.com/api/v1/social",
    headers={"Authorization": f"Bearer {os.environ['EVERYINFRA_API_KEY']}"},
    json={
        "platform": "g2",
        "action": "category",
        "params": {
            "category": "project-management",
        },
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

Real response to the example request above, captured 2026-09-26T08:56:04Z. `results` and `count` are real with personal information (names, handles, avatars, profile links, contact details) removed; the list keeps the first 2 of 10. `id`, `billing` and `quota` differ on every call, so only their shape is shown.

```text
{
  "id": "req_…",
  "platform": "g2",
  "action": "category",
  "results": [
    {
      "name": "Jira",
      "slug": "jira",
      "url": "https://www.g2.com/products/jira/reviews",
      "description": "By Atlassian",
      "vendor_name": "Atlassian",
      "vendor_slug": "atlassian",
      "category": "Project Management",
      "category_slug": "project-management",
      "rating": 4.5,
      "rating_out_of_ten": 9,
      "review_count": 7962,
      "rank": 1,
      "page": 1,
      "is_sponsored": false,
      "image_url": "https://images.g2crowd.com/uploads/product/image/large_detail/large_detail_793034d14bb0f3fa12d97cf3cc0032c4/jira.jpg",
      "platform": "g2",
      "rating_scale": 5
    },
    {
      "name": "Asana",
      "slug": "asana",
      "url": "https://www.g2.com/products/asana/reviews",
      "description": "By Asana",
      "vendor_name": "Asana",
      "vendor_slug": "asana",
      "category": "Project Management",
      "category_slug": "project-management",
      "rating": 4.5,
      "rating_out_of_ten": 9,
      "review_count": 13922,
      "rank": 2,
      "page": 1,
      "is_sponsored": false,
      "image_url": "https://images.g2crowd.com/uploads/product/image/large_detail/large_detail_2a3c6c39bf8b8eb277cfcd42d9bbca1e/asana.png",
      "platform": "g2",
      "rating_scale": 5
    }
  ],
  "count": 10,
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## Also

- Capability catalog (no key): https://api.everyinfra.com/api/v1/social/catalog?platform=g2
- OpenAPI: https://everyinfra.com/openapi.json · Agents guide: https://everyinfra.com/agents.md
