A product’s reviews across marketplaces
A product’s reviews across Amazon, Walmart and Trustpilot, folded into one rating. Metered.
GET /v1/prism/product-reviewsBeta30 credits per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/prism/product-reviews?query=ninja%20air%20fryer",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()Response
200 · 30 credits{ "query": "ninja air fryer", "ids": { "asin": "B0FH9LQH9W", "walmart": "14678059894" }, "rating": 4.57, "markets": [ { "source": "amazon", "rating": 4.6, "rating_count": 47230, "reviews_read": 0, "reviews": 0, "rated": 0, "average": null, "distribution": { "1": 0, "2": 0, "3": 0, "4": 0, "5": 0 }, "sentiment": { "positive": 0, "neutral": 0, "negative": 0, "method": "star rating" }, "praised": [], "complained": [] }, { "source": "walmart", "rating": 4.5, "rating_count": 20817, "reviews_read": 10, "reviews": 10, "rated": 10, "average": 4.5, "distribution": { "1": 1, "2": 0, "3": 0, "4": 1, "5": 8 }, "sentiment": { "positive": 9, "neutral": 0, "negative": 1, "method": "star rating" }, "praised": [ { "term": "price", "count": 3 }, { "term": "bought", "count": 2 }, "… 1 more" ], "complained": [] } ], "unavailable": [ "google_shopping" ], "legs": [ { "key": "amazon_search", "platform": "amazon", "endpoint": "amazon.product_search.get", "status": "ok", "credits": 1, "ms": 1, "error": null }, { "key": "walmart_search", "platform": "walmart", "endpoint": "walmart.search.all", "status": "ok", "credits": 2, "ms": 0, "error": null }, "… 2 more" ], "credits_used": 8, "failed": []}Parameters
| Name | Type | Description |
|---|---|---|
queryquery | string | Product name. Example: ninja air fryer. |
asinquery | string | Amazon ASIN. |
gidquery | string | Walmart product id. |
brandquery | string | Brand, for Trustpilot (its .com). |
sourcesquery | string | string[] | amazon, walmart, trustpilot. |
countryquery | string | Marketplace country (default US). |
depthquery | string | Not used. |
competitorsquery | string | Not used. |
includequery | string | reviews: the reviews. |
Status codes
| Status | Meaning |
|---|---|
200 | Per-marketplace ratings and a blended one. |
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.