# G2 Alternatives API (g2.alternatives)

- Canonical page: https://everyinfra.com/en/g2-api/alternatives
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "g2", "action": "alternatives", "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 30 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=alternatives

## 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. |
| limit | integer (1–30) | no | 10 | The most rows to return in this call, an integer from 1 to 30. 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. |
| description | Summary or description, usually shorter than text. |
| vendor_name | 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 |
| source_product_slug | 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). |
| rating_out_of_ten | platform-native meaning |
| entry_level_price | 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": "alternatives",
  "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": "alternatives",
        "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 5. `id`, `billing` and `quota` differ on every call, so only their shape is shown.

```text
{
  "id": "req_…",
  "platform": "g2",
  "action": "alternatives",
  "results": [
    {
      "name": "ClickUp",
      "slug": "clickup",
      "url": "https://www.g2.com/products/clickup/reviews",
      "description": "By ClickUp",
      "rating": 4.6,
      "rating_out_of_ten": 9.2,
      "review_count": 14374,
      "rank": 1,
      "source_product_slug": "slack",
      "image_url": "https://images.g2crowd.com/uploads/product/image/a05e90757d45fd56faa93611eb55814d/clickup.png",
      "platform": "g2",
      "rating_scale": 5
    },
    {
      "name": "monday AI Work Platform",
      "slug": "monday-com",
      "url": "https://www.g2.com/products/monday-com/reviews",
      "description": "By monday.com",
      "rating": 4.7,
      "rating_out_of_ten": 9.4,
      "review_count": 17228,
      "entry_level_price": "free",
      "rank": 2,
      "source_product_slug": "slack",
      "image_url": "https://images.g2crowd.com/uploads/product/image/ae6f6333a603f01784274fb154d92dfb/monday-com.png",
      "platform": "g2",
      "rating_scale": 5
    }
  ],
  "count": 5,
  "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
