返回接口目录

接口详情

新闻

GET
接口 ID
getlist-pcnewsflash
分组
资讯题材
调用地址
/v1/endpoints/getlist-pcnewsflash/call
可传参数
参数名称说明必填类型示例值
page_offset分页起点分页偏移量。第一页通常为 0,后续页按接口的分页步长递增。string0
type类型接口业务类型或分类值。不同接口含义不同,默认使用示例值。string0

在线测试

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

响应结构

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

HTTP 200 · object
字段路径类型样例值
List[].AiRatenullnull
List[].CIDstring1720821
List[].Contentstring【印度马哈拉施特拉邦至少21人因饮用私酿劣质酒死亡】根据印度警方5月31日最新通报,近日该国马哈拉施特拉邦有21人因...
List[].IsSDXZstring0
List[].PushUrlstring
List[].Sourcestring界面新闻
List[].Timestring1780202838
List[].Titlestring印度马哈拉施特拉邦至少21人因饮用私酿劣质酒死亡
List[].Typestring0
List[].ai_ratestring--
List[].ai_readstring0
List[].list_data1string
List[].list_data2string
List[].statusstring2
Timeinteger1780203019
errcodestring0
tnumber0.023700000000000054

调用示例

curl -X POST http://127.0.0.1:8080/v1/endpoints/getlist-pcnewsflash/call \
  -H "X-API-Key: <api_key>" \
  -H "Content-Type: application/json" \
  -d '{"params":{"page_offset":"0","type":"0"}}'
import requests

resp = requests.post(
    "http://127.0.0.1:8080/v1/endpoints/getlist-pcnewsflash/call",
    headers={"X-API-Key": "<api_key>"},
    json={"params": {"page_offset":"0","type":"0"}},
)
print(resp.status_code)
print(resp.text)
package main

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

func main() {
  body := []byte(`{"params":{"page_offset":"0","type":"0"}}`)
  req, _ := http.NewRequest("POST", "http://127.0.0.1:8080/v1/endpoints/getlist-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)
}