How a developer tool is doing
A developer tool’s GitHub dossier, Hacker News reaction, Reddit chatter, Stack Overflow and npm. Metered.
GET /v1/prism/devtool-pulseBeta20 credits per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/prism/devtool-pulse?query=bun&repo=oven-sh/bun",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()Response
200 · 20 credits{ "query": "bun", "repo": { "owner": "oven-sh", "repo": "bun", "dossier": null }, "hackernews": { "stories": 0, "top": [] }, "reddit": { "posts": 0, "sentiment": { "positive": 0, "negative": 0, "neutral": 0, "positive_share": 0, "negative_share": 0, "net": 0, "method": "lexicon" }, "top": [] }, "stackoverflow": { "questions": 0, "unanswered": 0, "top": [] }, "npm": null, "legs": [ { "key": "repo", "platform": "github", "endpoint": "github.repo.dossier", "status": "failed", "credits": 0, "ms": 1, "error": { "kind": "not_found", "message": "Not in the sample data." } }, { "key": "reddit", "platform": "reddit", "endpoint": "reddit.search.posts", "status": "ok", "credits": 2, "ms": 1, "error": null }, "… 3 more" ], "credits_used": 2, "failed": [ "repo", "stackoverflow", "… 2 more" ]}Parameters
| Name | Type | Description |
|---|---|---|
queryquery · required | string | Tool name. Example: bun. |
repoquery | string | owner/repo or a GitHub link. Example: vercel/next.js. |
subredditquery | string | Keep Reddit to one subreddit. |
date_fromquery | string | YYYY-MM-DD. |
date_toquery | string | YYYY-MM-DD. |
includequery | string | Not used. |
Status codes
| Status | Meaning |
|---|---|
200 | Repo, Hacker News, Reddit, Stack Overflow, npm. |
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.