Batch search across social platforms
Up to five search-everywhere requests in one call, each with its own options.
POST /v1/search/everywhereBeta100 credits per callRefunded on failureimport os, requests
res = requests.post(
"https://api.groundsocial.dev/v1/search/everywhere",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
json={"queries":[{"query":"notion ai"},{"query":"obsidian"}]},
)
res.raise_for_status()
data = res.json()Response
200 · 100 credits{ "runs": [ { "query": "notion ai", "keywords": [ "notion ai" ], "platforms": [ "reddit", "… 7 more" ], "window": { "since": null, "until": null }, "count": 9, "total_found": 9, "by_platform": { "reddit": 0, "x": 0, "bluesky": 0, "threads": 6, "tiktok": 0, "youtube": 3, "hackernews": 0, "pinterest": 0 }, "results": [ { "…": "16 fields" }, "… 8 more" ] }, "… 1 more" ], "legs": [ { "key": "reddit", "platform": "reddit", "endpoint": "reddit.search.posts", "status": "ok", "credits": 2, "ms": 1, "error": null }, "… 15 more" ], "credits_used": 8, "failed": [ "x", "… 9 more" ]}Status codes
| Status | Meaning |
|---|---|
200 | One answer per query. |
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 matched on any platform. |
429 | Too many requests. Wait for Retry-After seconds. |
503 | Cross-platform search 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.