InfluxDB接口
连接器

InfluxDB接口

连接器

需两次购买:①订购原厂商接口 ②订购易源会员包代理转发;使用HTTP接口调用您自己的InfluxDB数据库,以完成增删查改以及数据库级别的建表、建索引、维护等所有指令,大大提升开发效率。也可以预定义查询SQL并埋入变量,调用时传入变量值进行调用。演示时默认使用的是公用测试库,数据不定期清理。用于生产环境时, 请绑定自己的InfluxDB数据。

会员资源包统一计费,无需单独购买,开通会员包后可直接调用。
select-list
接口地址
https://connector.showapi.com/1884-1?appKey={your_appKey}查看密钥调用帮助
返回格式JSON
请求方式POST/GET
请求参数
Header 参数
参数名称类型示例值必须描述
content-typeString
application/x-www-form-urlencoded
Post 表单
参数名称类型示例值必须描述
fieldsString
*
 需要返回的字段,意义和sql语句一样
tableString
mytest2
 从哪张表查询,在influxdb中表概念对应measurement
whereString
"code"=? and "name"=?
例如"code"=?   and  "name"=?
where_paramString
["12345","aaaaa"]
例如["12345","aaaaa"]
order_by_timeString
desc
 根据时间排序,枚举值 desc 或 asc
limitNumber
20
 返回多少条记录。最高100条。
offsetNumber
0
偏移量,可用于分页查询。
epochString
-
返回的时间格式,可选值为 空串,ns,u,µ,ms,s,m,h。如果空串则返回rfc3339_date_time_string格式(例:2020-04-20T13:52:12.79223644Z)
databaseString
mydatabase
使用本数据源中的哪一个库。如果传入本参数,将优先使用本库(而不是数据源中设定的库)。
ds_idString
-
数据源
返回参数
该接口返回经 showapi_res_body 系统封装,业务数据均位于该对象内;系统级字段见
返回体
cURL
curl -X POST "https://connector.showapi.com/1884-1?appKey=YOUR_APPKEY" \
  -H "content-type: application/x-www-form-urlencoded" \
  -d "fields=*&table=mytest2&where=%22code%22%3D%3F%20and%20%20%20%22name%22%3D%3F&where_param=%5B%2212345%22%2C%22aaaaa%22%5D&order_by_time=desc&limit=20&offset=0&epoch=&database=mydatabase&ds_id="
返回示例
JSON
{
  "showapi_res_error": "",
  "showapi_res_id": "eaadff8a1aaf4779ac9f1c1f5c79507f",
  "showapi_res_code": 0,
  "showapi_res_body": {
    "remark": "",
    "results": [
      {
        "series": [
          {
            "columns": [
              "time",
              "age",
              "code",
              "name",
              "type"
            ],
            "name": "mytest1",
            "values": [
              [
                1534430190001,
                34,
                "12345",
                "aaaaa",
                "cccc"
              ]
            ]
          }
        ],
        "statement_id": 0
      }
    ],
    "ret_code": 0
  }
}
MCP 服务集成接口级

在 Cherry Studio、ChatBox 等支持 MCP 的客户端中配置,将 {your_appKey} 替换为真实 AppKey(AppKey 管理)。该服务覆盖本接口全部接入点。

MCP JSON
{
  "mcpServers": {
    "showapi-mcp-1884": {
      "url": "http://www.showapi.com.cn/mcp/1884/{your_appKey}"
    }
  }
}
OpenAPI 文档接口级

标准 OpenAPI 3.0 文档,覆盖本接口全部接入点,可导入 Apifox / Postman / Swagger UI,或供 AI Agent 直接消费。