Campaign lift for a hashtag
A hashtag or phrase before, during and after a campaign: volume, lift, amplifiers. Metered.
GET /v1/prism/campaignBeta35 credits per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/prism/campaign?hashtag=blackfriday&window_start=2026-11-20",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()Response
200 · 35 credits{ "term": "#blackfriday", "periods": [ { "name": "before", "since": "2026-11-13", "until": "2026-11-20", "mentions": 0, "engagement": 0, "by_platform": {} }, { "name": "during", "since": "2026-11-20", "until": "2026-11-27", "mentions": 0, "engagement": 0, "by_platform": {} }, "… 1 more" ], "lift": null, "engagement_lift": null, "top_amplifiers": [], "coverage": { "rows_read": 0, "earliest": null, "latest": null }, "legs": [ { "key": "bluesky@before", "platform": "bluesky", "endpoint": "bluesky.search.posts", "status": "failed", "credits": 0, "ms": 1, "error": { "kind": "not_found", "message": "Bluesky has nothing at that address." } }, { "key": "hackernews@before", "platform": "hackernews", "endpoint": "hackernews.search.stories", "status": "failed", "credits": 0, "ms": 1, "error": { "kind": "not_found", "message": "That search does not exist." } }, "… 8 more" ], "credits_used": 4, "failed": [ "bluesky@before", "hackernews@before", "… 5 more" ]}Parameters
| Name | Type | Description |
|---|---|---|
hashtagquery | string | A hashtag, # optional. |
phrasequery | string | Or a phrase. |
window_startquery · required | string | Campaign start, YYYY-MM-DD. Example: 2026-11-01. |
window_endquery | string | Campaign end (default today). |
pre_daysquery | integer | Days before (default 7). |
post_daysquery | integer | null | Days after (default 7). |
brandquery | string | Also required in each row. |
platformsquery | string | string[] | Default bluesky, reddit, hackernews, tiktok, youtube, threads. |
includequery | string | Not used. |
Status codes
| Status | Meaning |
|---|---|
200 | Volume per period, lift, amplifiers. |
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.