Many social profiles in one call
Up to 50 (platform, handle) pairs → one profile card each. Metered.
POST /v1/prism/profilesBeta250 credits per callRefunded on failureimport os, requests
res = requests.post(
"https://api.groundsocial.dev/v1/prism/profiles",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
json={"items":[{"platform":"tiktok","handle":"khaby.lame"},{"platform":"youtube","handle":"mkbhd"}]},
)
res.raise_for_status()
data = res.json()Response
200 · 250 credits{ "count": 2, "ok": 1, "results": [ { "platform": "tiktok", "handle": "khaby.lame", "ok": false, "error": { "kind": "not_found", "message": "No fixture for user.get" } }, { "ok": true, "platform": "youtube", "handle": "mkbhd", "name": "Marques Brownlee", "bio": "MKBHD: Quality Tech Videos | YouTuber | Geek | Consumer Electronics | Tech Head | Internet Personality!\n\nbusiness@MKBHD.…", "followers": 21500000, "following": null, "posts": 1868, "verified": true, "url": "https://www.youtube.com/@mkbhd" } ], "credits_used": 1}Status codes
| Status | Meaning |
|---|---|
200 | One card per pair. |
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.