API · G2
GET /g2/reviews
The newest reviews of a G2 product (about 25), with stars, reviewer and answers.
| Request | GET /v1/g2/reviews |
| Operation id | g2.reviews.get |
| Cost | 1 credit, refunded if the call fails |
| Auth | API key: Authorization: Bearer <key> or x-api-key. |
The newest reviews of a G2 product (about 25), with stars, reviewer and answers.
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string | no | The product slug, as in g2.com/products/<slug>. Example: slack. |
url | string | no | A g2.com product link, instead of id. Example: https://www.g2.com/products/slack/reviews. |
stars | string | no | Only these star buckets, comma-separated (1-5). Example: 1,2. |
sort | "most-recent" | no | Newest first, the order G2’s feed gives. One of most-recent. |
since | string | no | Only reviews on or after this date (YYYY-MM-DD or ISO 8601). |
until | string | no | Only reviews on or before this date (that whole UTC day for YYYY-MM-DD). |
Responses
| Status | Meaning | Schema |
|---|---|---|
200 | The product and its newest reviews. | G2ReviewsResponse |
400 | Invalid input. Nothing was charged. | Error |
401 | Missing or invalid API key. | Error |
402 | Not enough credits, a spend cap was reached, or payment is required. | Error |
403 | The target is private, or the account is suspended. | Error |
404 | G2 lists no product by that name. | Error |
429 | Too many requests. Wait for Retry-After seconds. | Error |
503 | G2 is temporarily unavailable. Retryable; nothing was charged. | Error |
G2ReviewsResponse fields
| Field | Type | Description |
|---|---|---|
product | object | |
reviews | G2Review[] | Newest first, about 25. |
filters | object |
Errors use one shape everywhere; see Errors for every code and what to do.