# MarsYoo / Whale Data Usage Documentation > Public consumer documentation. API calls require a scoped Consumer API Key. Snapshot: 61f24496b9e725ae3a8cb3fe4ac486aa3ef0b9a042f862f230c594ea63f575a1 Full text: /llms-full.txt (all pages). Smaller parts: /llms-zh-guides.txt, /llms-zh-reference.txt, /llms-en-guides.txt, /llms-en-reference.txt Contract: /public-openapi.yaml (public consumer API) Every page is also served as Markdown: append .md to its URL (the links below already do), or request the page with Accept: text/markdown. Follow the task path below. Optional steps can be skipped; API contracts are lookup references, not mandatory reading steps. ## 查询取数接入路线 以下是推荐阅读顺序,不代表已完成的进度;可选步骤可以跳过。 1. [获取 API Key](/docs/authentication) 2. [5 分钟完成第一次查询](/docs/quickstart) 3. [按关键词搜索](/docs/search) 4. [按用户、话题、标签和分类浏览](/docs/browse)(可选) 5. [读取正文和版本历史](/docs/documents) 6. [下载图片和附件](/docs/attachments)(可选) 7. [上线前检查](/docs/production) ## Data Access Path Recommended reading order, not a record of completed steps. Optional steps can be skipped. 1. [Get an API Key](/en/docs/authentication) 2. [Make Your First Query in 5 Minutes](/en/docs/quickstart) 3. [Keyword Search](/en/docs/search) 4. [Browse by User, Topic, Tag & Category](/en/docs/browse) (optional) 5. [Read Content & Versions](/en/docs/documents) 6. [Download Images & Attachments](/en/docs/attachments) (optional) 7. [Production Checklist](/en/docs/production) ## 中文 ### 开始 - [概览](https://www.marsyoo.com/docs/index.md): 了解能通过 API 拿到哪些数据,以及该用哪种方式取数。 - [5 分钟完成第一次查询](https://www.marsyoo.com/docs/quickstart.md): 用 API Key 搜索一次已入库的文档,并读出其中一篇的完整正文。 - [获取 API Key](https://www.marsyoo.com/docs/authentication.md): 拿到应用的 API Key,安全地配置到程序里,并按需轮换。 - [核心概念](https://www.marsyoo.com/docs/concepts.md): 文档、版本、快照、应用、授权范围和积分分别是什么,它们之间是什么关系。 ### 查询数据 - [按关键词搜索](https://www.marsyoo.com/docs/search.md): 用关键词、平台、时间范围和分析结果搜索已入库的文档,并分页读取。 - [按用户、话题、标签和分类浏览](https://www.marsyoo.com/docs/browse.md): 按作者、话题、标签、分类或评分精确筛选已入库的文档,读取用户资料,并分页取完全部结果。 - [读取正文和版本历史](https://www.marsyoo.com/docs/documents.md): 用文档 ID 读取元数据、完整正文、封面图和正文的历史版本。 - [读取指标和作者快照](https://www.marsyoo.com/docs/metrics.md): 读取点赞、播放等指标的历史,判断一篇文档的互动量算高还是低,并按时间段批量复制快照。 - [读取情感、实体和意图](https://www.marsyoo.com/docs/analysis-results.md): 读取每篇文档的情感、情绪、提到的品牌和产品、作者意图,以及它们的每日统计。 - [读取字幕、OCR 和结构化字段](https://www.marsyoo.com/docs/transcripts.md): 读取视频字幕、图片里的文字、商品规格,以及价格、公司、分类等结构化字段。 - [下载图片和附件](https://www.marsyoo.com/docs/attachments.md): 列出一篇文档已保存的图片、音视频和文件,并通过短期地址下载。 - [统计分析(Preview)](https://www.marsyoo.com/docs/analytics.md): 按平台、时间、情感、意图、实体等维度直接得到汇总、排行和分布,不用先把明细拉回本地。 ### 获取新数据 - [实时查询](https://www.marsyoo.com/docs/live-query.md): 现在去平台采集一批新数据:创建查询、等待各平台完成、分页读取结果。 - [监测订阅](https://www.marsyoo.com/docs/collection-subscriptions.md): 让 MarsYoo 按固定周期采集某个关键词、用户或频道的新内容,并查看每一轮的执行结果。 - [接收监测通知(Webhook)](https://www.marsyoo.com/docs/webhooks.md): 监测订阅每一轮结束时,让 MarsYoo 给你的服务器发一个带签名的通知。 ### 同步到自己的系统 - [增量同步](https://www.marsyoo.com/docs/change-feed.md): 持续拉取新文档、新版本和指标变化,把数据同步到自己的系统里。 - [批量导出](https://www.marsyoo.com/docs/exports.md): 把一段时间内的文档导出为 JSONL 或 Parquet 文件,后台生成后分片下载。 ### 开发工具 - [Python 和 Go SDK](https://www.marsyoo.com/docs/sdk.md): 安装 Python 或 Go SDK,用几行代码完成搜索和读取,并查看每个方法对应的接口。 - [在 AI 应用中使用(MCP)](https://www.marsyoo.com/docs/mcp.md): 把 MarsYoo 接入支持 MCP 的 AI 应用,让 AI 直接搜索和读取你有权限的数据。 - [上线前检查](https://www.marsyoo.com/docs/production.md): 程序正式上线前要设好的超时、重试和并发,以及请求失败、结果为空时怎么排查。 ### 控制台 - [控制台:应用、权限和调用日志](https://www.marsyoo.com/docs/portal.md): 在控制台管理应用和 API Key,看懂应用的授权范围,分配成员权限,并用调用日志排查请求。 - [积分和账单](https://www.marsyoo.com/docs/billing.md): 积分怎么购买、怎么扣、什么时候过期,以及在哪里查看扣费明细。 ### 参考 - [平台能力](https://www.marsyoo.com/docs/platforms.md): 支持哪些平台、每个平台能拿到什么数据、数据从哪里来,以及怎么申请开通。 - [字段字典](https://www.marsyoo.com/docs/fields.md): 文档对象的每个字段、内容类型、统一的指标口径、平台扩展字段,以及数据新鲜度统计。 - [错误码](https://www.marsyoo.com/docs/errors.md): 接口返回的 HTTP 状态码和错误码,以及每种错误该怎么处理。 - [更新记录](https://www.marsyoo.com/docs/changelog.md): 接口和文档的重要变化,按时间倒序。 - [向量分析(已停用)](https://www.marsyoo.com/docs/analysis.md): 旧的向量分析任务已经停用,本页说明该改用什么。 ## English ### Get Started - [Overview](https://www.marsyoo.com/en/docs/index.md): What data you can get through the API, and which way of getting it fits your task. - [Make Your First Query in 5 Minutes](https://www.marsyoo.com/en/docs/quickstart.md): Search stored documents with your API key, then read the full body of one of them. - [Get an API Key](https://www.marsyoo.com/en/docs/authentication.md): Get your application's API key, configure it safely in your program, and rotate it when needed. - [Core Concepts](https://www.marsyoo.com/en/docs/concepts.md): What documents, versions, snapshots, applications, access and credits are, and how they relate. ### Query Data - [Keyword Search](https://www.marsyoo.com/en/docs/search.md): Search stored documents by keyword, platform, time range and analysis results, and page through all matches. - [Browse by User, Topic, Tag & Category](https://www.marsyoo.com/en/docs/browse.md): Filter stored documents by author, topic, tag, category or score, read author profiles, and page through every result. - [Read Content & Versions](https://www.marsyoo.com/en/docs/documents.md): Use a document ID to read metadata, the full body, cover images and earlier versions of the body. - [Read Metrics & Author Snapshots](https://www.marsyoo.com/en/docs/metrics.md): Read the history of likes, views and other metrics, compare a document with similar ones, and copy snapshots in bulk by time window. - [Read Sentiment, Entities & Intents](https://www.marsyoo.com/en/docs/analysis-results.md): Read each document's sentiment, emotions, mentioned brands and products, and author intent, plus their daily statistics. - [Read Transcripts, OCR & Facts](https://www.marsyoo.com/en/docs/transcripts.md): Read video subtitles, text recognized in images, product specs, and structured fields such as price, company and category. - [Download Images & Attachments](https://www.marsyoo.com/en/docs/attachments.md): List the images, audio, video and files stored for a document, and download them through short-lived links. - [Analytics Queries (Preview)](https://www.marsyoo.com/en/docs/analytics.md): Get totals, rankings and distributions by platform, time, sentiment, intent, entity and more, without pulling raw records first. ### Collect New Data - [Live Queries](https://www.marsyoo.com/en/docs/live-query.md): Collect a fresh batch from platforms now. Create a query, wait for each platform, then page through the results. - [Monitoring Subscriptions](https://www.marsyoo.com/en/docs/collection-subscriptions.md): Have MarsYoo collect new content for a keyword, user or channel on a schedule, and check the results of every run. - [Receive Monitoring Webhooks](https://www.marsyoo.com/en/docs/webhooks.md): Have MarsYoo send your server a signed notification when each monitoring subscription run finishes. ### Sync to Your System - [Change Feed](https://www.marsyoo.com/en/docs/change-feed.md): Keep pulling new documents, new versions and metric changes to sync data into your own system. - [Bulk Exports](https://www.marsyoo.com/en/docs/exports.md): Export documents from a time range as JSONL or Parquet files, generated in the background and downloaded in parts. ### Developer Tools - [Python and Go SDKs](https://www.marsyoo.com/en/docs/sdk.md): Install the Python or Go SDK, search and read in a few lines, and see which endpoint each method calls. - [Use from AI Applications (MCP)](https://www.marsyoo.com/en/docs/mcp.md): Connect MarsYoo to an MCP-capable AI application so it can search and read the data you have access to. - [Production Checklist](https://www.marsyoo.com/en/docs/production.md): Timeouts, retries and concurrency to set before going live, and how to investigate failed requests and empty results. ### Console - [Manage Applications, Access & Logs](https://www.marsyoo.com/en/docs/portal.md): Manage applications and API keys in the console, understand an application's access, assign member roles, and investigate requests with the request log. - [Credits & Billing](https://www.marsyoo.com/en/docs/billing.md): How to buy credits, how they're charged and expire, and where to see each charge. ### Reference - [Platform Coverage](https://www.marsyoo.com/en/docs/platforms.md): Which platforms are supported, what each provides, where the data comes from, and how to request access. - [Field Reference](https://www.marsyoo.com/en/docs/fields.md): Every field of the document object, content types, common metric definitions, platform extension fields and freshness statistics. - [Error Codes](https://www.marsyoo.com/en/docs/errors.md): HTTP status codes and error codes returned by the API, and how to handle each one. - [Changelog](https://www.marsyoo.com/en/docs/changelog.md): Notable API and documentation changes, newest first. - [Vector Analysis (Retired)](https://www.marsyoo.com/en/docs/analysis.md): The old vector analysis tasks are retired; this page says what to use instead. ## API contracts - [Public OpenAPI](https://www.marsyoo.com/public-openapi.yaml) - [API Reference](https://www.marsyoo.com/public-api-reference)