Download Markdown

Field Reference

This page explains the document fields, content types and metrics returned by the API. What each platform provides is in platform coverage.

Document object

The document object has the same shape in every endpoint.

FieldMeaning
idMarsYoo document ID starting with doc_, used to search and read. Not the platform’s ID
source_platformSource platform code
external_content_idThe original platform ID, such as a tweet ID, YouTube video ID or Reddit fullname
canonical_urlCanonical link to the original
content_typeContent type; see content types
language, region, country_codeLanguage and region
titleCurrent title
current_version_idCurrent body version
statusStatus on the platform, such as active, deleted, unavailable
quality_statusContent quality: normal, low, spam, duplicate, empty
published_atWhen it was published on the platform
first_seen_at, last_seen_atFirst and most recent collection
coverCover; see covers and image links
metadataTopics (topics), native tags (tags), author (author), media links (assets) and more, by field access
dataset_idInternal; don’t depend on it

Storage addresses are never returned. Bodies and parts are only readable through the API.

Content types

content_typeMeaningExamples
postPosts, updates, short contentWeibo, Xiaohongshu, Reddit
articleLong articles, newsletters, columnsMedium, WeChat articles, Zhihu
videoVideo, possibly with description, subtitles, transcriptYouTube, TikTok, Bilibili, WeChat Channels
commentComments and repliesReddit, Weibo, Xiaohongshu
product_listingProducts, listings or app detailsXianyu, Whop, Etsy, Google Play
reviewProduct or app reviewsGoogle Play, Etsy
job_postingJob postingsLinkedIn
search_resultSearch result entriesGoogle Search
trendSearch interest curvesGoogle Trends

Other values: short_video, note, thread, repost, live, story, podcast, repository, issue, other.

What a document is made of

PartMeaningHow to read
BodyTitle and bodyContent & versions
MetricsEngagement, recorded as a snapshot at each collectionMetrics & snapshots
Parts (parts)Subtitles, OCR, chapters, specs, commentsTranscripts, OCR & facts
Facts (facts)Structured fields such as price, company, location, skillsTranscripts, OCR & facts
Analysis resultsSentiment, entities, intentsSentiment, entities & intents
Raw platform data (platform_payload)What the platform returned, as-isRead several versions at once

Metric definitions

Platform-specific names map onto these metrics:

MetricMeaningNotes
view_countViews, reads or impressions“Was seen”, unified
play_countVideo playsPreferred on video platforms
like_countLikes
comment_countComments
share_countSharesEmpty where unsupported
collect_countFavorites, saves, wantsSimilar but not identical across Xiaohongshu, Bilibili, Xianyu
repost_countRepostsWeibo and similar
scoreReddit scoreUpvotes minus downvotes, not likes
author_follower_countAuthor followersAuthor state, in author_snapshot
  • Metrics a platform doesn’t provide are empty, not 0.
  • For trends, read snapshot history rather than only the latest value.
  • Full metric list and confirmation status per platform: GET /v1/metrics/registry.

Platform extension fields

Fields that can’t be unified across platforms live in platform_metrics or platform_payload, for example:

  • Bilibili danmaku and coins.
  • Xianyu seller credit and listing status.
  • LinkedIn applicant count, seniority and remote mode.
  • Google Trends interest, regional breakdown and time points.

platform_payload isn’t returned by document or snapshot endpoints; read it per version.

Data freshness

See how long new documents take from publish to ingest, and how many published each day have been ingested:

Bash
curl -sS "$WHALE_BASE_URL/v1/stats/freshness?source_platform=reddit,x&content_type=post&days=30" \
  -H "Authorization: Bearer $WHALE_API_KEY"
JSON
{
  "from": "2026-10-01",
  "to": "2026-10-30",
  "buckets": ["le_1h", "1h_6h", "6h_24h", "1d_7d", "7d_30d", "gt_30d", "missing", "future"],
  "totals": {"documents": 3120400, "buckets": {"le_1h": 410200, "1h_6h": 380100, "6h_24h": 702300, "1d_7d": 1310200, "7d_30d": 190300, "gt_30d": 112100, "missing": 14200, "future": 1000}},
  "days": [{"date": "2026-10-01", "documents": 98200, "buckets": {"le_1h": 12100}}],
  "published": [{"date": "2026-10-01", "documents": 81200}],
  "platforms": [{"platform": "reddit", "documents": 2010300, "buckets": {"le_1h": 140200}}]
}
  • days, platforms and totals count new documents by first ingest day (UTC).
  • buckets is the time from publish to ingest: within 1 hour, 1 to 6 hours, 6 to 24 hours, 1 to 7 days, 7 to 30 days, over 30 days. missing means the platform gave no publish time; future means the publish time is more than 5 minutes after ingest, usually a source time zone issue.
  • published counts documents published each day (by publish date) that have been ingested so far. Older content keeps arriving, so recent days still grow.
  • Parameters: days defaults to 7, up to 90; source_platform and content_type are optional.
  • Access to the platforms is enough. Access limited by language, region or publish time can’t use it and returns 403.
  • Data starts 2026-10-26. Documents ingested before 10-30 were backfilled from their first metric snapshot; about 2% without a snapshot that day aren’t counted.