# G2 厂商资料 API (g2.vendor)

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

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| url | not declared | yes | not declared | G2 /sellers/<slug> 厂商 URL 或厂商 slug；返回厂商资料，不是软件产品 URL。 |
| slug | not declared | no | not declared | 厂商 /sellers/ 路径中的 slug 兼容输入；url 仍为必填，且 slug 会优先用于定位厂商。 |
| vendor | not declared | no | not declared | 厂商 /sellers/ 路径中的 slug 或厂商主页 URL 兼容输入；url 仍为必填。 |
| vendor_url | not declared | no | not declared | G2 厂商 /sellers/<slug> 主页链接兼容输入；url 仍为必填。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| slug | 该条目的 URL 短名。 |
| name | 名称。用于账号/商品/商家类能力，指该对象本身的名字。 |
| url | 该记录在原平台上的可访问链接。 |
| description | 简介或描述，通常比 text 短。 |
| founded | 厂商成立年份。 |
| hq_location | 厂商总部所在地。 |
| product_count | 产品数：vendor 里是厂商旗下产品数，compare 里是参与对比的产品数。 |
| total_reviews | 评价总数。 |
| products | 产品列表：vendor 里是厂商旗下产品，compare 里是参与对比的产品；每项含短名、名称、链接、评分和评价数。 |
| platform | 数据来源平台标识，与请求里的 platform 一致（如 xiaohongshu、tiktok）。 |
| ownership | 股权性质（上市 / 私有 / 被收购）。 |
| total_revenue | 厂商营收规模。 |
| employees | 厂商员工数。 |
| phone | 联系电话，原文透传，未做号码格式归一。 |

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

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

```text
{
  "id": "req_…",
  "platform": "g2",
  "action": "vendor",
  "results": {
    "slug": "slack",
    "name": "Followbot",
    "url": "https://www.g2.com/sellers/slack",
    "description": "Followbot has been rated 0.0 stars by 0 verified reviews on G2. Explore all Followbot solutions based on real user feedback.",
    "hq_location": "N/A",
    "product_count": 1,
    "total_reviews": 0,
    "products": [
      {
        "slug": "followbot",
        "name": "FollowBot",
        "url": "https://www.g2.com/products/followbot/reviews",
        "rating": 0,
        "review_count": 0
      }
    ],
    "platform": "g2"
  },
  "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
