100 free credits. No credit card required. Get a key

How early a trend appeared on each platform

How early a term was seen on each platform and in the Meta Ad Library. Metered.

GET /v1/prism/earlinessBeta25 credits per callRefunded on failure
import os, requests

res = requests.get(
    "https://api.groundsocial.dev/v1/prism/earliness?term=labubu",
    headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()
Response
200 · 25 credits
{
"term": "labubu",
"first": "meta_ads",
"order": [
"meta_ads"
],
"lanes": [
{
"lane": "reddit",
"earliest": null,
"rows": 0,
"error": null
},
{
"lane": "hackernews",
"earliest": null,
"rows": 0,
"error": {
"kind": "not_found",
"message": "That search does not exist."
}
},
"… 6 more"
],
"unavailable": [
"google_trends",
"tiktok_ads"
],
"legs": [
{
"key": "reddit",
"platform": "reddit",
"endpoint": "reddit.search.posts",
"status": "ok",
"credits": 2,
"ms": 1,
"error": null
},
{
"key": "hackernews",
"platform": "hackernews",
"endpoint": "hackernews.search.stories",
"status": "failed",
"credits": 0,
"ms": 1,
"error": {
"kind": "not_found",
"message": "That search does not exist."
}
},
"… 6 more"
],
"credits_used": 6,
"failed": [
"hackernews",
"bluesky",
"… 2 more"
]
}

Parameters

NameTypeDescription
termquery · requiredstringA term, product or meme. Example: labubu.
regionquerystringAd library country (default US).
platformsquerystring | string[]Platforms to search.
Status codes
StatusMeaning
200Earliest date seen per platform.
400Invalid input. Nothing was charged.
401Missing or invalid API key.
402Not enough credits, a spend cap was reached, or payment is required.
403The target is private, or the account is suspended.
404Nothing was found for that input on any platform.
429Too many requests. Wait for Retry-After seconds.
503Prism 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.