需两次购买:①订购原厂商接口 ②免费接口,注册后直接调用;本接口是一款专为 MongoDB 数据库设计的 RESTful 风格的数据服务。它旨在简化应用程序与 MongoDB 之间的数据交互,允许开发者通过标准的 HTTP/HTTPS GET 和 POST 请求,快速、安全地执行各种数据库操作,而无需深入编写复杂的数据库驱动代码或管理数据库连接。
核心功能:从 MongoDB 集合中查询 符合条件的多条记录,支持 查询过滤、字段裁剪、排序规则、结果条数限制,满足列表数据获取、批量数据筛选等场景。适用场景: 数据列表展示(如用户列表、订单列表); 批量数据提取(如导出符合条件的记录); 带排序的批量查询(如按时间倒序的最近 10 条日志)。
showapi_res_body
curl -X POST "https://connector.showapi.com/1867-2?appKey=YOUR_APPKEY" \ -H "content-type: application/x-www-form-urlencoded" \ -d "ds_id=&collection=myuser&query=%7B%22name%22%3A%22%E5%BC%A0%E4%B8%89%22%7D&fields=%7B%22_id%22%3A1%7D&orderby=%7B%22_id%22%3A-1%7D&limit=20"
{ "showapi_res_error": "", "showapi_res_id": "eecbcc0f31d44628acfdf0fd8da277a7", "showapi_res_code": 0, "showapi_res_body": { "list": [ { "_id": "5d5e113eb81785c42e000004", "name": "test", "ct": "2019-08-22 11:51:26.704" }, { "_id": "5d5e1386b81785c42e000006", "name": "test", "num": 1, "ct": "2019-08-22 12:01:10.785" }, { "_id": "5d5e1389b81785c42e000005", "name": "test", "num": 2, "ct": "2019-08-22 12:01:13.748" }, { "_id": "5d5e138cb81785c42e000007", "name": "test", "num": 3, "ct": "2019-08-22 12:01:16.340" } ], "remark": "", "ret_code": 0 } }
在 Cherry Studio、ChatBox 等支持 MCP 的客户端中配置,将 {your_appKey} 替换为真实 AppKey(AppKey 管理)。该服务覆盖本接口全部接入点。
{ "mcpServers": { "showapi-mcp-1867": { "url": "http://www.showapi.com.cn/mcp/1867/{your_appKey}" } } }
标准 OpenAPI 3.0 文档,覆盖本接口全部接入点,可导入 Apifox / Postman / Swagger UI,或供 AI Agent 直接消费。
客服热线请拨打
400-998-8033