SocialCrawl

Discover

Track topics and hashtags

Search several topics and their hashtags on TikTok, Instagram, YouTube and X every few hours, judge every post against each topic and get only the posts no earlier run returned

Polling each hashtag on each platform returns the same posts again on every poll, posts that use the hashtag for something else, and a different format per platform. One scheduled discover request replaces those polls. Each topic is a group with its keywords and hashtags, every post is judged against the topic, repeats are removed across platforms, and each run returns only the posts that no earlier run returned.

The request

Request body
{
  "groups": [
    {
      "id": "georgia",
      "keywords": ["Georgia General Assembly", "Georgia election 2026", "Georgia cost of living", "#gapol", "#georgiapolitics"],
      "context": "Posts about politics in the US state of Georgia: the General Assembly, the 2026 election, abortion law and the cost of living in Georgia"
    },
    {
      "id": "groceries",
      "keywords": ["grocery prices", "shrinkflation", "SNAP benefits", "#groceryprices", "#foodstamps"],
      "context": "Posts about rising grocery prices, shrinkflation, and SNAP or food stamp benefits in the United States"
    },
    {
      "id": "maga",
      "keywords": ["MAGA", "Trump administration", "America First", "#maga", "#americafirst"],
      "context": "Posts about President Trump, his administration or the MAGA movement, from supporters or critics"
    }
  ],
  "platforms": ["tiktok", "instagram", "youtube", "twitter"],
  "period": "2d",
  "label": ["stance"],
  "max_credits": 1200,
  "schedule": { "every": "6h", "max_credits_per_run": 1200, "max_credits_per_month": 30000, "name": "Topics" }
}
cURL
# request.json is the body above: "groups": [...], "schedule": {...}, "max_credits": 1200
curl -X POST "https://www.socialcrawl.dev/v1/prism/discover" \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: topics-6h" \
  --data @request.json

Send it once with "dry_run": true (or ?dry_run=1 on the URL) to see every search, the estimate of one run and, in data.schedule, the month's runs, credits and money with a recommended max_credits_per_month, free. It creates nothing and does not use your Idempotency-Key (Idempotency), so the real request can send the same one. The real request answers with data.schedule (its schedule_id, next_fire_at and links.runs_url) and starts the first run at once.

What each part does

  • Write a hashtag as a #tag keyword inside the group. On Instagram, TikTok and YouTube it runs both the platform's hashtag search and its keyword search, and on X it searches the hashtag as text. A group has no hashtags field.
  • context is what a kept post must be about. A post that uses #maga or #gapol for something else is dropped as off_topic, so one group's hashtag noise never reaches your data.
  • period counts calendar days in tz (UTC by default), so 1d is today only and a run just after midnight would see minutes of posts. 2d covers the gap, and the watermark below stops repeats.
  • label: ["stance"] labels each kept post positive, negative, neutral or no_opinion toward its group's keywords, and null when the judge is unsure. summary.by_group.<id>.stance counts them per topic.
  • schedule.every takes 1h, 6h, 12h, 1d, 7d or 30d. Sending the same request again from the same key returns the schedule that already exists (deduplicated: true) and starts nothing.

Only new posts on every run

Each scheduled run starts from the previous run's watermark, so a post that an earlier run returned is dropped before it is judged and never billed again. summary.dropped.by_filter["filter:watermark"] counts them. A scheduled request also continues from a one-off run of the same request, so a test run you made first is not delivered twice.

Measured on 20/10/2026 with the three groups above and "period": "1d":

RunPosts returned by the searchesKeptDropped as already deliveredCredits
One-off run, 16:21 UTC2,2324400209
First scheduled run, 16:31 UTC2,1751241,006139
Second scheduled run, 17:32 UTC2,274162961151

On the one-off run the searches returned 2,232 posts. Of those, 299 were exact repeats across searches, 977 were outside the window and 497 were off-topic, so 440 were kept. The one-off run took about 6 minutes.

What a run costs

How a run is billed, and how max_credits stops it, is on Runs, results and cost.

The searches cost the same on every run, and judging is paid only for posts not judged before. Per platform, on the one-off run:

PlatformSearch creditsKept postsCredits per kept post
YouTube212130.10
X141270.11
TikTok20640.31
Instagram59361.64

Instagram's hashtag search costs 5 credits a page and its reels search returned few posts inside one day, so Instagram cost about 60 of each run's 115 search credits and kept 1 of the 124 new posts on the first scheduled run and 13 of the 162 on the second. Keep Instagram for the topics where you need it, or put it in a group of its own on a slower schedule. summary.by_platform.<platform>.credits_per_kept shows this for your own topics after every run.

max_credits_per_run must cover the dry run's worst case (estimate.credits.max, 1,143 for this request), so that no run stops halfway; a lower cap is a free 400 whose suggested_value is the number to send. The runs above spent 139 to 209. max_credits_per_month is the budget. A run that could take the month past it is skipped and the schedule pauses until the next month.

Reading the posts

  • GET {links.runs_url} lists the schedule's runs, newest first, each with status, credits.spent and status_url.
  • GET {status_url}/results.jsonl streams a settled run's kept posts, one per line, free. Each post carries group, platform, url, published_at, author.key, engagement, matched_keywords, hashtags, judgments.relevance.p and judgments.stance.label. Store posts by id, which stays the same across runs.
  • Every line of the export is one JSON row, and its kind says what it is (post, warning, removed or trailer). Bios and captions can contain U+2028, U+2029 and U+0085, which some line readers (Python's splitlines(), Node's readline) treat as line ends, so the export writes them as \u escapes; see Runs, results and cost.
  • Each run that keeps posts sends discover.new_rows with the count and the first 100 new ids. Register a URL once with POST /v1/webhook-endpoints and "types": ["discover.*"] (Event webhooks), or read the same events with GET /v1/events?types=discover.new_rows&cursor=oldest (Events).
  • An account runs ten background runs at once. A scheduled run that starts while ten others are running waits as queued and starts by itself.

Hashtags you are not searching yet

view=items on a week of a topic's posts lists the hashtags those posts use, with their count per platform and their growth over the week:

cURL
curl -G "https://www.socialcrawl.dev/v1/prism/discover" \
  -H "x-api-key: YOUR_API_KEY" \
  --data-urlencode "keywords=Georgia General Assembly,Georgia election 2026,Georgia cost of living,#gapol,#georgiapolitics" \
  --data-urlencode "context=Posts about politics in the US state of Georgia: the General Assembly, the 2026 election, abortion law and the cost of living in Georgia" \
  --data-urlencode "view=items" \
  --data-urlencode "platforms=tiktok,instagram,youtube,twitter" \
  --data-urlencode "period=7d" \
  --data-urlencode "max_credits=150"

On 20/10/2026 it returned 268 items for 45 credits. The hashtags the group did not search included #JonOssoff (19 posts on four platforms, growth 5.33), #election2026 (14), #KeishaLanceBottoms (8, growth 7), #earlyvoting (7) and #GeorgiaSenate (3). Add the ones that belong to the topic as #tag keywords; sending the schedule's request with new keywords creates a new schedule, so delete the old one with DELETE /v1/prism/discover/schedules/{schedule_id}.

What a topic's posts are about: view=items

view=items answers the hashtags, mentions, sounds, topics and named things (apps, products, brands, companies, titles) that the kept rows of a run share, instead of the rows themselves. With comments=inline, each comment read under the top posts counts as a row of its own, so an item can come from comments alone.

cURL
curl -G "https://www.socialcrawl.dev/v1/prism/discover"   -H "x-api-key: YOUR_API_KEY"   --data-urlencode "keywords=best apps"   --data-urlencode "context=apps people recommend, use or ask about"   --data-urlencode "platforms=tiktok,youtube"   --data-urlencode "view=items"   --data-urlencode "comments=inline"   --data-urlencode "comments.per_post=100"   --data-urlencode "max_credits=40"
An item row (from keywords=budgeting app&platforms=youtube&view=items, trimmed)
{
  "kind": "hashtag", "key": "hashtag:budgeting", "label": "#budgeting",
  "platforms": { "youtube": { "posts": 3, "distinct_authors": 3, "views_sum": 380600 } },
  "first_seen_at": "2024-01-11T22:54:45.000Z", "last_seen_at": "2025-09-14T13:46:32.000Z",
  "daily": [
    { "date": "2024-01-11", "posts": 1, "views": 24000 },
    { "date": "2024-11-24", "posts": 1, "views": 353000 },
    { "date": "2025-09-14", "posts": 1, "views": 3600 }
  ],
  "growth": { "ratio": null, "basis": "posts_second_half_over_first_half", "n": 3, "reason": "Growth needs at least 8 dated rows of this item in the pool; it has 3." },
  "country_share": null,
  "early_adopters": [{ "author": "youtube:UC…", "first_post_at": "2024-01-11T22:54:45.000Z" }],
  "top_posts": ["yt_mtwytm43p0g8", "yt_e4k18fz7rcmv", "yt_7zmwh3gaq6cx"],
  "origin": "pool", "platform_total": null, "rank": 1
}
  • Each item has kind (hashtag, mention, sound, topic or entity), key, label, platforms.<platform> { posts, distinct_authors, views_sum }, first_seen_at and last_seen_at, daily[{ date, posts, views }] on the calendar of tz, growth, country_share, early_adopters[{ author, first_post_at }], top_posts (the ids of its best rows), origin and rank. Every count is over this run's kept rows: "first seen" means first in this run, never first on the platform.
  • growth { ratio, basis, n } is the posts in the second half of the window over the first half, among this run's rows: it describes what the searches found, not the platform as a whole, and searches that read newest first sample recent days more densely. Under 8 dated rows it is withheld: ratio: null with a reason.
  • view=items is a run's only view: sending it with another view (view=posts,items) is a free 400 naming view. Start a second run for the other view.
  • An items run's route takes wait_s, changes_since, view, cursor and page_size (or limit); any other parameter (platform, group, sort, state) is a free 400 that names it, since items are rolled up across the whole run. On an items run changes_since only sets what wait_s waits for: the read lists every item from rank 1, in pages, because a new row can move any item. Its results.jsonl streams the items, one per line, then {"complete":true}, and takes view and cursor.
  • A sound is the post's own sound id (TikTok and Douyin), or Instagram's audio cluster where a row carries one, which groups different uploads of the same sound. Under author_identity=omit or hash, a sound whose title is the platform's "original sound" form (which carries its creator's handle or name) is labeled original sound, and its key still groups its uploads. A topic is the niche label already on the rows, so it appears with label=niche.
  • An entity is chosen from the row's own words: a capitalized name, an app named by an App Store or Google Play link, a link's site or an @handle that the text itself contains. A judge picks at most one per row, or none, so an entity item only ever names something its rows say. Names that are one another's spelling ("Notion" and "Notion AI") are one item.
  • Item rows render in format=compact (empty values dropped) and format=text (one line per item). summary.items counts the items by kind and origin and the rows judged for an entity. pagination.next_cursor pages the rest of the items, free.
  • The entity choice costs 1 credit per started 25 rows judged (rows with no name in them are never sent), shown in credits.by_stage.items and, before the run, in dry_run's estimate.by_stage.items. Everything else about items is free. In a background run the entity choice runs once the rows are collected.

Trend boards with no keyword

view=items&country=DE (or mode=board) reads each platform's trend boards for the country: TikTok's local feed and hashtag board, YouTube's trending videos, Google's trending searches (under web) and Pinterest Trends. Each item names its board in origin (board:tiktok/hashtags/popular) and carries the board's own rank and count on board. A board item names its sound, hashtag or topic only: its early_adopters and top_posts are always empty, because the videos on a board are not rows of your run, and the creators and posts behind an item are listed only on the items found in your own posts (origin: "pool"). data.boards lists every board per country with its status: unsupported_country where the platform publishes no board for that country (TikTok's hashtag board covers 27 markets, Pinterest Trends 23; Instagram and YouTube Shorts trends have no country at all), unavailable where the platform has withdrawn the board. X and Reddit publish no trend board per country. Several countries can be read at once (country=ZA,NG,KE). Add keywords (mode=board&keywords=wedding) to get the boards and the items found in posts about the keywords together; mode=board reads items, so it needs no view, and a view other than items beside it is a free 400. Boards are read as of now and keep their own windows. A window (period, since, until) only picks the window of TikTok's hashtag board (7, 30 or 90 days, the narrowest that covers it) and of Google's trending searches (24 hours, 48 hours or 7 days). TikTok's local feed, YouTube's trending videos and Pinterest Trends are today's lists, and no board item is filtered by the dates. A board with no keywords that is sent a window says so in _warnings; on a board with keywords, the window narrows the posts. country must be an ISO 3166-1 alpha-2 code; any other code is a free 400 naming country, with did_you_mean where a common alias names one (UK is GB). Each board call is billed at its own price: TikTok's local feed 5 credits, its hashtag board 6, YouTube's trending videos 1, Google's trending searches 5 and Pinterest Trends 10, so Germany's five boards cost 27 credits.

Manage the schedule

Every schedule option, and how to pause, resume or delete one, is on Groups, schedules and lists.

CallWhat it does
GET /v1/prism/discover/schedules/{schedule_id}The schedule, its last 10 runs and this month's spend.
POST /v1/prism/discover/schedules/{schedule_id}/pauseStops new runs until you resume it.
POST /v1/prism/discover/schedules/{schedule_id}/resumeStarts it again, optionally with new caps.
DELETE /v1/prism/discover/schedules/{schedule_id}Deletes it; its runs keep their posts until their retention ends.

All four are free. See Schedules for skipped slots and pauses.

Next steps

On this page

시작할 준비가 됐습니까?

무료로 소셜 데이터를 받기 시작하고, 프로젝트가 커지면 그대로 확장합니다. 카드 등록은 필요 없습니다.