Reviews for many businesses at once
Reviews for up to 20 businesses or apps on Yelp, Tripadvisor, app stores, Trustpilot or G2. Metered.
POST /v1/prism/reviews/bulkBeta100 credits per callRefunded on failureimport os, requests
res = requests.post(
"https://api.groundsocial.dev/v1/prism/reviews/bulk",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
json={"platform":"trustpilot","items":["notion.so","figma.com"]},
)
res.raise_for_status()
data = res.json()Response
200 · 100 credits{ "platform": "trustpilot", "count": 2, "ok": 2, "results": [ { "item": "notion.so", "ok": true, "reviews": [], "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" } }, { "item": "figma.com", "ok": true, "reviews": [], "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" } } ], "legs": [ { "key": "0", "platform": "trustpilot", "endpoint": "trustpilot.reviews.get", "status": "ok", "credits": 2, "ms": 2424, "error": null }, { "key": "1", "platform": "trustpilot", "endpoint": "trustpilot.reviews.get", "status": "ok", "credits": 2, "ms": 1352, "error": null } ], "credits_used": 4, "failed": []}Status codes
| Status | Meaning |
|---|---|
200 | Reviews per item. |
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.