今日头条热搜榜API
今日头条热搜榜API

接口地址: https://api.suyanw.cn/api/headline_top_search.php

返回格式: 请看返回示例

请求方式: GET

请求示例: https://api.suyanw.cn/api/headline_top_search.php

请求参数说明:

名称必填说明
type榜单返回格式,默认text可选json
page1-2为25个短列表,不填则返回列表,仅对text类型生效
hh换行符号(默认\n)

系统级错误:

名称说明
400请求错误!
403请求被服务器拒绝!
405客户端请求的方法被禁止!
408请求时间过长!
500服务器内部出现错误!
501服务器不支持请求的功能,无法完成请求!
503系统维护中!

返回参数说明:

名称类型说明
codeint状态码
textstring返回数据

返回示例:


Warning: file_get_contents(http://api.suyanw.cn/api/headline_top_search.php): failed to open stream: HTTP request failed! HTTP/1.1 520 Origin Error in /home/www/api.suyanw.cn/doc/headline_top_search.php on line 174

错误码格式说明:

名称类型说明

调用示例: