返回接口目录

接口详情

明天炒什么 利好个股

GET
接口 ID
infozs-topic
分组
资讯题材
调用地址
/v1/endpoints/infozs-topic/call
可传参数
参数名称说明必填类型示例值
item_id条目 ID条目、主题或记录 ID。string2160
topic_index主题指数主题、指数或板块代码。string801660

在线测试

在线测试需要登录,会使用控制台中的默认 API Key 并计入用量。

响应结构

基于最近一次接口体检样本自动生成,仅展示主要字段。

HTTP 200 · object
字段路径类型样例值
List[].Clickinteger0
List[].HotTaginteger3
List[].HotValinteger53766
List[].Namestring中国长城
List[].StockIDstring000066
List[].Tradstring
List[].last_pxstring-4.86
errcodestring0
tnumber0.013480999999999993

调用示例

curl -X POST http://127.0.0.1:8080/v1/endpoints/infozs-topic/call \
  -H "X-API-Key: <api_key>" \
  -H "Content-Type: application/json" \
  -d '{"params":{"item_id":"2160","topic_index":"801660"}}'
import requests

resp = requests.post(
    "http://127.0.0.1:8080/v1/endpoints/infozs-topic/call",
    headers={"X-API-Key": "<api_key>"},
    json={"params": {"item_id":"2160","topic_index":"801660"}},
)
print(resp.status_code)
print(resp.text)
package main

import (
  "bytes"
  "fmt"
  "net/http"
)

func main() {
  body := []byte(`{"params":{"item_id":"2160","topic_index":"801660"}}`)
  req, _ := http.NewRequest("POST", "http://127.0.0.1:8080/v1/endpoints/infozs-topic/call", bytes.NewReader(body))
  req.Header.Set("X-API-Key", "<api_key>")
  req.Header.Set("Content-Type", "application/json")
  resp, err := http.DefaultClient.Do(req)
  fmt.Println(resp.StatusCode, err)
}