# G2 评价 API (g2.reviews)

- Canonical page: https://everyinfra.com/g2-api/reviews
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "g2", "action": "reviews", "params": {...}}
- Price: $0.001389 per call ($1.39 per 1,000 requests); failed calls and empty results are not charged
- Returns: list, default 20, max 100 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=reviews

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| url | not declared | yes | not declared | G2 /products/<slug> 产品 URL 或裸产品 slug；用于读取该软件产品的点评。 |
| sort | enum: newest / relevance / top_rated | no | not declared | 点评排序：newest 最新、relevance 默认相关度、top_rated 评分较高。 |
| limit | integer (1–100) | no | 20 | 这次调用最多返回的条数，整数，1–100；不传按默认值，实际返回可能少于这个数。超过上限会在扣费前返回 422。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| record_type | 记录类型。 |
| product_slug | 产品在 G2 的 URL 短名。 |
| url | 该记录在原平台上的可访问链接。 |
| aggregate_rating | 综合评分，5 分制。 |
| total_reviews | 评价总数。 |
| summary_text | 评价摘要。 |
| top_pros | 被提及最多的优点。 |
| top_cons | 被提及最多的缺点。 |
| platform | 数据来源平台标识，与请求里的 platform 一致（如 xiaohongshu、tiktok）。 |
| id | 该记录在原平台上的唯一标识。仅在同一平台内唯一，跨平台可能重复。 |
| title | 标题。平台无标题概念时（如纯文本帖）为 null。 |
| text | 正文内容，已去除 HTML 标签，全文返回、不截断（个别平台的列表结果本身只有摘要，以该平台的字段说明为准）。 |
| rating | 评分。**分制随平台而异**，同一行的 `rating_scale` 给出该平台满分 (多数是 5，Booking/豆瓣/爱奇艺/NAVER 是 10)。跨平台比较前必须先按 rating_scale 换算。直接比数字会得出反的结论。 |
| rating_scale | 上一列 `rating` 的满分。5 表示五星制、10 表示十分制。只在该行有 rating 时出现。 |
| responses | 厂商对评价的回复。 |
| author_name | 作者昵称（显示名）。 |
| author_job_title | 评价人的职位。 |
| author_business_size | 评价人所在公司规模。**B2B 选型时同规模的评价才有参考价值。** |
| product_name | 产品名称。 |
| posted_at | 发布时间，ISO 8601 格式、UTC 时区（如 2026-08-07T12:34:56+00:00）。平台只给非标准字符串时原样透传，解析前建议做容错。null 表示平台未公开。 |

## 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": "reviews",
  "params": {
    "url": "https://www.g2.com/products/slack/reviews"
  }
}'
```

```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": "reviews",
        "params": {
            "url": "https://www.g2.com/products/slack/reviews",
        },
    },
    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 21. `id`, `billing` and `quota` differ on every call, so only their shape is shown.

```text
{
  "id": "req_…",
  "platform": "g2",
  "action": "reviews",
  "results": [
    {
      "record_type": "summary",
      "product_slug": "slack",
      "url": "https://www.g2.com/products/slack/reviews",
      "aggregate_rating": 9.1,
      "total_reviews": 39795,
      "top_pros": [
        {
          "label": "Ease of Use",
          "mentions": 3483
        },
        {
          "label": "Team Collaboration",
          "mentions": 3031
        },
        {
          "label": "Communication",
          "mentions": 2876
        }
      ],
      "top_cons": [
        {
          "label": "Notification Issues",
          "mentions": 1114
        },
        {
          "label": "Missing Features",
          "mentions": 905
        },
        {
          "label": "Limited Features",
          "mentions": 733
        }
      ],
      "platform": "g2"
    },
    {
      "record_type": "review",
      "id": "13501744",
      "title": "Powerful Tool Packed with Helpful Insights",
      "text": "Its too powerful and gives lots of helpful insights Nothing at all its great and sometimes it may get overwhelming We dont have slack yet in our company",
      "rating": 4.5,
      "responses": {
        "What do you like best about Slack?": "Its too powerful and gives lots of helpful insights",
        "What do you dislike about Slack?": "Nothing at all its great and sometimes it may get overwhelming",
        "What problems is Slack solving and how is that benefiting you?": "We dont have slack yet in our company"
      },
      "author_name": "•••",
      "author_business_size": "Enterprise (> 1000 emp.)",
      "product_slug": "slack",
      "url": "https://www.g2.com/products/slack/reviews/slack-review-13501744",
      "posted_at": "2026-09-17T16:57:24-05:00",
      "platform": "g2",
      "rating_scale": 5
    }
  ],
  "count": 21,
  "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
