Data Access Path · 5/7
Recommended reading order, not completion status. Optional steps can be skipped.
View all steps
Before you start: Obtain an authorized document_id from a search.
Read Content & History
Search returns document-level summaries. This page describes how to read a document’s full data. All endpoints require Authorization: Bearer whale_consumer_xxx.
| Endpoint | Purpose |
|---|---|
POST /v1/documents/batch-get | Batch read (preferred for lists) |
GET /v1/documents/{document_id} | Metadata + current version |
GET /v1/documents/{document_id}/content | Full body, current or specified version |
GET /v1/documents/{document_id}/versions | Body version history |
GET /v1/documents/{document_id}/snapshots | Metric/state snapshot history |
GET /v1/documents/{document_id}/parts | Multi-part content (subtitles, OCR, specs) |
GET /v1/documents/{document_id}/facts | Structured facts (price, company, …) |
Read Content in Batches
POST /v1/documents/batch-get, up to 50 IDs per call; per-document failures do not affect others.
Request:
{
"document_ids": ["doc_01J...", "doc_01K..."],
"include_content": true,
"include_latest_snapshot": true,
"include_parts": false,
"include_facts": false,
"parts_limit": 20,
"facts_limit": 50
}| Field | Default | Notes |
|---|---|---|
document_ids | required | 1–50 document IDs |
include_content | false | Include current full body |
include_latest_snapshot | false | Include latest metric snapshot |
include_parts / include_facts | false | Include parts / facts |
parts_limit / facts_limit | 20 / 50 | Per-document caps |
Response (single item):
{
"document_id": "doc_01J...",
"document": {
"id": "doc_01J...",
"dataset_id": "social_media_raw",
"source_platform": "weibo",
"external_content_id": "5112345678901234",
"canonical_url": "https://weibo.com/...",
"content_type": "post",
"language": "zh",
"title": "...",
"current_version_id": "ver_01J...",
"status": "active",
"quality_status": "normal",
"published_at": "2026-09-01T08:00:00Z",
"first_seen_at": "2026-09-01T08:05:00Z",
"last_seen_at": "2026-09-02T10:00:00Z",
"cover": {
"media_type": "image",
"url": "https://cdn.example.com/cover.jpg",
"role": "cover"
},
"metadata": {}
},
"current_version": {
"version_id": "ver_01J...",
"content_hash": "sha256:...",
"body_format": "plain",
"size_bytes": 1523,
"char_count": 712,
"created_at": "2026-09-01T08:05:00Z"
},
"content": {
"body": "Full body text...",
"body_format": "plain",
"char_count": 712
},
"latest_snapshot": {
"snapshot_at": "2026-09-02T10:00:00Z",
"metrics": {"like_count": 1204, "comment_count": 86, "repost_count": 45}
}
}On per-item failure the entry contains error: {"code": "not_found" | "forbidden", "message": "..."}.
Content Identifiers and Metadata
The document object has the same shape across endpoints:
| Field | Notes |
|---|---|
id | Whale document ID (doc_ prefix); shared between search and detail endpoints, not the source platform’s content ID |
dataset_id | Internal storage identifier; clients do not need it |
source_platform | Platform enum |
external_content_id | Platform-side content ID (Weibo mid, YouTube video id, Reddit fullname, …) |
canonical_url | Normalized URL; stable when the same content is merged across sources |
content_type | Unified content type; see Platforms |
language / region / country_code | Content language and region |
title | Current title |
current_version_id | Current body version |
status | active / deleted / unavailable platform state |
quality_status | Platform quality marker |
published_at | Platform publish time |
first_seen_at / last_seen_at | First/latest time observed by collectors |
Responses never expose object-storage addresses (raw/text/manifest/object_key); full bodies and parts are only available through the authorized API.
Asset Metadata And Covers
document.metadata does not include the platform’s raw payload (platform_payload and normalized_payload are no longer returned since 2026-11-13); read it per version with POST /v1/versions/batch-get. With the metadata field grant, document.metadata.assets contains ingested asset URLs and descriptive fields. For convenient reads, a document with a cover also returns top-level document.cover, which is the one metadata.assets item whose role is cover. role=cover is the content’s single primary cover; inline denotes a body illustration, gallery an album or carousel item, and media the primary video, audio, or other content media. Historical assets without role remain unchanged and omit document.cover. Do not infer a cover from preview_url or sort_order=0. The assets field grant is only for listing and downloading managed attachments; it does not control these external URL metadata fields.
Read Full Content
GET /v1/documents/{document_id}/content?version_id=ver_xxx
| Param | Notes |
|---|---|
version_id | Optional; omit for the current version, pass a historical version ID for past body |
{
"content": {
"document_id": "doc_01J...",
"version_id": "ver_01J...",
"body": "Full body text",
"body_format": "plain | markdown",
"content_hash": "sha256:...",
"size_bytes": 1523,
"char_count": 712
}
}body always contains the complete text. Contact the platform for streaming/chunked access on very large documents.
Read Content Version History
GET /v1/documents/{document_id}/versions?limit=100, newest first. Title, body, URL and subtitle changes create new versions; counters (likes, views) do not — they flow into snapshots.
{
"versions": [
{
"version_id": "ver_01J...",
"content_hash": "sha256:...",
"body_format": "markdown",
"size_bytes": 1523,
"char_count": 712,
"created_at": "2026-09-01T08:05:00Z"
}
]
}To diff two versions, fetch each via content?version_id= and compare.
Per-document versions and snapshots accept only limit (maximum 500), with no cursor; to read history in bulk use Read by Time Window. parts and facts are also capped lists, not paginated exports. Confirm a delivery plan with the platform if you need complete long-term history.
Read Metric and Author Snapshots
GET /v1/documents/{document_id}/snapshots?limit=500, newest first.
{
"snapshots": [
{
"id": "ds_01J...",
"snapshot_at": "2026-09-02T10:00:00Z",
"received_at": "2026-09-02T10:00:20Z",
"metrics": {
"like_count": 1204,
"comment_count": 86,
"repost_count": 45,
"view_count": 152000
},
"author_snapshot": {"follower_count": 89000}
}
]
}metrics: unified fields (like_count,comment_count,share_count,view_count,play_count,collect_count, …) plus platform extensions.author_snapshot: author follower counts etc., present only when reported by the collector.- Snapshots do not include the raw payload
platform_payload(since 2026-11-13; neither doeslatest_snapshotin batch-get). Raw payloads are kept per version in object storage; read them withPOST /v1/versions/batch-getorPOST /v1/snapshots/payloads/batch-getbelow. - Do not assume a fixed collection interval; pull successive snapshots for trends.
Metric Baselines
POST /v1/metrics/baselines/query answers “is this engagement high or low for its kind”: the distribution of one metric across comparable content (same platform and content type, optionally the same source, acquisition type and age since publication), and where your value falls in it. Needs a grant covering the platform, with the metrics field.
{
"platform": "reddit",
"content_type": "post",
"age_bucket": "1_7d",
"metric": "comment_count",
"target_value": 86
}{
"status": "observed",
"as_of": "2026-10-30T00:00:00Z",
"lookback_days": 30,
"sample_size": 182340,
"distribution": {"min": 0, "max": 21430, "mean": 14.2, "percentiles": {"0.5": 3, "0.9": 31, "0.99": 260}},
"target": {"value": 86, "percentile": 0.962}
}- Baselines are computed daily from the 30 days of snapshots before the cut-off; each document counts once, with the latest snapshot of the version it had at the cut-off.
as_ofreads a past day’s baseline and must not be in the future. age_bucketis the snapshot’s age since publication:0_24h,1_7d,7d_plusorany(default). Compare fresh content with0_24h, or older content lifts the distribution.- A
statusother thanobservedhas no distribution:insufficient_samples(fewer thanmin_sample_size, 100 by default),unsupported_metricormetric_unavailable. Available metrics are listed by/v1/metrics/registry. percentilesmay be chosen: up to 20, between 0 and 1, ascending; the default is 0.1, 0.25, 0.5, 0.75, 0.9, 0.95, 0.99.
Read by Time Window
To copy snapshots or past versions in bulk, use these three endpoints instead of the per-document ones above: snapshots by time window, raw payloads by snapshot, and versions by version ID.
Snapshots: GET /v1/snapshots
Reads every snapshot taken in a time window, by snapshot_at, oldest first. The data read follows source_platform: platforms of the same kind are read together, and an application opened for one kind only may omit it. Platforms that cannot be read together return 400; request them separately.
| Parameter | Description |
|---|---|
snapshot_from / snapshot_to | Required, RFC3339, half-open, at most 31 days |
source_platform | Platform codes, comma-separated, within your grant |
content_type | Optional content types, comma-separated, e.g. only the daily metrics of product_listing |
limit | 1–500, default 200 |
cursor | The previous page’s next_cursor, passed back unchanged with the same other parameters |
curl --get "$MARSYOO_BASE_URL/v1/snapshots" \
--header "Authorization: Bearer $MARSYOO_API_KEY" \
--data-urlencode "source_platform=app_store,google_play" \
--data-urlencode "content_type=product_listing" \
--data-urlencode "snapshot_from=2026-10-24T00:00:00Z" \
--data-urlencode "snapshot_to=2026-10-25T00:00:00Z" \
--data-urlencode "limit=500"Response (excerpt):
{
"snapshots": [
{
"id": "snap_0d9960e1b123534164401ae9083a3cf0",
"dataset_id": "appstore_raw",
"document_id": "doc_01J...",
"version_id": "ver_01J...",
"source_platform": "google_play",
"source_name": "google_play_relations",
"source_record_key": "google_play:relations:com.example.app:similar:us:2026-11-04:ab12cd",
"snapshot_at": "2026-11-04T03:12:45.123Z",
"received_at": "2026-11-04T03:12:46.002Z",
"metrics": {"entries": 6},
"author_snapshot": {},
"content_type": "product_listing",
"created_at": "2026-11-04T03:12:46.120Z"
}
],
"next_cursor": "eyJhdCI6..."
}snapshots[] has the per-document snapshot fields, including the source record key source_record_key (the collector’s key from ingest, often carrying the collection date), plus content_type; read the raw payloads in batches with POST /v1/snapshots/payloads/batch-get below. No next_cursor means the window is done. Fields follow your grant: metrics needs the metrics field, author_snapshot the author field. Grants limited by language, region or publish time cannot be used here and return 403.
A snapshot belongs to its snapshot time, so one reported late shows up in its own window; incremental syncs should re-read the previous day.
Notes:
snapshot_atis the platform’s snapshot time, based on when the snapshot was received; batches finishing around midnight can land on the next day. For the collection date, usesource_record_key.- When content does not change, no new version is created and the new snapshot’s
version_idpoints to the existing version. Rebuilding daily data from version dates therefore misses the unchanged days; go by snapshots. - On
503 document_query_timeout(retryable: true), retry later with the samecursorinstead of restarting with a smaller window.
Snapshot payloads: POST /v1/snapshots/payloads/batch-get
Reads the raw payload platform_payload of up to 100 snapshots per call, by document ID, snapshot ID and snapshot time. Raw payloads are kept per version: this returns the payload the snapshot’s version was ingested with (the same as POST /v1/versions/batch-get) plus the snapshot’s platform_metrics, so snapshots taken while the content did not change return the same payload; each collection’s metrics are in the snapshot itself. A snapshot without a version (such as a rating-only review) returns the payload of its own ingest. Take all three unchanged from GET /v1/snapshots: document_id, id (sent here as snapshot_id) and snapshot_at; a different snapshot time finds nothing. Needs the snapshots field.
{
"items": [
{"document_id": "doc_01J...", "snapshot_id": "snap_01J...", "snapshot_at": "2026-11-04T03:12:45.123Z"}
]
}Items come back in request order; a repeated snapshot is returned once:
{
"snapshots": [
{"document_id": "doc_01J...", "snapshot_id": "snap_01J...", "platform_payload": {"snapshot_date": "2026-11-04", "entries": []}},
{"document_id": "doc_01J...", "snapshot_id": "snap_01K...", "error": {"code": "not_found", "message": "document snapshot not found"}}
]
}- A failed item carries only
errorand does not affect the others:not_found(document or snapshot missing, or a different snapshot time) orforbidden(no snapshots grant for that document). - The whole request returns
400 invalid_queryfor more than 100 items or an item missingdocument_id,snapshot_idorsnapshot_at. - 100 items usually take 1–2 s. Payloads are large: read 100 at a time in sequence with at most 2 concurrent calls; retry later on
503(retryable: true).
Rebuilding a day of snapshots (example flow)
- Read one day with
GET /v1/snapshots(limit=500) until there is nonext_cursor. - Take the collection date from each snapshot’s
source_record_key; for metrics only, you are done. - For raw payloads, send each page’s snapshots in groups of 100 to
POST /v1/snapshots/payloads/batch-get. - Match payloads to step 1 by
snapshot_id; check anynot_founditems withGET /v1/documents/{document_id}/snapshots.
Versions: POST /v1/versions/batch-get
Reads up to 100 versions by document ID and version ID, for following document.version.created events from the change feed.
{
"items": [
{"document_id": "doc_01J...", "version_id": "ver_01J..."}
],
"include_body": true
}Each item returns version, body (with include_body=true and the body field), and platform_payload (the platform fields the version was ingested with; needs that field). A failed item carries only error (not_found, forbidden) and does not affect the others.
Read Sentiment and Emotion
Posts, comments, reviews and other opinionated content are judged for sentiment and emotion after ingest. Your application needs the affect field; without it the call returns 403.
GET /v1/documents/{document_id}/affect reads the current version; ?version_id= picks a version and ?detail=true adds the raw probabilities.
{
"document_id": "doc_01J...",
"version_id": "ver_01J...",
"sentiment": {"score": -0.82, "confidence": 0.71, "analyzed_at": "2026-10-26T08:45:43Z"},
"emotions": {
"scores": {"anger": 0.64, "disgust": 0.12, "fear": 0.05, "joy": 0.02, "sadness": 0.31, "surprise": 0.04, "neutral": 0.08},
"labels": ["anger", "sadness"],
"analyzed_at": "2026-10-26T08:45:43Z"
}
}sentiment.score: -1 to 1, P(positive) minus P(negative). No positive/neutral/negative label is given; set your own cut-offs, for example above 0.3 positive and below -0.3 negative.sentiment.confidence: 0 to 1, how sure the model is. Do not rely on judgments below 0.4.emotions.scores: the strength of anger, disgust, fear, joy, sadness, surprise and neutral, 0 to 1;labelslists the emotions at their threshold, any number including none.- Content not analyzed yet has
nullfor both. Listings, search results and rankings are not analyzed. - A version may later get a more accurate result (a re-check or a manual label); reads always return the best one.
In POST /v1/documents/batch-get, add "include_affect": true to get affect per document; a failed read gives affect_error without affecting the document.
To copy results by time window use GET /v1/affect, with the parameters of the snapshot window in Read by Time Window except that the window is analyzed_from / analyzed_to (analysis time), up to 1000 per page. Each record is one version’s sentiment or emotion result, with source_platform, content_type, language and published_at for grouping.
Read Named Entities
New content gets the names, model numbers, people, places and prices it mentions. The application grant needs the entities field; without it the read returns 403.
GET /v1/documents/{document_id}/entities reads the current version by default; ?version_id= picks a version and ?detail=true adds each entity’s confidence.
{
"document_id": "doc_01J...",
"version_id": "ver_01J...",
"analyzed": true,
"analyzed_at": "2026-10-29T03:48:28Z",
"entities": [
{"type": "brand", "text": "Huawei", "norm": "huawei", "sentiment": "positive"},
{"type": "model", "text": "Mate 60 Pro", "norm": "mate 60 pro"},
{"type": "location", "text": "Shenzhen", "norm": "shenzhen"},
{"type": "price", "text": "¥6999", "norm": "¥6999"}
]
}type, seven in all:brand,organization(company, institution, platform, media),product(product, app, game, book, film or show),model(model number or version),person(a name or nickname),locationandprice(an amount of money).- Brand, organization and product follow how the name is used in that content; the same name can differ between contents (TikTok is a company or an app). Re-checked results keep the re-check’s call; elsewhere the three are told apart automatically, correctly about 85% of the time, with
type_confidenceunder?detail=true. sentiment: the content’s attitude toward this brand, organization or product:positive,negativeorneutral(only mentioned, asked about or reported, or promoted by an ad or the entity’s own account). It differs from the content’s sentiment: a post that slams Huawei and praises Xiaomi leans negative overall but ispositivetoward Xiaomi. Judged automatically; on comments and posts it agrees with human review about 82% of the time;?detail=trueaddssentiment_confidence. Content analyzed before 2026-10-30 has no attitude.textis as written;normfolds case and width and trims@,#, title marks and quotes, for grouping. Aliases are not merged: “Alibaba” and “阿里” are two entities.analyzedisfalsewhen the version has not been analyzed yet;truewith noentitiesmeans none were found.- Every version is extracted automatically; versions with a model number are re-checked, and the re-check is returned once ready.
In POST /v1/documents/batch-get, add "include_entities": true to get entities per document; a failed read gives entities_error without affecting the document.
To copy results by time window use GET /v1/entities, with the parameters of GET /v1/affect, up to 1000 per page. A re-checked version appears again once the re-check is done, so keep the last record per version; a page can hold fewer than limit records.
Read Intents
Every post, comment and review is labeled with what its author posts for. The application grant must include the intents field; without it the call returns 403.
GET /v1/documents/{document_id}/intents reads the current version by default; ?version_id= picks a version and ?detail=true adds each intent’s probability.
{
"document_id": "doc_01J...",
"version_id": "ver_01J...",
"intents": {"labels": ["support", "complaint"], "analyzed_at": "2026-10-29T14:02:11Z"}
}There are 14 flat intents; a text gets up to 3, the clearest first:
| Value | Meaning |
|---|---|
question | Asks for information, usage, rules or prices |
recommendation | Asks for picks |
comparison | Weighs options against each other |
purchase | Wants to buy, asks where to buy |
support | Reports a fault or account/order problem and wants it fixed |
complaint | Unhappy with a product, service, seller or platform |
praise | Satisfied, praises |
suggestion | Asks for a feature or change |
churn | Uninstalled, cancelled, returned or switched away, or plans to |
review | Shares an experience, review, how-to or guide |
sell | Sells, advertises, promotes |
news | Reports news, launches, announcements |
opinion | Argues a view on a topic |
recruit | Hires or looks for work |
- An empty
labelsmeans no clear intent: small talk, greetings, bare tags or emoji. - Content not analyzed yet returns
intents: null. Product listings, search results and rankings are not analyzed. - Intent is not sentiment: a complaint is usually negative, but negative content is not always a complaint.
In POST /v1/documents/batch-get, add "include_intents": true to get intents per document; a failed read is reported in intents_error.
To sync in bulk, use GET /v1/intents with the same parameters as GET /v1/affect, up to 1000 records per page, each with labels.
Analysis Statistics
Daily counts of sentiment, emotion, intent and entity results, without reading results one by one. Counted per UTC day of analysis, for the requested platforms (of one kind) or the platforms your grant covers.
Sentiment, emotion and intent: GET /v1/stats/affect
?source_platform=reddit,x&days=30. days is the number of recent days, today included: 7 by default, at most 90. Without source_platform, every platform the grant covers is counted.
{
"from": "2026-10-01",
"to": "2026-10-30",
"totals": {
"sentiment": {"results": 182340, "mean_score": 0.06, "labels": {"negative": 41210, "neutral": 88420, "positive": 52710}},
"emotion": {"results": 182340, "labels": {"anger": 9120, "joy": 30210, "none": 70110}},
"intent": {"results": 91200, "labels": {"complaint": 7340, "question": 9810, "none": 41020}}
},
"days": [{"date": "2026-10-01", "sentiment": {}, "emotion": {}, "intent": {}}],
"platforms": [{"platform": "reddit", "sentiment": {}, "emotion": {}, "intent": {}}]
}sentimentandemotionneed theaffectfield,intenttheintentsfield. With one of them only that part is returned; with neither the request gets403.resultscounts analyzed content. Sentiment counts the most likely of the three classes;mean_scoreis the mean score (-1 to 1). Content can carry several emotions and up to three intents, solabelsmay sum pastresults;nonecounts content without a clear emotion or intent.dayshas one entry per day (empty days included);platformsare ordered busiest first.
Entities: GET /v1/stats/entities
?source_platform=reddit&days=30&type=brand&limit=50 returns mentions per type (every type) by day and platform, and the most mentioned entities (top, which type narrows; limit 50 by default, at most 200). Add entity=brand:Xiaomi to follow one entity, with the daily counts of that type only, for a mention trend; a bare name counts every type.
{
"from": "2026-10-01",
"to": "2026-10-30",
"type": "brand",
"totals": {"mentions": {"brand": 52310, "product": 80240, "person": 120330}, "versions_without_entities": 301200},
"days": [{"date": "2026-10-01", "mentions": {"brand": 1720, "product": 2610, "person": 3980}, "versions_without_entities": 9840}],
"platforms": [{"platform": "reddit", "mentions": {"brand": 30120, "product": 41020, "person": 70110}, "versions_without_entities": 160200}],
"top": [{"type": "brand", "norm": "xiaomi", "mentions": 1840}]
}With entity set to a brand, organization or product, the response adds entity: the content mentioning it per day (versions) and that content’s intents (intents, with the intents field):
"entity": {
"type": "brand",
"norm": "xiaomi",
"totals": {"versions": 17188, "sentiments": {"results": 5929, "labels": {"positive": 1180, "negative": 950, "neutral": 3799}}, "intents": {"results": 12327, "labels": {"opinion": 5857, "question": 1944, "complaint": 1210, "none": 3020}}},
"days": [{"date": "2026-10-29", "versions": 11259, "intents": {"results": 6399, "labels": {"opinion": 2890}}}]
}sentiments is that content’s attitude toward it (results: content with an attitude judged); intents.results counts the content with an intent result. Compute shares against each results. This part is updated every 30 minutes.
- Needs the
entitiesfield. Names are normalized like stored entities (case, full- and half-width forms and so on). - Counts come from the automatic extraction of every version; later re-checks correct single results but are not added to the counts.
- The counts split by platform only, so grants limited to some languages, regions or publication times cannot use these two endpoints (
403). - Only content analyzed since launch is counted: sentiment and emotion since 2026-10-26, entities and intents since 2026-10-29.
Freshness: GET /v1/stats/freshness
?source_platform=reddit,x&content_type=post&days=30: how long after publishing new content was stored, and how much of each day’s published content has been stored. Parameters as above; content_type is optional.
{
"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 the UTC day they were first stored;bucketsis the time from publishing to storing: within 1 hour, 1–6 hours, 6–24 hours, 1–7 days, 7–30 days, over 30 days;missinghas no publish time from the platform,futurea publish time over 5 minutes after storing (usually a wrong time zone at the source).publishedcounts content by the UTC day it was published, as stored so far. Older content keeps being collected, so recent days still grow.- Documents are counted, not fields, so any grant covering the platforms will do; grants limited to some languages, regions or publication times are refused (
403). - Data starts on 2026-10-26. Content stored before 2026-10-30 was counted from its first metric snapshot; about 2% without a snapshot that day are left out.
Read Transcripts, OCR and Parts
GET /v1/documents/{document_id}/parts?version_id=ver_xxx&limit=500
{
"parts": [
{
"id": "part_01J...",
"part_type": "transcript | transcript_segment | ocr | spec | chapter | comment",
"format": "plain | srt | vtt | json",
"language": "en",
"text": "Segment text",
"start_ms": 12000,
"end_ms": 15800,
"sequence": 4
}
]
}part_type=transcript: full subtitle/transcript;transcript_segment: time-sliced withstart_ms/end_ms.- Parts whose content is not plain text omit
text; their content is available only in-platform.
Read Structured Fields and Categories
GET /v1/documents/{document_id}/facts?version_id=ver_xxx&limit=500
{
"facts": [
{
"id": "fact_01J...",
"fact_type": "price | company | location | skill | salary_range | custom",
"name": "price",
"value_number": 199.0,
"unit": "CNY",
"confidence": 0.95,
"source": "extractor | collector | platform",
"observed_at": "2026-09-01T08:05:00Z"
}
]
}Exactly one of value_* is set (string/number/bool/time). Fields vary by platform; missing values are not zero. There is no external arbitrary-fact search or aggregation endpoint; aggregate returned facts in your own application.
External categories use fact_type=category and metadata.label_code. See Users, Topics & Categories for category discovery and filtered reads. Topics, native tags and author observations are separate fields under authorized document.metadata.topics, tags and author.
Errors
| HTTP | code | Meaning |
|---|---|---|
| 401 | unauthorized | Missing/invalid key |
| 403 | forbidden | Document outside subscription or field not authorized |
| 404 | not_found | ID does not exist |
| 400 | invalid_request | Bad params (e.g. batch-get over 50 IDs) |
| 429 | quota_exceeded | Daily quota exhausted |
Completion check: Read metadata, full content, and the facts you need without treating search snippets as complete bodies.
Not needed? Skip optional steps: Limits, Retries & Troubleshooting