# G2 Vendor API (g2.vendor)

- Canonical page: https://everyinfra.com/en/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 | Specifies the target G2 resource URL or bare slug. For profile, reviews, and alternatives, pass a /products/<slug> URL or product slug; for vendor, pass a /sellers/<slug> URL or seller slug. For compare, passing a full /compare/ URL overrides auto-generated paths, though the required slugs parameter must still be supplied. |
| slug | not declared | no | not declared | Specifies the path slug for the target resource: product actions accept the slug following /products/, while vendor accepts the vendor slug following /sellers/. Do not mix slugs across object types. Providing a slug does not waive the required url or category parameters for the given action. |
| vendor | not declared | no | not declared | Specifies either the seller path slug from /sellers/ or a direct vendor page URL. It does not perform a free-text company name search, and vendor action calls must still include the required url parameter. |
| vendor_url | not declared | no | not declared | Provides the /sellers/<slug> vendor landing page URL as a compatibility input for vendor targeting. It does not replace the required url parameter on the vendor action. |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| slug | platform-native meaning |
| name | Name of the object itself, for account, product and business capabilities. |
| url | Link to the record on the platform. |
| description | Summary or description, usually shorter than text. |
| founded | platform-native meaning |
| hq_location | platform-native meaning |
| product_count | platform-native meaning |
| total_reviews | platform-native meaning |
| products | platform-native meaning |
| platform | Source platform identifier, the same as platform in the request (for example xiaohongshu, tiktok). |
| ownership | platform-native meaning |
| total_revenue | platform-native meaning |
| employees | platform-native meaning |
| phone | Contact phone number, passed through without format normalization. |

## 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
