G2 API
G2 评价 API
获取任意产品的 G2 软件评价:星级、评价者的喜欢与不满、解决的问题、所属市场细分,以及 G2 的评分细则,以干净的 JSON 返回。
POST/v1/run/g2.reviews
可用率
99.02%
30d · 102 次调用
请求数
102
30d · 按周,近 12 周
响应时间
5.0s
中位数 · 30d
服务商网络
按流量排序的服务商
服务商
每次请求封顶 US$0.004461 条结果US$0.0001144 条结果US$0.0022688 条结果US$0.00446(封顶)按实际返回的内容计费。调低返回数量上限即可少付,而且无论返回多少,单次请求都不会超过封顶价。
每次请求封顶 US$0.1431 条结果US$0.0068850 条结果US$0.0745100 条结果US$0.143(封顶)按实际返回的内容计费。调低返回数量上限即可少付,而且无论返回多少,单次请求都不会超过封顶价。
试一试
发出你的第一个请求
requireFieldsarray可选;省略时路由不变,由最便宜的数据源处理。列出本次请求必须能返回的输出字段,例如 `productSlug`,请求就只会由能返回全部这些字段的数据源处理。未列出的字段,只要处理请求的数据源有,仍会照常返回。这可能提高你的价格:最便宜的数据源无法返回某个列出的字段时,会改由更贵的数据源处理,并按它的价格报价和扣费。如果某条评价确实没有某个列出的字段,该字段仍可能缺失。如果列出的字段组合没有任何单一数据源能同时返回,请求会作为无效输入被拒绝,不扣费。
示例响应
免费运行只返回前 3 条结果。为密钥充值即可获得完整响应。
{
"data": {
"items": [
{
"author": "Alex Rivera",
"authorCountry": "Alex Rivera",
"createdUtc": 12.5,
"dislikes": "example",
"helpfulVotes": 42,
"id": "a1b2c3d4",
"likes": "example",
"marketSegment": "example",
"nps": 42,
"problemsSolved": "example",
"productId": "a1b2c3d4",
"productName": "Example title",
"productSlug": "alex_rivera",
"rating": 4.6,
"ratings": {
"easeOfAdmin": 42,
"easeOfDoingBusinessWith": 42,
"easeOfSetup": 42,
"easeOfUse": 42,
"meetsRequirements": 42,
"qualityOfSupport": 42
},
"responseType": "general",
"reviewSource": "https://example.com/page",
"sourceType": "https://example.com/page",
"status": "active",
"switchedFrom": true,
"title": "Example title",
"url": "https://example.com/page"
}
]
},
"found": true,
"reason": "not_found"
}响应类型定义
interface G2ReviewsResponse {
data: {
items: {
author?: string;
authorCountry?: string;
createdUtc?: number;
dislikes?: string;
helpfulVotes?: number;
id: string;
likes?: string;
marketSegment?: string;
nps?: number;
problemsSolved?: string;
productId?: string;
productName?: string;
productSlug?: string;
rating: number;
ratings?: {
easeOfAdmin?: number;
easeOfDoingBusinessWith?: number;
easeOfSetup?: number;
easeOfUse?: number;
meetsRequirements?: number;
qualityOfSupport?: number;
};
responseType?: string;
reviewSource?: string;
sourceType?: string;
status?: string;
switchedFrom?: boolean | null;
title?: string;
url?: string;
}[];
} | null;
found: boolean;
reason?: "not_found";
}完整的参数与响应参考:这个接口的每个字段、类型和示例。
参考
请求、响应与价格
最近验证于 2026-09-29 · 可用率和延迟按 30d 统计POST /v1/run/g2.reviews
curl -X POST https://api.getanyapi.com/v1/run/g2.reviews \
-H "Authorization: Bearer $ANYAPI_KEY" \
-H "Content-Type: application/json" \
-d '{"limit":50,"product":"hubspot-marketing-hub","sortBy":"recent"}'| 字段 | 类型 | 示例值 |
|---|---|---|
| 请求体 | ||
| product | string | "hubspot-marketing-hub"G2 产品 slug,例如 hubspot-marketing-hub。也接受完整的 G2 产品 URL,会自动简化为其 slug。 |
| limit | integer | 50最多返回的评价数。最小值为 50,因为 G2 评价的数据源不处理更小的分页。按返回的结果数扣费,所以上限越低,费用越少。 |
| requireFields | array | 可选;省略时路由不变,由最便宜的数据源处理。列出本次请求必须能返回的输出字段,例如 `productSlug`,请求就只会由能返回全部这些字段的数据源处理。未列出的字段,只要处理请求的数据源有,仍会照常返回。这可能提高你的价格:最便宜的数据源无法返回某个列出的字段时,会改由更贵的数据源处理,并按它的价格报价和扣费。如果某条评价确实没有某个列出的字段,该字段仍可能缺失。如果列出的字段组合没有任何单一数据源能同时返回,请求会作为无效输入被拒绝,不扣费。 |
| sortBy | enum | "recent"返回评价的排序方式:最新优先、最有帮助优先、评分最高或最低优先,或 G2 自己的默认排序。 |
| 响应 | ||
| data | object | |
| data.items | object[] | G2 reviews for the requested product. Populated whenever the provider has data for the entity. |
| data.items[].author | string | Reviewer's display name. G2 abbreviates most reviewers, for example Michael D. Populated whenever the provider has data for the entity. |
| data.items[].authorCountry | string | Country the reviewer is based in. |
| data.items[].createdUtc | number | UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds. Populated whenever the provider has data for the entity. |
| data.items[].dislikes | string | The reviewer's answer to G2's question about what they dislike. Populated whenever the provider has data for the entity. |
| data.items[].helpfulVotes | integer | Number of readers who marked the review helpful. |
| data.items[].id | string | G2 identifier for the review. Populated whenever the provider has data for the entity. |
| data.items[].likes | string | The reviewer's answer to G2's question about what they like best. Populated whenever the provider has data for the entity. |
| data.items[].marketSegment | string | G2 market segment of the reviewer's company: Small-Business, Mid-Market, or Enterprise. Populated whenever the provider has data for the entity. |
| data.items[].nps | integer | Likelihood the reviewer would recommend the product, on a 0 to 10 scale. Populated whenever the provider has data for the entity. |
| data.items[].problemsSolved | string | The reviewer's answer to G2's question about what problems the product solves and how that benefits them. Populated whenever the provider has data for the entity. |
| data.items[].productId | string | G2's numeric product id, as a string. |
| data.items[].productName | string | Name of the product the review is about. Populated whenever the provider has data for the entity. |
| data.items[].productSlug可设为必填 | string | G2 slug of the product the review is about. |
| data.items[].rating | number | Star rating the reviewer gave, on a 0.5 to 5 scale in half-star steps. Populated whenever the provider has data for the entity. |
| data.items[].ratings | object | G2's rating rubric, each on a 0 to 10 scale. A reviewer may skip any of them, and the last two are asked far less often. |
| data.items[].ratings.easeOfAdmin | integer | Rating for how easy the product is to administer. |
| data.items[].ratings.easeOfDoingBusinessWith | integer | Rating for how easy the vendor is to do business with. |
| data.items[].ratings.easeOfSetup | integer | Rating for how easy the product is to set up. |
| data.items[].ratings.easeOfUse | integer | Rating for how easy the product is to use. |
| data.items[].ratings.meetsRequirements | integer | Rating for how well the product meets the reviewer's requirements. |
| data.items[].ratings.qualityOfSupport | integer | Rating for the quality of the vendor's support. |
| data.items[].responseType | string | Form the review was submitted in, for example text or video. |
| data.items[].reviewSource | string | How G2 collected the review, for example organic or vendor. |
| data.items[].sourceType | string | How G2 collected the review (e.g. vendor, organic). |
| data.items[].status | string | Moderation status of the review on G2 (e.g. approved). |
| data.items[].switchedFrom | boolean | Whether the reviewer switched from another product. Null when G2 does not record an answer. |
| data.items[].title | string | Headline the reviewer gave the review. Populated whenever the provider has data for the entity. |
| data.items[].url | string | Canonical G2 URL for the review. Populated whenever the provider has data for the entity. |
| found | boolean | |
| reason | "not_found" | Present only when `found` is false, and says why there is no result. `not_found`: the source states the target does not exist, or returned nothing for it. A `found: false` answer is a successful call, not an error, and `costUsd` is what it actually cost. |
| 价格 | ||
| 每次请求价格(上限) | USD | US$0.00446 |
| 价格(/千条结果) | USD | US$0.050682 |
常见问题
关于 G2 评价 API
AnyAPI 的 G2 评价 API 只需一次 POST 请求 /v1/run/g2.reviews,就以统一格式的 JSON 返回 G2 数据。获取任意产品的 G2 软件评价:星级、评价者的喜欢与不满、解决的问题、所属市场细分,以及 G2 的评分细则,以干净的 JSON 返回。AnyAPI 会在 2 个数据源之间路由每个请求,某个数据源失败时自动切换。费用:每千条结果 US$0.05,单次请求最多 US$0.00446,以美元计价,无需订阅,也没有每月最低消费。过去 30 天,通过 AnyAPI 发起的 G2 评价 API 调用中有 99.0% 成功,响应时间中位数为 5.0 秒,共测量 102 次调用。
费用:每千条结果 US$0.05,单次请求最多 US$0.00446,以美元计价,无需订阅,也没有每月最低消费。你只需为一个美元钱包充值,每次调用从中扣费。部分由钱包付费的失败请求会产生处理费用,我们按成本原价转嫁,不加价;错误响应会显示收取的金额。
获取任意产品的 G2 软件评价:星级、评价者的喜欢与不满、解决的问题、所属市场细分,以及 G2 的评分细则,以干净的 JSON 返回。响应是统一格式的 JSON,外层结构与每个 AnyAPI 接口相同,所以解析另一个接口只需换一个 URL,别的都不用改。
过去 30 天,通过 AnyAPI 发起的 G2 评价 API 调用中有 99.0% 成功,响应时间中位数为 5.0 秒,共测量 102 次调用。这些是 AnyAPI 对经过网关的流量的自有测量,持续重新计算,并非公开承诺的服务等级目标。