Call it
curl https://api.peume.com/v1/call/g2-reviews-2 \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"product": "your product",
"limit": 50,
"sortBy": "recent"
}
}'const res = await fetch("https://api.peume.com/v1/call/g2-reviews-2", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"product": "your product",
"limit": 50,
"sortBy": "recent"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/g2-reviews-2",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"product": "your product",
"limit": 50,
"sortBy": "recent"
}
},
)
print(res.json()["output"])Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: g2-reviews-2.
Parameters
productRequiredstringG2 product slug, for example hubspot-marketing-hub. A full G2 product URL is also accepted and reduced to its slug.
routestringUpstream source to run on; omit for "giraffe". giraffe ($0.00016 + $0.00005 per result, at most $0.00496, 99.9% uptime); octopus ($0.006 + $0.0012 per result, at most $0.126, 100% uptime). Output fields only some routes return: productSlug (octopus). A route can refuse an input it cannot apply with a 400 source_unknown (not charged): retry on another route, or omit that input.
giraffe · octopus
limitintegerMaximum number of reviews to return. The minimum is 50 because G2 review sources will not serve a smaller page. You are billed per returned result, so a lower limit costs less.
Example: 50
sortBystringSort order for the returned reviews: newest first, most helpful first, highest or lowest rated first, or G2's own default ordering.
recent · helpful · highest · lowest · default
Example: recent
