接口详情
头条
- 接口 ID
- gettoplist-pcnewsflash
- 分组
- 资讯题材
- 调用地址
- /v1/endpoints/gettoplist-pcnewsflash/call
可传参数
| 参数 | 名称 | 说明 | 必填 | 类型 | 示例值 |
|---|---|---|---|---|---|
| page_offset | 分页起点 | 分页偏移量。第一页通常为 0,后续页按接口的分页步长递增。 | 否 | string | 0 |
在线测试
在线测试需要登录,会使用控制台中的默认 API Key 并计入用量。
响应结构
基于最近一次接口体检样本自动生成,仅展示主要字段。
| 字段路径 | 类型 | 样例值 |
|---|---|---|
| List[].Date | string | 2026-05-29 |
| List[].Detail[].AddTime | string | 1780018882 |
| List[].Detail[].CID | string | 53452217575098067 |
| List[].Detail[].Content | string | <p>财联社5月29日讯,随着人工智能(AI)基础设施需求持续激增,<strong>美国服务器和个人电脑制造商戴尔科技(Dell Technol... |
| List[].Detail[].Date | string | 2026-05-29 |
| List[].Detail[].ID | string | 53452217575098067 |
| List[].Detail[].IsDel | string | 0 |
| List[].Detail[].Sort | string | 1 |
| List[].Detail[].State | string | 1 |
| List[].Detail[].Title | string | AI服务器收入激增757%!戴尔交出炸裂财报 盘后股价暴涨近40% |
| List[].Detail[].UpTime | string | 1780018956 |
| errcode | string | 0 |
| t | number | 0.0017939999999999623 |
调用示例
curl -X POST http://127.0.0.1:8080/v1/endpoints/gettoplist-pcnewsflash/call \
-H "X-API-Key: <api_key>" \
-H "Content-Type: application/json" \
-d '{"params":{"page_offset":"0"}}'import requests
resp = requests.post(
"http://127.0.0.1:8080/v1/endpoints/gettoplist-pcnewsflash/call",
headers={"X-API-Key": "<api_key>"},
json={"params": {"page_offset":"0"}},
)
print(resp.status_code)
print(resp.text)package main
import (
"bytes"
"fmt"
"net/http"
)
func main() {
body := []byte(`{"params":{"page_offset":"0"}}`)
req, _ := http.NewRequest("POST", "http://127.0.0.1:8080/v1/endpoints/gettoplist-pcnewsflash/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)
}