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.

EndpointPurpose
POST /v1/documents/batch-getBatch read (preferred for lists)
GET /v1/documents/{document_id}Metadata + current version
GET /v1/documents/{document_id}/contentFull body, current or specified version
GET /v1/documents/{document_id}/versionsBody version history
GET /v1/documents/{document_id}/snapshotsMetric/state snapshot history
GET /v1/documents/{document_id}/partsMulti-part content (subtitles, OCR, specs)
GET /v1/documents/{document_id}/factsStructured 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:

JSON
{
  "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
}
FieldDefaultNotes
document_idsrequired1–50 document IDs
include_contentfalseInclude current full body
include_latest_snapshotfalseInclude latest metric snapshot
include_parts / include_factsfalseInclude parts / facts
parts_limit / facts_limit20 / 50Per-document caps

Response (single item):

JSON
{
  "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:

FieldNotes
idWhale document ID (doc_ prefix); shared between search and detail endpoints, not the source platform’s content ID
dataset_idInternal storage identifier; clients do not need it
source_platformPlatform enum
external_content_idPlatform-side content ID (Weibo mid, YouTube video id, Reddit fullname, …)
canonical_urlNormalized URL; stable when the same content is merged across sources
content_typeUnified content type; see Platforms
language / region / country_codeContent language and region
titleCurrent title
current_version_idCurrent body version
statusactive / deleted / unavailable platform state
quality_statusPlatform quality marker
published_atPlatform publish time
first_seen_at / last_seen_atFirst/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

ParamNotes
version_idOptional; omit for the current version, pass a historical version ID for past body
JSON
{
  "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.

JSON
{
  "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.

JSON
{
  "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 does latest_snapshot in batch-get). Raw payloads are kept per version in object storage; read them with POST /v1/versions/batch-get or POST /v1/snapshots/payloads/batch-get below.
  • 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.

JSON
{
  "platform": "reddit",
  "content_type": "post",
  "age_bucket": "1_7d",
  "metric": "comment_count",
  "target_value": 86
}
JSON
{
  "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_of reads a past day’s baseline and must not be in the future.
  • age_bucket is the snapshot’s age since publication: 0_24h, 1_7d, 7d_plus or any (default). Compare fresh content with 0_24h, or older content lifts the distribution.
  • A status other than observed has no distribution: insufficient_samples (fewer than min_sample_size, 100 by default), unsupported_metric or metric_unavailable. Available metrics are listed by /v1/metrics/registry.
  • percentiles may 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.

ParameterDescription
snapshot_from / snapshot_toRequired, RFC3339, half-open, at most 31 days
source_platformPlatform codes, comma-separated, within your grant
content_typeOptional content types, comma-separated, e.g. only the daily metrics of product_listing
limit1–500, default 200
cursorThe previous page’s next_cursor, passed back unchanged with the same other parameters
Bash
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):

JSON
{
  "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_at is 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, use source_record_key.
  • When content does not change, no new version is created and the new snapshot’s version_id points 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 same cursor instead 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.

JSON
{
  "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:

JSON
{
  "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 error and does not affect the others: not_found (document or snapshot missing, or a different snapshot time) or forbidden (no snapshots grant for that document).
  • The whole request returns 400 invalid_query for more than 100 items or an item missing document_id, snapshot_id or snapshot_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)

  1. Read one day with GET /v1/snapshots (limit=500) until there is no next_cursor.
  2. Take the collection date from each snapshot’s source_record_key; for metrics only, you are done.
  3. For raw payloads, send each page’s snapshots in groups of 100 to POST /v1/snapshots/payloads/batch-get.
  4. Match payloads to step 1 by snapshot_id; check any not_found items with GET /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.

JSON
{
  "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.

JSON
{
  "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; labels lists the emotions at their threshold, any number including none.
  • Content not analyzed yet has null for 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.

JSON
{
  "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), location and price (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_confidence under ?detail=true.
  • sentiment: the content’s attitude toward this brand, organization or product: positive, negative or neutral (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 is positive toward Xiaomi. Judged automatically; on comments and posts it agrees with human review about 82% of the time; ?detail=true adds sentiment_confidence. Content analyzed before 2026-10-30 has no attitude.
  • text is as written; norm folds case and width and trims @, #, title marks and quotes, for grouping. Aliases are not merged: “Alibaba” and “阿里” are two entities.
  • analyzed is false when the version has not been analyzed yet; true with no entities means 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.

JSON
{
  "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:

ValueMeaning
questionAsks for information, usage, rules or prices
recommendationAsks for picks
comparisonWeighs options against each other
purchaseWants to buy, asks where to buy
supportReports a fault or account/order problem and wants it fixed
complaintUnhappy with a product, service, seller or platform
praiseSatisfied, praises
suggestionAsks for a feature or change
churnUninstalled, cancelled, returned or switched away, or plans to
reviewShares an experience, review, how-to or guide
sellSells, advertises, promotes
newsReports news, launches, announcements
opinionArgues a view on a topic
recruitHires or looks for work
  • An empty labels means 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.

JSON
{
  "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": {}}]
}
  • sentiment and emotion need the affect field, intent the intents field. With one of them only that part is returned; with neither the request gets 403.
  • results counts analyzed content. Sentiment counts the most likely of the three classes; mean_score is the mean score (-1 to 1). Content can carry several emotions and up to three intents, so labels may sum past results; none counts content without a clear emotion or intent.
  • days has one entry per day (empty days included); platforms are 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.

JSON
{
  "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):

JSON
"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 entities field. 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.

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 the UTC day they were first stored; buckets is the time from publishing to storing: within 1 hour, 1–6 hours, 6–24 hours, 1–7 days, 7–30 days, over 30 days; missing has no publish time from the platform, future a publish time over 5 minutes after storing (usually a wrong time zone at the source).
  • published counts 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

JSON
{
  "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 with start_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

JSON
{
  "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

HTTPcodeMeaning
401unauthorizedMissing/invalid key
403forbiddenDocument outside subscription or field not authorized
404not_foundID does not exist
400invalid_requestBad params (e.g. batch-get over 50 IDs)
429quota_exceededDaily 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