Download Markdown

Data Access Path · 4/7

Recommended reading order, not completion status. Optional steps can be skipped.

View all steps

Before you start: For author/topic/tag/category reads, prepare actual platform IDs, filter values and field grants; skip this step for search-only use.

Browse by User, Topic, Tag & Category

By the end of this page you can pull every document for an author, topic, tag or category page by page, and read author profiles.

To find documents by keyword, use keyword search.

Browse in the console

If you’d rather not write code, open the console’s Data browser, pick an application and an authorized platform, and submit a query.

ModeWhat it does
Authorized contentBrowse by filters, search by keyword, or look up an exact content ID or source URL
Monitoring resultsPick a subscription and one run, and see the receipts and documents linked to that run
  • Times are UTC, the end is exclusive, and a window is at most 31 days. Filtered browsing uses ingest time; keyword search uses publish time.
  • Ordinary queries return up to 50 rows per page, monitoring results up to 20 receipts. Paging uses cursors, with no page jumps and no total count.
  • Resize or hide columns and sort the current page. Click a title to read the body in a side panel; it shows the current version, not a snapshot from collection time.
  • The monitoring title filter only filters the current page. Runs aren’t merged; no linked receipts doesn’t mean 0 items.

Credentials and cost:

  • The session’s application credential is used first. Without one, you confirm creating a 12-hour Marsyoo Data Browser key, kept in an encrypted cookie and never shown in plain text.
  • Queries and body reads still go through normal authorization, rate limits and billing. Browsing never starts collection.
  • Tag filtering, vector search, SQL and data changes aren’t available. For bulk data, use data export.

Filter documents

Reddit documents ingested on October 1 with topic AI and a score of at least 10:

Bash
curl -sS --get "$WHALE_BASE_URL/v1/documents/browse" \
  -H "Authorization: Bearer $WHALE_API_KEY" \
  --data-urlencode 'source_platforms=reddit' \
  --data-urlencode 'topics=AI' \
  --data-urlencode 'score_min=10' \
  --data-urlencode 'created_from=2026-10-01T00:00:00Z' \
  --data-urlencode 'created_to=2026-10-02T00:00:00Z' \
  --data-urlencode 'limit=50'
JSON
{
  "documents": [
    {"document": {"id": "doc_example", "source_platform": "reddit", "title": "Example"}}
  ],
  "next_cursor": "...",
  "created_from": "2026-10-01T00:00:00Z",
  "created_to": "2026-10-02T00:00:00Z"
}

You get each document’s basic information, not its body. Use document.id to read the full body.

Available filters

ParameterFilters by
source_platformsPlatform
external_author_idThe author’s ID on the platform. Requires exactly one platform
topicsTopic
tagsNative platform tags (currently paused; see the note below)
content_categoriesNative platform categories, such as TikTok’s 体育 or 娱乐
classification_codesExternal category codes from the category dictionary
score_min, score_maxPlatform score range, inclusive (such as Reddit’s score; may be negative)
content_typesContent type
published_from, published_toPublish time; start inclusive, end exclusive
created_from, created_toFirst ingest time; start inclusive, end exclusive. Defaults to the last 24 hours, up to 31 days per request
queryExact lookup by document ID, original URL or platform content ID. Not full-text search. No time range needed when you use it
statusDocument status
include_snapshottrue adds the latest metrics
limit1 to 200 per page, default 50

How filters combine:

  • Separate multiple values with commas; any value matches.
  • Different parameters must all match.
  • Values match the stored value exactly, case-sensitive, without synonyms or an added #.
  • Tags that contain a comma can’t be queried yet.
  • Documents without an author, topic or score never match those filters.

Note: Filtering by native tags is paused. Passing tags returns 503 catalog_tags_paused rather than ignoring it. Drop tags only if results without tag filtering are acceptable.

content_categories versus classification_codes:

  • content_categories are the platform’s own categories, written as the platform writes them.
  • classification_codes are business categories we maintain. Look the code up in the category dictionary first.

Pagination

Keep the parameters and add cursor set to the previous next_cursor. No next_cursor means the last page.

  • Results are ordered by first ingest time, newest first.
  • The default time window is fixed by the cursor; you don’t recompute it while paging.
  • No total count is provided.
  • Documents updated or deleted while you page may change the results.

For history beyond 31 days, split the ingest time into windows of up to 31 days and page through each. To keep syncing new data, use the change feed rather than scanning repeatedly.

Read a user’s profile and documents

platform is the platform code; external_author_id is the author’s ID on that platform (not a display name):

Bash
curl -sS "$WHALE_BASE_URL/v1/users/reddit/author_example" \
  -H "Authorization: Bearer $WHALE_API_KEY"
 
curl -sS --get "$WHALE_BASE_URL/v1/users/reddit/author_example/documents" \
  -H "Authorization: Bearer $WHALE_API_KEY" \
  --data-urlencode 'limit=50'

The profile returns:

  • author: display name, avatar, profile URL, bio, follower counts and so on.
  • document_id and observed_at: which document the profile came from, and when it was collected.

The profile comes from the newest document in the time window. It isn’t a live, complete platform profile, and some fields may be empty.

  • By default only the last 24 hours are checked. Widen to up to 31 days with created_from/created_to or published_from/published_to.
  • If the author has no documents in the window, you get 404 user_not_found.
  • The profile endpoint doesn’t paginate.

The user documents endpoint supports all filters and pagination above, with the author and platform fixed by the path.

To collect this user now, use a live query; to follow them, use a monitoring subscription.

Look up the category dictionary

Bash
curl -sS --get "$WHALE_BASE_URL/v1/classifications" \
  -H "Authorization: Bearer $WHALE_API_KEY" \
  --data-urlencode 'source_platform=reddit' \
  --data-urlencode 'limit=100'

Each item in classifications[] has code, name, description and label_schema. Put code into classification_codes to filter documents.

  • Sorted by code. For the next page, pass next_after_code as after_code with the other parameters unchanged.
  • limit defaults to and maxes at 100.
  • You can omit source_platform if the application has only one kind of platform.
  • Not every category has data, and names like ai or sports may not exist. Use what the dictionary returns.

Required access

FeatureField access needed
Filter by author, read profilesauthor or metadata
Filter by topic or tagmetadata
Filter by native or external category, read the dictionaryfacts
Filter by scoremetrics

All filters must be allowed by the same access grant. Combining two grants doesn’t widen access.

When something fails

Empty results don’t mean there’s no data. Check the time window, the exact filter values and your access first. Other errors: Error codes.

Completion check: Read observed author profiles, discover category codes, and paginate filtered content to obtain document.id for full-content reads.