MongoDB Atlas API logo

MongoDB Atlas API

MongoDB Atlas API

未知免费developer-tools

MongoDB Atlas API 提供 MongoDB 官方托管 NoSQL 数据库:cluster 管理、Atlas Search、Atlas Vector Search、charts、自动扩展。

适合什么时候用

MongoDB 官方托管(最权威)

先注意什么

付费 tier 比自托管 MongoDB 贵

第一步先查

cloud.mongodb.com 注册 + 创建 cluster。Mongo driver: const client = new MongoClient(uri); await client.connect();

认证
api_key
CORS
?
HTTPS
注册
?
协议
REST, MongoDB Wire Protocol
计费
freemium

可用率 · 30 天窗口

日常巡检数据收集后将在此处显示。
01

关于这个 API

MongoDB Atlas 是 MongoDB 公司 (2007 创办,2017 IPO) 的官方托管 cloud service,是企业 MongoDB 部署的事实标准。MongoDB 本身是最流行的 NoSQL 文档数据库——data 是 BSON documents 而不是 SQL row,schema 灵活,对接前端 JS 对象自然。Atlas 之上又叠加了几个产品:(1) Atlas Search——基于 Lucene 的全文搜索,原本要单独跑 Elasticsearch 现在 MongoDB 内置;(2) Atlas Vector Search (2023+)——向量搜索内置 (pgvector 在 Postgres 的 MongoDB 版),RAG 应用不用 Pinecone;(3) Atlas Charts——内置数据可视化;(4) App Services——backend-as-a-service 框架(前 Realm)。多云部署(AWS / GCP / Azure 都能选 region)。免费 M0 tier 提供 512MB DB 共享 cluster,够 dev/POC。生产推荐 dedicated cluster。

02

你可以做什么

  • 1MongoDB 应用 cloud-hosted
  • 2需要文档 DB 而不是关系型
  • 3Atlas Search 替代 Elasticsearch(同 DB 全文搜索)
  • 4AI 应用用 Atlas Vector Search 做 RAG
03

优劣对比

优点

  • MongoDB 官方托管(最权威)
  • 免费 M0 tier 512MB DB 够开发
  • Atlas Search / Vector Search 集成(不用单独 Elasticsearch / Pinecone)
  • 多云部署(AWS / GCP / Azure)

注意事项

  • 付费 tier 比自托管 MongoDB 贵
  • M0 free tier 共享 cluster(性能不稳)
  • 复杂查询和事务能力弱于 Postgres
04

示例请求

通用模板 — 实际 endpoint 请查阅文档替换 <endpoint>。
curl https://www.mongodb.com/atlas/<endpoint> \
  -H "Authorization: Bearer $API_KEY"
# Some providers use X-Api-Key instead — verify in the docs.
05

快速开始

cloud.mongodb.com 注册 + 创建 cluster。Mongo driver: const client = new MongoClient(uri); await client.connect();

06

常见问题

Atlas Vector Search vs Pinecone?+

已在用 MongoDB:Atlas Vector Search(不用引入新组件)。纯做 vector search:Pinecone 性能更好。

MongoDB vs Postgres 怎么选?+

JSON document 数据 / 灵活 schema:MongoDB。复杂关系 / 强一致 / SQL:Postgres。

07

技术细节

CORS: ?HTTPS: Yes注册: ?开源: No
认证方式
api_key
计费
freemium
速率限制
默认 100 req/分(admin API)
协议
REST, MongoDB Wire Protocol
SDK
python, javascript, typescript, go, java, csharp, php, ruby
08

标签