Core Concepts
Read this before the other pages. The rest of the docs use these words exactly as defined here.
Documents, versions and snapshots
- Document: one item on a platform, such as a tweet, a YouTube video or a product review. Each document has a
document_idstarting withdoc_. - Version: when a document’s title, body or subtitles change, a new version is created with its own
version_id. You read the latest version by default; older ones remain readable. - Snapshot: the metrics recorded at each collection, such as likes, views and author followers. Metric changes create new snapshots, not new versions.
So:
- For text, read content and versions.
- For engagement and how it changes, read metric snapshots.
Besides the body, a document may also have:
- Parts: subtitles, text recognized in images, product specs.
- Facts: structured fields such as price, company or location.
- Analysis results: sentiment, mentioned brands and products, author intent.
Publish time and ingest time
| Time | Field | Meaning |
|---|---|---|
| Publish time | published_at | When the author published it on the platform |
| Ingest time | created_at, ingested_at and similar | When MarsYoo first stored it |
| Collection time | snapshot_at | When a snapshot was recorded |
A post from three years ago may be ingested today. Decide which time you mean before filtering by time.
Applications and API keys
- Organization: your company’s or team’s account at MarsYoo. Members sign in to the console here.
- Application: a calling identity created for one purpose, such as “brand monitoring” or “test environment”.
- API key: the credential an application uses to call the API. An application can have several keys.
Access
Each application has access that decides:
- which platforms it can read
- which fields, such as body, metrics, author or analysis results
- whether it can use live queries, monitoring subscriptions and exports
Platform, field and other filters in a request can only narrow access. Neither a new key nor a top-up changes it. See Console.
Credits
API calls use credits. Credits belong to the whole organization and are shared by all applications. Different platforms and operations cost different amounts, and failed requests are refunded. See Credits & billing.
Three ways to get data
| Way | Where the data comes from | Page |
|---|---|---|
| Query stored data | What MarsYoo already has | Keyword search, browse |
| Live query | Collected from the platform now | Live queries |
| Monitoring subscription | Collected automatically on a schedule | Monitoring subscriptions |
Data from live queries and subscriptions can also be queried the first two ways once it’s stored.