今日热榜API接口

今日热榜免费接口api,包含了热榜聚合:百度、知乎、微博等时政时事...追踪全网热点、简单高效阅读。

接口文档 《查看会员》
接口地址: http://api.toolfk.com/api/rebang
请求方法: [ "GET", "POST" ]
请求参数:
名称类型描述示例
tokenstring请求的token用户中心获取token
-- 漂亮的分割符 --
返回数据:

{
    "status": 1,
    "data": [
        {
            "cate": "微博",
            "list": [
                {
                    "title": "马龙11比0",
                    "href": "https://s.weibo.com/weibo?q=%23%E9%A9%AC%E9%BE%9911%E6%AF%940%23&t=31&band_rank=1&Refer=top",
                    "hots": "3015780"
                },
                {
                    "title": "海克斯科技伤害了谁",
                    "href": "https://s.weibo.com/weibo?q=%23%E6%B5%B7%E5%85%8B%E6%96%AF%E7%A7%91%E6%8A%80%E4%BC%A4%E5%AE%B3%E4%BA%86%E8%B0%81%23&t=31&band_rank=2&Refer=top",
                    "hots": "999043"
                },
                {
                    "title": "太空视角俯瞰祖国大江南北",
                    "href": "https://s.weibo.com/weibo?q=%23%E5%A4%AA%E7%A9%BA%E8%A7%86%E8%A7%92%E4%BF%AF%E7%9E%B0%E7%A5%96%E5%9B%BD%E5%A4%A7%E6%B1%9F%E5%8D%97%E5%8C%97%23&t=31&band_rank=3&Refer=top",
                    "hots": "817264"
                },
                {
                    "title": "新冠病毒或对心脏DNA产生影响",
                    "href": "https://s.weibo.com/weibo?q=%23%E6%96%B0%E5%86%A0%E7%97%85%E6%AF%92%E6%88%96%E5%AF%B9%E5%BF%83%E8%84%8FDNA%E4%BA%A7%E7%94%9F%E5%BD%B1%E5%93%8D%23&t=31&band_rank=4&Refer=top",
                    "hots": "679786"
                }
                ...
                
            ]
        },
        {
            "cate": "知乎",
            "list": [
                {
                    "title": "「欧佩克+」各方同意减产原油 200 万桶/日,这将给全球经济发展带来哪些影响?",
                    "href": "https://www.zhihu.com/question/557840936",
                    "hots": "2335 万热度"
                },
                {
                    "title": "妇产科主任做引产手术未告知婴儿为活体,藏匿婴儿自己养,其将面临哪些法律惩罚?",
                    "href": "https://www.zhihu.com/question/557866477",
                    "hots": "1254 万热度"
                },
                {
                    "title": "奥密克戎变异毒株 BF.7 将成为主流,我们能做哪些应对?",
                    "href": "https://www.zhihu.com/question/557833955",
                    "hots": "976 万热度"
                },
                {
                    "title": "狮子和老虎为什么不吃大猩猩,是因为打不过吗?",
                    "href": "https://www.zhihu.com/question/554985677",
                    "hots": "644 万热度"
                },
                {
                    "title": "男子获 56 万元拆迁补偿款,消失 18 年前妻现身分走 21.6 万,如何从法律角度解读此事?",
                    "href": "https://www.zhihu.com/question/557928141",
                    "hots": "372 万热度"
                },
                {
                    "title": "如果《英雄联盟》有个装备售价一万,效果是普攻有 1/5 概率秒杀敌方英雄,在职业比赛中会有人出它吗?",
                    "href": "https://www.zhihu.com/question/352013713",
                    "hots": "278 万热度"
                },
                {
                    "title": "研究人员称「新冠病毒或直接对心脏 DNA 产生影响」,这一结论是否成熟?",
                    "href": "https://www.zhihu.com/question/557802160",
                    "hots": "276 万热度"
                },
                {
                    "title": "教育部答复全国人大代表建议,鼓励高校加强恋爱心理教育,有何积极意义?",
                    "href": "https://www.zhihu.com/question/557910303",
                    "hots": "274 万热度"
                },
                {
                    "title": "美军「里根」号航母日前「极为罕见地紧急掉头」,有哪些值得关注的信息?",
                    "href": "https://www.zhihu.com/question/557933249",
                    "hots": "248 万热度"
                },
                {
                    "title": "《西虹市首富》中王多鱼为什么选择挑战花光十亿而不是直接拿走一千万?",
                    "href": "https://www.zhihu.com/question/480644825",
                    "hots": "238 万热度"
                },
                {
                    "title": "星巴克里的依云水根本没人买, 为什么星巴克还在坚持卖?",
                    "href": "https://www.zhihu.com/question/553700426",
                    "hots": "206 万热度"
                },
                {
                    "title": "程序员看剧的时候,如果看到有敲代码页面,会暂停看代码吗?",
                    "href": "https://www.zhihu.com/question/551004482",
                    "hots": "183 万热度"
                },
                {
                    "title": "西安警方针对「大客车司机违规甩客」事件发布通报,客车司机被刑拘,他的行为违反了哪些法律?",
                    "href": "https://www.zhihu.com/question/557798472",
                    "hots": "156 万热度"
                }
            ]
        },
       ....
}
                
                            
代码示例:
  • Curl
  • PHP
  • Java
  • Python
  • JavaScript
  • Go
  • Nodejs

    curl -X POST \
    http://api.toolfk.com/api/rebang \
    -H 'Content-Type: application/x-www-form-urlencoded' \
    -d 'token=用户中心获取'
                                       
//记得去掉这个 "\" 斜线
<\?php
$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "http://api.toolfk.com/api/rebang",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => "token=用户中心获取",
  CURLOPT_HTTPHEADER => array(
    "Content-Type: application/x-www-form-urlencoded",
  ),
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
   

OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/x-www-form-urlencoded");
RequestBody body = RequestBody.create(mediaType, "token=用户中心获取");
Request request = new Request.Builder()
  .url("http://api.toolfk.com/api/rebang")
  .post(body)
  .addHeader("Content-Type", "application/x-www-form-urlencoded")
  .build();

Response response = client.newCall(request).execute();


                                       
import requests

url = "http://api.toolfk.com/api/rebang"

payload = "token=用户中心获取"
headers = {'Content-Type': "application/x-www-form-urlencoded"}

response = requests.request("POST", url, data=payload, headers=headers)

print(response.text)
var data = "token=用户中心获取";

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
    if (this.readyState === 4) {
        console.log(this.responseText);
    }
});

xhr.open("POST", "http://api.toolfk.com/api/rebang");
xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");

xhr.send(data);
                                       
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "http://api.toolfk.com/api/rebang"

	payload := strings.NewReader("token=用户中心获取")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Content-Type", "application/x-www-form-urlencoded")

	res, _ := http.DefaultClient.Do(req)

	defer_no res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
                                       
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "http://api.toolfk.com/api/rebang"

        payload := strings.NewReader("{
          "token": "用户中心获取token",
          "type": "a",
          "format": "json"
        }")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Content-Type", "application/x-www-form-urlencoded")

	res, _ := http.DefaultClient.Do(req)

	defer_no res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
                                       
返回状态码 status 描述参照
返回码描述
status1:表示成功,0:表示失败
data成功返回数据
errmsg失败返回数据
备注:开通API接口服务,可同时享用 www.toolfk.com 网站的会员工具。