---
title: Monitoring Subscriptions
description: Have MarsYoo collect new content for a keyword, user or channel on a schedule, and check the results of every run.
type: guide
status: stable
updated: 2026-12-03
url: /en/docs/collection-subscriptions
markdown: /en/docs/collection-subscriptions.md
---

Read as needed; not a required onboarding step. Path：[Data Access Path](/en/docs)

# 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](/en/docs/search), [browse](/en/docs/browse) or the [change feed](/en/docs/change-feed).

| You want to | Use |
| --- | --- |
| Read data that's already stored | [Keyword search](/en/docs/search) or [browse](/en/docs/browse); no subscription needed |
| Collect once, now | A [live query](/en/docs/live-query), or [run once](#once) below |
| Keep collecting from now on | This page |

## What you can monitor [#kinds]

| `resource_kind` | Monitors |
| --- | --- |
| `keyword` | New content for a keyword or search expression |
| `user` | A user's profile and posts |
| `channel` | A 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 [#before]

- 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 [#console]

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

1. Open [keyword monitoring](/en/portal/collection), 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 [#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}
```


| Parameter | Required | Meaning |
| --- | --- | --- |
| `source_platform` | Yes | One platform. Create one subscription per platform |
| `resource_kind` | Yes | `keyword`, `user` or `channel` |
| `keyword` | For keyword subscriptions | 1 to 200 characters |
| `user_id`, `user_url` | At least one for user subscriptions | User ID or profile link |
| `channel_id`, `channel_url`, `topic` | At least one for channel subscriptions | Channel ID, channel link or topic |
| `interval_seconds` | Yes | Schedule, 60 to 604800 seconds (1 minute to 7 days) |
| `max_items` | For keyword subscriptions | Up to how many per run, 1 to 1000. A ceiling, not a guarantee |
| `sync_mode` | No | See [where collection starts](#sync-mode) |
| `mode` | No | `once` runs a single time; see [run once](#once) |
| `name` | No | A name to recognize it by |
| `next_run_at` | No | When to run first; as soon as possible if omitted |
| `max_attempts` | No | Attempts per run after failure, default 3 |
| `language`, `region` | No | Hints to narrow the scope; they don't widen access |

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

### Where collection starts [#sync-mode]

| Kind | First run | After that |
| --- | --- | --- |
| Keyword | Content from the last schedule interval | Continues from the last successful position |
| User (default `all_content`) | All visible content | Switches to new content only |
| Channel (default `incremental`) | From now | New content only |

- Keyword subscriptions can't set a time range. For older content, first backfill up to 7 days with a [live query](/en/docs/live-query#time-range), then subscribe.
- After resuming from a pause, collection catches up at most 7 days.

## Run once [#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 [#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 `status` | Meaning |
| --- | --- |
| `pending` | Waiting |
| `leased`, `running` | Running |
| `succeeded` | Finished; `result` has collection counts |
| `failed`, `timeout` | Failed or timed out; reason in `last_error`. Retried until `max_attempts` |
| `paused`, `canceled` | Paused 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 [#results]

There are two entry points showing the same content:

- In [keyword monitoring](/en/portal/collection), click a keyword or "Browse content" to open the subscription workspace.
- In the [Data browser](/en/portal/data), 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 status | Meaning |
| --- | --- |
| Stored, Already exists | Stored and readable by your application |
| Waiting to store, Retrying | Not confirmed yet; click "Refresh results" later |
| Store failed | Not stored; contact us with the run ID |
| Not readable now | The document doesn't exist or you no longer have access |
| No linked receipts | Not 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 [#pause]

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 [#webhook]

MarsYoo can notify your server at the end of each run. See [monitoring webhooks](/en/docs/webhooks).

## Credits [#billing]

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

## When something fails [#errors]

- 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](/en/docs/errors). All parameters: [API reference](/en/public-api-reference).

## Continue Your Task

[Return to the integration path](/en/docs); return to your task after consulting this reference.
