Download Markdown

Monitoring Subscriptions

A monitoring subscription collects new content from a platform on a schedule you set. By the end of this page you can create subscriptions, see what each run collected, and pause or edit them.

Collected data is read like any other data: keyword search, browse or the change feed.

You want toUse
Read data that’s already storedKeyword search or browse; no subscription needed
Collect once, nowA live query, or run once below
Keep collecting from now onThis page

What you can monitor

resource_kindMonitors
keywordNew content for a keyword or search expression
userA user’s profile and posts
channelA channel, topic, tag, RSS or other feed

The console currently creates keyword subscriptions only; use the API for user and channel subscriptions. Not every platform supports every kind.

Before you start

  • Your application’s access must enable monitoring (collection_subscription_enabled) and include the target platform.
  • A platform that supports live queries doesn’t necessarily support scheduled monitoring. Go by the platform availability shown in the console.
  • Each application can have up to 100 active keyword subscriptions by default; contact us to change it.

Create in the console

Only organization owners and admins can create, pause and resume subscriptions; other members can view.

  1. Open keyword monitoring, choose an application and expand “New keyword task”.
  2. Choose platforms (several allowed). Only platforms with monitoring enabled are shown; temporarily unavailable ones can’t be selected.
  3. Enter keywords. You can enter several, one per line or separated by commas.
  4. Choose the schedule and the maximum items per run; optionally language and region.
  5. Create.

Each keyword-and-platform pair becomes its own subscription. 10 keywords on 3 platforms create 30 subscriptions. Existing pairs are skipped. Up to 50 pairs per submission.

Start with one keyword and a small item count, check one run, then add more.

Create with the API

Collect “OpenAI” on Weibo every hour, up to 100 items per run:

Bash
curl -sS "$WHALE_BASE_URL/v1/collection/subscriptions" \
  -H "Authorization: Bearer $WHALE_API_KEY" \
  -H "Content-Type: application/json" \
  --data '{
    "name": "OpenAI on Weibo",
    "source_platform": "weibo",
    "resource_kind": "keyword",
    "keyword": "OpenAI",
    "interval_seconds": 3600,
    "max_items": 100
  }'

You get 201:

JSON
{
  "subscription": {
    "id": "cspec_01K...",
    "source_platform": "weibo",
    "resource_kind": "keyword",
    "interval_seconds": 3600,
    "status": "active",
    "next_run_at": "2026-10-14T09:00:00Z",
    "created_at": "2026-10-14T08:00:00Z"
  }
}

201 and active mean the subscription exists, not that data has been collected. Later calls use subscription.id.

To monitor a YouTube user, use this body instead:

JSON
{"source_platform": "youtube", "resource_kind": "user", "user_id": "channel_123", "interval_seconds": 3600}

To monitor a Weibo topic every 15 minutes:

JSON
{"source_platform": "weibo", "resource_kind": "channel", "topic": "ai-agent", "interval_seconds": 900}
ParameterRequiredMeaning
source_platformYesOne platform. Create one subscription per platform
resource_kindYeskeyword, user or channel
keywordFor keyword subscriptions1 to 200 characters
user_id, user_urlAt least one for user subscriptionsUser ID or profile link
channel_id, channel_url, topicAt least one for channel subscriptionsChannel ID, channel link or topic
interval_secondsYesSchedule, 60 to 604800 seconds (1 minute to 7 days)
max_itemsFor keyword subscriptionsUp to how many per run, 1 to 1000. A ceiling, not a guarantee
sync_modeNoSee where collection starts
modeNoonce runs a single time; see run once
nameNoA name to recognize it by
next_run_atNoWhen to run first; as soon as possible if omitted
max_attemptsNoAttempts per run after failure, default 3
language, regionNoHints to narrow the scope; they don’t widen access

Don’t send dataset_id; storage is managed by the platform.

Where collection starts

KindFirst runAfter that
KeywordContent from the last schedule intervalContinues from the last successful position
User (default all_content)All visible contentSwitches to new content only
Channel (default incremental)From nowNew content only
  • Keyword subscriptions can’t set a time range. For older content, first backfill up to 7 days with a live query, then subscribe.
  • After resuming from a pause, collection catches up at most 7 days.

Run once

To try a single run: choose “Run once” in the console, or pass "mode": "once" to the API.

  • Keyword subscriptions only.
  • Collects the last 24 hours, in a single run. Automatic retries on failure still count as that run.
  • next_run_at isn’t accepted, and it can’t be “resumed” into a scheduled subscription. Create another to run again.
  • It isn’t a live query: completion time and item count aren’t guaranteed.
  • Unfinished one-time runs count toward the subscription limit.

Check runs

List subscriptions:

Bash
curl -sS "$WHALE_BASE_URL/v1/collection/subscriptions?limit=50" \
  -H "Authorization: Bearer $WHALE_API_KEY" \
  | jq '.subscriptions[] | {id, status, next_run_at, last_run_at}'
  • limit is 1 to 200, default 50.
  • last_run_at is when the last run was dispatched, not when it finished.
  • latest_task summarizes the latest run. If it’s missing, nothing has been dispatched yet or older records were cleaned up.

See each run of one subscription:

Bash
curl -sS "$WHALE_BASE_URL/v1/collection/subscriptions/$SUBSCRIPTION_ID/tasks?limit=20" \
  -H "Authorization: Bearer $WHALE_API_KEY" \
  | jq '.tasks[] | {id, status, attempt_count, last_error, result, updated_at}'
Run statusMeaning
pendingWaiting
leased, runningRunning
succeededFinished; result has collection counts
failed, timeoutFailed or timed out; reason in last_error. Retried until max_attempts
paused, canceledPaused or canceled

Add status to see only one status.

Scheduling rules:

  • A new run doesn’t start until the previous one finishes. Missed intervals merge rather than running back to back.
  • Access is checked at every dispatch. If access is lost, the subscription pauses automatically; resume it manually after access returns.
  • A successful run means collection is done. Data is stored afterwards and may take a little longer to become searchable.
  • Platform visibility and per-run limits can cause duplicates or gaps.

See what each run collected

There are two entry points showing the same content:

  • In keyword monitoring, click a keyword or “Browse content” to open the subscription workspace.
  • In the Data browser, choose Monitoring results, then an application, subscription and run. The workspace’s “Open in data browser” link carries the current subscription and run.

In the workspace:

  1. “Content browser” shows the latest run first; switch to another run when needed.
  2. Click a title to read the body in place, or open the source link.
  3. Page with previous/next receipt pages. The title filter only filters the current page, not the whole catalog.
  4. “Runs” shows each run’s progress, counts and task ID; “Run results” takes you back to the content browser.
  • Only the latest 20 runs, with up to 20 receipts per page.
  • Reading bodies needs body access; seeing titles doesn’t mean you can read bodies.
  • The body is the current version, not a snapshot from collection time, and is cut after 100,000 characters.
  • Playground is for testing the API, not for browsing monitoring results.
Result statusMeaning
Stored, Already existsStored and readable by your application
Waiting to store, RetryingNot confirmed yet; click “Refresh results” later
Store failedNot stored; contact us with the run ID
Not readable nowThe document doesn’t exist or you no longer have access
No linked receiptsNot reported yet, or an older run without links. It doesn’t mean 0 items
  • Up to 20 per page. Within a page a document appears once; it may reappear on another page.
  • The page doesn’t refresh automatically.
  • “Not reported” counts aren’t 0.
  • This view is console-only, with no API.

Pause, resume and edit

Pausing stops future dispatches; it doesn’t interrupt a run in progress:

Bash
curl -sS -X POST "$WHALE_BASE_URL/v1/collection/subscriptions/$SUBSCRIPTION_ID/pause" \
  -H "Authorization: Bearer $WHALE_API_KEY" | jq '.subscription.status'
 
curl -sS -X POST "$WHALE_BASE_URL/v1/collection/subscriptions/$SUBSCRIPTION_ID/resume" \
  -H "Authorization: Bearer $WHALE_API_KEY" | jq '.subscription.status'

Subscription status: active, paused or disabled (disabled by us; you can’t resume it yourself, so contact your organization admin).

To edit a keyword subscription (console only):

  1. Click “Edit”. Running subscriptions show an explicit “Pause and edit” action; paused subscriptions can be edited directly.
  2. Change the keyword, schedule, item count, language or region. The platform cannot change. If dispatched runs remain unfinished, saving asks you to wait and keeps your input.
  3. After saving it stays paused; resume it manually.

Changing the keyword, language or region restarts incremental progress. Past runs and results don’t change.

Pause subscriptions you no longer need. Subscriptions and historical data can’t be deleted yet.

Get notified when a run finishes

MarsYoo can notify your server at the end of each run. See monitoring webhooks.

Credits

Each subscription API call is billed as one request; failed requests are refunded. Requests follow the application’s rate limits.

When something fails

  • Keyword subscription limit reached: 409 keyword_subscription_limit_reached. Pause unused subscriptions first.
  • Platform not open for monitoring: 409 platform_dataset_route_missing.
  • dataset_id sent: 400 dataset_id_not_allowed. Remove the field.

Other errors: Error codes. All parameters: API reference.