Download Markdown

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_id starting with doc_.
  • 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:

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

TimeFieldMeaning
Publish timepublished_atWhen the author published it on the platform
Ingest timecreated_at, ingested_at and similarWhen MarsYoo first stored it
Collection timesnapshot_atWhen 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

WayWhere the data comes fromPage
Query stored dataWhat MarsYoo already hasKeyword search, browse
Live queryCollected from the platform nowLive queries
Monitoring subscriptionCollected automatically on a scheduleMonitoring subscriptions

Data from live queries and subscriptions can also be queried the first two ways once it’s stored.