EveryInfra.com

点评口碑 · 数据 API

G2

G2 API

B2B 软件评分、评论、品类榜与竞品对比——SaaS 选型与竞争情报。 统一入口 POST /api/v1/social,干净结构化 JSON,¥0.01/次、失败不计费。

7

个能力

¥0.01

每次调用

秒级

响应

1 个

API Key 通 87 平台

G2 能力清单

action必填参数可选参数单次条数模式单价 / 次返回字段
searchkeywordsort默认 10 · 最多 50同步¥0.01product_name · url · reviews_url · description · vendor_name · vendor_url · rating · rating_scale · rating_out_of_ten · review_count · pricing_type · item_type · rank · is_sponsored · image_url · categories · platform
profileurlsort同步¥0.01slug · name · description · url · reviews_url · alternatives_url · vendor_name · vendor_url · rating · rating_scale · rating_out_of_ten · review_count · pricing_tiers · features_text · image_urls · platform
reviewsurlsort默认 20 · 最多 100同步¥0.01label · mentions · record_type · product_slug · url · aggregate_rating · total_reviews · summary_text · top_pros · top_cons · platform · id · title · text · rating · rating_scale · responses · author_name · author_job_title · author_business_size · product_name · posted_at
vendorurlslug, sort, vendor, vendor_url同步¥0.01slug · name · url · description · founded · hq_location · ownership · total_revenue · employees · phone · product_count · total_reviews · products · platform · rating · rating_scale · review_count
alternativesurlsort默认 10 · 最多 30同步¥0.01name · slug · url · description · vendor_name · rating · rating_scale · rating_out_of_ten · review_count · entry_level_price · rank · source_product_slug · image_url · platform
compareslugscombined_slug, products, sort, url同步¥0.01url · combined_slug · product_count · products · ratings · alternatives_shown · platform · slug · name · vendor_name · rating · rating_scale · review_count · score · sample_size · note · criterion · per_product
categorycategorysort默认 10 · 最多 40同步¥0.01name · slug · url · description · vendor_name · vendor_slug · category · category_slug · rating · rating_scale · rating_out_of_ten · review_count · entry_level_price · rank · page · is_sponsored · awards · image_url · platform

返回字段含义

字段名跨 87 个平台统一,同一个键在哪个平台都是同一个意思—— 这也是换平台只需改 platform 一个字段的原因。 机器可读版:/api/v1/social/fields

url
该记录在原平台上的可访问链接。
description
简介或描述,通常比 text 短。
rating
评分。**分制随平台而异**,同一行的 `rating_scale` 给出该平台满分 (多数是 5,Booking/豆瓣/爱奇艺/NAVER 是 10)。跨平台比较前必须先按 rating_scale 换算 —— 直接比数字会得出反的结论。
rating_scale
上一列 `rating` 的满分。5 表示五星制、10 表示十分制。只在该行有 rating 时出现。
review_count
评价条数,用于商品/商家类能力。null 表示不公开,不等于 0。
image_url
图片链接。多图能力可能返回 image_urls 数组。
platform
数据来源平台标识,与请求里的 platform 一致(如 xiaohongshu、tiktok)。
name
名称。用于账号/商品/商家类能力,指该对象本身的名字。
id
该记录在原平台上的唯一标识。仅在同一平台内唯一,跨平台可能重复。
title
标题。平台无标题概念时(如纯文本帖)为 null。
text
正文内容,已去除 HTML 标签。长文可能被上游截断。
author_name
作者昵称(显示名)。
posted_at
发布时间,ISO 8601 格式、UTC 时区(如 2026-08-07T12:34:56+00:00)。上游只给非标准字符串时原样透传,解析前建议做容错。null 表示平台未公开。
phone
联系电话,原文透传,未做号码格式归一。
category
分类名称,取值为原平台的分类体系,未做跨平台归一。

另有 G2 特有字段 product_name · reviews_url · vendor_name · vendor_url · rating_out_of_ten · pricing_type · item_type · rank · is_sponsored · categories · slug · alternatives_url · pricing_tiers · features_text · image_urls · label · mentions · record_type · product_slug · aggregate_rating · total_reviews · summary_text · top_pros · top_cons · responses · author_job_title · author_business_size · founded · hq_location · ownership · total_revenue · employees · product_count · products · entry_level_price · source_product_slug · combined_slug · ratings · alternatives_shown · score · sample_size · note · criterion · per_product · vendor_slug · category_slug · page · awards,保留该平台自身的语义。

30 秒调用示例

g2_search.sh
curl -X POST https://api.everyinfra.com/api/v1/social \  -H "Authorization: Bearer omg_live_你的KEY" \  -H "Content-Type: application/json" \  -d '{"platform":"g2","action":"search","params":{"keyword":"咖啡"}}'

返回长这样

response.json
{  "id": "g2_…",  "search": [    {      "product_name": "…",      "url": "https://…",      "reviews_url": "https://…",      "description": "…",      "vendor_name": "…",      "vendor_url": "https://…",      "rating": 128,      "rating_scale": "…",      "rating_out_of_ten": "…",      "review_count": 128,      "pricing_type": "…",      "item_type": "…",      "rank": 128,      "is_sponsored": true,      "image_url": "https://…",      "categories": "…",      "platform": "g2"    }  ],  "count": 10,  "billing": { "charged": true, "credits": 100, "cny": 0.01 }}

常见用例

关键词监控

按关键词轮询 G2 的新内容,配合 Gemini 文本 API 做情绪分类与异常波动告警。

口碑与差评告警

拉 G2 的评论做评分走势与差评归因,新差评第一时间入库推送。

账号与主体画像

按 G2 的主页数据建达人/商家档案,做投放筛选或竞品盯防。

G2 API 常见问题

G2 API 怎么调用?

统一入口 POST /api/v1/social,请求体传 platform="g2"、action(见上方能力清单)和 params。鉴权用请求头 Authorization: Bearer <API Key>,同一把 Key 可以调用全部 87 个平台,不需要为每个平台单独申请。

G2 API 怎么收费?

按次计费,¥0.01/次,从统一的 ¥ 钱包扣。一次调用一次计费,不按返回条数或页数加价;参数错误、鉴权失败和空结果都不计费。每次调用的响应里带 billing 字段,写明本次实扣多少。

G2 API 一次能返回多少条数据?

按能力不同,单次最多 100 条(逐能力上限见上方清单的「单次条数」列)。传 limit 参数控制,不传则用默认值。一次调用就返回这么多条,不需要翻页、也不会因为条数多而多收钱。

G2 API 返回哪些字段?

每个能力的返回字段都列在上方能力清单的「返回字段」列里,例如 search 返回 product_name、url、reviews_url、description、vendor_name、vendor_url 等。字段名跨平台统一,换平台不用改解析代码。

可以先免费试用 G2 API 吗?

可以。注册免费,加微信领邀请码可得 ¥5 免费额度(≈500 次数据调用或 400 次 AI 调用),足够把 G2 的 7 个能力都试一遍。无需信用卡。

开始调用 G2 API

加微信领 ¥5 免费额度 —— ≈500 次数据调用或 400 次 AI 调用,足够把 G2 的能力全试一遍。

免费注册 →