接口详情
明天炒什么 文章内容
- 接口 ID
- infoget-topic
- 分组
- 资讯题材
- 调用地址
- /v1/endpoints/infoget-topic/call
可传参数
| 参数 | 名称 | 说明 | 必填 | 类型 | 示例值 |
|---|---|---|---|---|---|
| item_id | 条目 ID | 条目、主题或记录 ID。 | 否 | string | 2160 |
在线测试
在线测试需要登录,会使用控制台中的默认 API Key 并计入用量。
响应结构
基于最近一次接口体检样本自动生成,仅展示主要字段。
| 字段路径 | 类型 | 样例值 |
|---|---|---|
| Content | string | 周三,英伟达与康宁公司(GLW)宣布达成一项多年期商业与技术合作伙伴关系,旨在大幅扩展美国本土先进光连接解决方�... |
| HotVal | integer | 155875 |
| IsVote | string | 1 |
| KXID | string | |
| Num | integer | 201 |
| Source | string | 券商中国 |
| ThemeClassID | string | |
| ThemeID | string | 257 |
| Time | string | 2026-05-06 23:39:57 |
| Title | string | 联手英伟达!康宁拟十倍扩产光连接,光纤产能扩大50%以上 |
| ZSCode | string | 801660 |
| errcode | string | 0 |
| t | number | 0.00488700000000003 |
调用示例
curl -X POST http://127.0.0.1:8080/v1/endpoints/infoget-topic/call \
-H "X-API-Key: <api_key>" \
-H "Content-Type: application/json" \
-d '{"params":{"item_id":"2160"}}'import requests
resp = requests.post(
"http://127.0.0.1:8080/v1/endpoints/infoget-topic/call",
headers={"X-API-Key": "<api_key>"},
json={"params": {"item_id":"2160"}},
)
print(resp.status_code)
print(resp.text)package main
import (
"bytes"
"fmt"
"net/http"
)
func main() {
body := []byte(`{"params":{"item_id":"2160"}}`)
req, _ := http.NewRequest("POST", "http://127.0.0.1:8080/v1/endpoints/infoget-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)
}