接口详情
个股研报列表
- 接口 ID
- stock-research-reports
- 分组
- 研报数据
- 调用地址
- /v1/endpoints/stock-research-reports/call
可传参数
| 参数 | 名称 | 说明 | 必填 | 类型 | 示例值 |
|---|---|---|---|---|---|
| max_pages | 最大页数 | 最多抓取的研报分页页数,默认 5,最大 20。 | 否 | integer | 5 |
| stock_code | 证券代码 | 6 位 A 股证券代码,支持带市场前缀的输入,系统会提取其中的 6 位代码。 | 是 | string | 600519 |
在线测试
在线测试需要登录,会使用控制台中的默认 API Key 并计入用量。
调用示例
curl -X POST http://127.0.0.1:8080/v1/endpoints/stock-research-reports/call \
-H "X-API-Key: <api_key>" \
-H "Content-Type: application/json" \
-d '{"params":{"max_pages":"5","stock_code":"600519"}}'import requests
resp = requests.post(
"http://127.0.0.1:8080/v1/endpoints/stock-research-reports/call",
headers={"X-API-Key": "<api_key>"},
json={"params": {"max_pages":"5","stock_code":"600519"}},
)
print(resp.status_code)
print(resp.text)package main
import (
"bytes"
"fmt"
"net/http"
)
func main() {
body := []byte(`{"params":{"max_pages":"5","stock_code":"600519"}}`)
req, _ := http.NewRequest("POST", "http://127.0.0.1:8080/v1/endpoints/stock-research-reports/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)
}