How much two creators’ audiences overlap
How much two creators’ commenter audiences overlap (Jaccard). Metered.
GET /v1/prism/audience-overlapBeta20 credits per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/prism/audience-overlap?handle_a=khaby.lame&handle_b=mrbeast",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()Response
200 · 20 credits{ "platform": "tiktok", "handle_a": "khaby.lame", "handle_b": "mrbeast", "commenters_a": 61, "commenters_b": 74, "shared": 0, "jaccard": 0, "overlap_of_smaller": 0, "confidence": "low", "legs": [ { "key": "tiktok:posts", "platform": "tiktok", "endpoint": "tiktok.user.videos", "status": "ok", "credits": 1, "ms": 5, "error": null }, { "key": "khaby.lame:0", "platform": "tiktok", "endpoint": "tiktok.video.comments", "status": "ok", "credits": 1, "ms": 2, "error": null }, "… 10 more" ], "credits_used": 12, "failed": []}Parameters
| Name | Type | Description |
|---|---|---|
handle_aquery · required | string | A handle (with or without @) or a profile link. Example: mkbhd. |
handle_bquery · required | string | A handle (with or without @) or a profile link. Example: mkbhd. |
platformquery | string | tiktok (default), instagram, youtube, x, threads. |
videos_per_creatorquery | integer | Posts per creator (default 5). |
depthquery | string | Not used. |
Status codes
| Status | Meaning |
|---|---|
200 | Overlap of the commenter sets. |
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.