网易头条 API
1. 基本调用
TIP
服务器不会记录您的任何请求,也不会窃取您的任何隐私!
基本API地址
txt
https://zeapi.ink/v1/api/netease
通过以下 URL 直接发送 GET 请求获取网易头条数据:
txt
https://zeapi.ink/v1/api/netease
Shell 请求代码如下:
shell
curl -X GET https://zeapi.ink/v1/api/netease
2. 请求参数说明
该 API 不需要额外的请求参数,直接通过 GET 请求调用即可。
3. JSON 响应格式
成功响应示例:
json
{
"name": "网易新闻头条",
"alias": "news163_toutiao",
"data": [
{
"id": 1,
"title": "克拉玛依小伙摩旅骑行3500公里去报到 大一时报名参军",
"desc": "极目新闻",
"url": "https://m.163.com/news/article/K8CI2FQC053469LG.html",
"mUrl": "https://m.163.com/news/article/K8CI2FQC053469LG.html"
},
{
"id": 2,
"title": "阿塞拜疆总统在天津会见埃尔多安 走上前与对方拥抱",
"desc": "台海青年",
"url": "https://m.163.com/news/video/VQ7ENI3P9.html",
"mUrl": "https://m.163.com/news/video/VQ7ENI3P9.html"
},
{
"id": 3,
"title": "张玉宁和球迷发生冲突 被外国队友和服务员拉开",
"desc": "青蛙视频",
"url": "https://m.163.com/news/video/VH7EIJDI6.html",
"mUrl": "https://m.163.com/news/video/VH7EIJDI6.html"
},
{
"id": 4,
"title": "峰会现场:普京低头认真看文件 莫迪摸着下巴沉思",
"desc": "小A看世界",
"url": "https://m.163.com/news/video/VN7EKOKHC.html",
"mUrl": "https://m.163.com/news/video/VN7EKOKHC.html"
},
{
"id": 5,
"title": "樊振东德甲首秀和对手高球对拉观赏性拉满 观众狂欢呼",
"desc": "每日趣事儿",
"url": "https://m.163.com/news/video/VG7E8KOKU.html",
"mUrl": "https://m.163.com/news/video/VG7E8KOKU.html"
},
{
"id": 6,
"title": "\"最快女护士\"哭求领导支持调休跑马引热议 账号已关评",
"desc": "极目新闻",
"url": "https://m.163.com/news/article/K8CJT4U0053469LG.html",
"mUrl": "https://m.163.com/news/article/K8CJT4U0053469LG.html"
},
{
"id": 7,
"title": "媒体:对胡塞武装发动连串打击 以趁联大开幕前放大招",
"desc": "新民周刊",
"url": "https://m.163.com/news/article/K8C1RL390550A0OW.html",
"mUrl": "https://m.163.com/news/article/K8C1RL390550A0OW.html"
},
{
"id": 8,
"title": "广西一所学校举行新学期升旗活动 师生四人庄重严肃",
"desc": "台海青年",
"url": "https://m.163.com/news/video/VQ7E7VG6S.html",
"mUrl": "https://m.163.com/news/video/VQ7E7VG6S.html"
},
{
"id": 9,
"title": "阿塞拜疆总统和巴基斯坦总理在天津见面 两人相谈甚欢",
"desc": "台海青年",
"url": "https://m.163.com/news/video/VQ7E6UU7P.html",
"mUrl": "https://m.163.com/news/video/VQ7E6UU7P.html"
},
{
"id": 10,
"title": "王楚钦乒超联赛2-3不敌徐瑛彬 发球失误后懊恼地笑了",
"desc": "每日趣事儿",
"url": "https://m.163.com/news/video/VG7ECNRNL.html",
"mUrl": "https://m.163.com/news/video/VG7ECNRNL.html"
}
]
}
错误响应示例(数据获取失败):
json
{
"error": "获取数据失败"
}
4. 响应字段说明
字段 | 类型 | 说明 |
---|---|---|
name | string | 标题,固定为“网易头条” |
alias | string | 别名,固定为“netease” |
data | array | 头条列表,包含多个头条条目 |
data.id | int | 头条排名 |
data.title | string | 头条关键词 |
data.hotScore | int | 头条热度原始分数 |
data.url | string | 头条关键词的网页链接 |
data.hotScoreFormatted | string | 格式化的头条热度(以“万”为单位,保留1位小数) |
error | string | 操作结果消息(仅在错误时返回) |