What is trending in a country today
What is rising in one country today: TikTok, YouTube, Pinterest, X and Bluesky trends. Metered.
GET /v1/prism/trend-boardBeta30 credits per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/prism/trend-board?country_code=US",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()Response
200 · 30 credits{ "country_code": "US", "period": "7", "sections": { "tiktok_feed": [ { "platform": "tiktok", "id": "7691563424949472543", "url": "https://www.tiktok.com/@trixitrix04/video/7691563424949472543", "title": null, "text": "#singlemom #trend #fyp #trending #fcgclubhouse ", "author": "trixitrix04", "author_name": "trixitrix", "author_id": "7596822567538377783", "created_at": "2026-10-01T05:14:51.000Z", "likes": 820200, "…": "5 more fields" }, "… 1 more" ], "tiktok_hashtags": [ { "platform": "tiktok", "id": null, "url": null, "title": null, "text": null, "author": null, "author_name": null, "author_id": null, "created_at": null, "likes": null, "…": "5 more fields" }, "… 1 more" ], "tiktok_videos": [ { "platform": "tiktok", "id": null, "url": null, "title": null, "text": null, "author": null, "author_name": null, "author_id": null, "created_at": null, "likes": null, "…": "5 more fields" }, "… 1 more" ], "youtube_trending": [ { "platform": "youtube", "id": "UyNgewSEJBo", "url": "https://www.youtube.com/watch?v=UyNgewSEJBo", "title": "mthu - it's like i'm not even here (Official Music Video)", "text": null, "author": "mthu", "author_name": "mthu", "author_id": "UCRies0g4PwzR8wn4VMJCTNw", "created_at": "2026-08-26T12:00:00.000Z", "likes": null, "…": "5 more fields" }, "… 2 more" ], "x_trends": [ { "platform": "x", "id": "2125235212363682098", "url": "https://x.com/i/status/2125235212363682098", "title": null, "text": "🚨🇸🇳 BREAKING: SENEGAL ARE AFCON 2025 WINNERS, CAS VERDICT ANNOUNCE.", "author": null, "author_name": null, "author_id": "330262748", "created_at": "2026-11-24T14:28:54.000Z", "likes": 304305, "…": "5 more fields" }, "… 7 more" ] }, "unavailable": [ "pinterest_trends", "… 2 more" ], "legs": [ { "key": "tiktok_feed", "platform": "tiktok", "endpoint": "tiktok.trending.feed", "status": "ok", "credits": 1, "ms": 1, "error": null }, "… 6 more" ], "credits_used": 6}Parameters
| Name | Type | Description |
|---|---|---|
country_codequery · required | string | Two-letter country. Example: US. |
periodquery | "7" | "30" | "120" | TikTok period in days (default 7; videos use 7 or 30). One of 7, 30, 120. |
limitquery | integer | Items per section (default 20). |
Status codes
| Status | Meaning |
|---|---|
200 | One section per source. |
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.