接口详情
明天炒什么 利好个股
- 接口 ID
- infozs-topic
- 分组
- 资讯题材
- 调用地址
- /v1/endpoints/infozs-topic/call
可传参数
| 参数 | 名称 | 说明 | 必填 | 类型 | 示例值 |
|---|---|---|---|---|---|
| item_id | 条目 ID | 条目、主题或记录 ID。 | 否 | string | 2160 |
| topic_index | 主题指数 | 主题、指数或板块代码。 | 否 | string | 801660 |
在线测试
在线测试需要登录,会使用控制台中的默认 API Key 并计入用量。
响应结构
基于最近一次接口体检样本自动生成,仅展示主要字段。
| 字段路径 | 类型 | 样例值 |
|---|---|---|
| List[].Click | integer | 0 |
| List[].HotTag | integer | 3 |
| List[].HotVal | integer | 53766 |
| List[].Name | string | 中国长城 |
| List[].StockID | string | 000066 |
| List[].Trad | string | |
| List[].last_px | string | -4.86 |
| errcode | string | 0 |
| t | number | 0.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)
}