Are a product’s reviews trustworthy
Statistical integrity signals for a product’s or app’s reviews, with a verdict. Metered.
GET /v1/prism/review-integrityBeta30 credits per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/prism/review-integrity?gid=123456789",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()Response
200 · 30 credits{ "query": null, "reviews_read": 30, "rating": { "reviews": 30, "rated": 30, "average": 4.5, "distribution": { "1": 3, "2": 0, "3": 0, "4": 3, "5": 24 }, "sentiment": { "positive": 27, "neutral": 0, "negative": 3, "method": "star rating" } }, "signals": [ { "signal": "j_shape", "value": 0.9, "threshold": 0.85, "fires": true, "note": "share of 5-star plus 1-star, with under 5% 3-star" }, { "signal": "duplicate_text", "value": 1, "threshold": 0.1, "fires": true, "note": "share of reviews whose text repeats" }, "… 3 more" ], "verdict": "medium_risk", "method": "statistical, deterministic", "legs": [ { "key": "walmart:1", "platform": "walmart", "endpoint": "walmart.reviews.get", "status": "ok", "credits": 2, "ms": 0, "error": null }, { "key": "walmart:2", "platform": "walmart", "endpoint": "walmart.reviews.get", "status": "ok", "credits": 2, "ms": 0, "error": null }, "… 1 more" ], "credits_used": 6, "failed": []}Parameters
| Name | Type | Description |
|---|---|---|
queryquery | string | Product name. |
asinquery | string | Amazon ASIN. |
gidquery | string | Walmart product id. |
app_store_idquery | string | App Store id, e.g. 1232780281. |
google_play_idquery | string | Android package, e.g. notion.id. |
sourcesquery | string | string[] | Not used. |
countryquery | string | Country (default US). |
Status codes
| Status | Meaning |
|---|---|
200 | Signals and a verdict. |
400 | Invalid input. Nothing was charged. |
401 | Missing or invalid API key. |
402 | Not enough credits, a spend cap was reached, or payment is required. |
403 | The target is private, or the account is suspended. |
404 | Nothing was found for that input on any platform. |
429 | Too many requests. Wait for Retry-After seconds. |
503 | Prism composites is temporarily unavailable. Retryable; nothing was charged. |
Every error has code, message, hint and retryable. All error codes
Questions
How is it charged?
Per platform that answers, at that platform’s own price, up to the ceiling shown. A platform that fails is listed in legs and not charged; if none answers, nothing is.
Reddit, X and every other platform named here are trademarks of their owners. We are not affiliated with or endorsed by any of them.