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.
| Field | Meaning |
|---|---|
id | MarsYoo document ID starting with doc_, used to search and read. Not the platform’s ID |
source_platform | Source platform code |
external_content_id | The original platform ID, such as a tweet ID, YouTube video ID or Reddit fullname |
canonical_url | Canonical link to the original |
content_type | Content type; see content types |
language, region, country_code | Language and region |
title | Current title |
current_version_id | Current body version |
status | Status on the platform, such as active, deleted, unavailable |
quality_status | Content quality: normal, low, spam, duplicate, empty |
published_at | When it was published on the platform |
first_seen_at, last_seen_at | First and most recent collection |
cover | Cover; see covers and image links |
metadata | Topics (topics), native tags (tags), author (author), media links (assets) and more, by field access |
dataset_id | Internal; don’t depend on it |
Storage addresses are never returned. Bodies and parts are only readable through the API.
Content types
content_type | Meaning | Examples |
|---|---|---|
post | Posts, updates, short content | Weibo, Xiaohongshu, Reddit |
article | Long articles, newsletters, columns | Medium, WeChat articles, Zhihu |
video | Video, possibly with description, subtitles, transcript | YouTube, TikTok, Bilibili, WeChat Channels |
comment | Comments and replies | Reddit, Weibo, Xiaohongshu |
product_listing | Products, listings or app details | Xianyu, Whop, Etsy, Google Play |
review | Product or app reviews | Google Play, Etsy |
job_posting | Job postings | |
search_result | Search result entries | Google Search |
trend | Search interest curves | Google Trends |
Other values: short_video, note, thread, repost, live, story, podcast, repository, issue, other.
What a document is made of
| Part | Meaning | How to read |
|---|---|---|
| Body | Title and body | Content & versions |
| Metrics | Engagement, recorded as a snapshot at each collection | Metrics & snapshots |
Parts (parts) | Subtitles, OCR, chapters, specs, comments | Transcripts, OCR & facts |
Facts (facts) | Structured fields such as price, company, location, skills | Transcripts, OCR & facts |
| Analysis results | Sentiment, entities, intents | Sentiment, entities & intents |
Raw platform data (platform_payload) | What the platform returned, as-is | Read several versions at once |
Metric definitions
Platform-specific names map onto these metrics:
| Metric | Meaning | Notes |
|---|---|---|
view_count | Views, reads or impressions | “Was seen”, unified |
play_count | Video plays | Preferred on video platforms |
like_count | Likes | |
comment_count | Comments | |
share_count | Shares | Empty where unsupported |
collect_count | Favorites, saves, wants | Similar but not identical across Xiaohongshu, Bilibili, Xianyu |
repost_count | Reposts | Weibo and similar |
score | Reddit score | Upvotes minus downvotes, not likes |
author_follower_count | Author followers | Author 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,platformsandtotalscount new documents by first ingest day (UTC).bucketsis 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.missingmeans the platform gave no publish time;futuremeans the publish time is more than 5 minutes after ingest, usually a source time zone issue.publishedcounts documents published each day (by publish date) that have been ingested so far. Older content keeps arriving, so recent days still grow.- Parameters:
daysdefaults to 7, up to 90;source_platformandcontent_typeare 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.