💡 ToolFK provides all tools free of charge. The ads you see help us keep the site running sustainably. Thank you for your support! ❤️ ToolFK tools are free. Ads help keep the site running. Thanks! ❤️

今日热榜 API

提供“今日热搜新闻”及全网热点排行榜API接口,实时获取最热事件和话题,让您的应用紧跟潮流,提升用户粘性。

接口文档 《查看会员》
接口地址: http://api.toolfk.com/api/rebang
请求方法: [ "GET", "POST" ]
请求参数:
名称类型描述示例
tokenstring请求的token用户中心获取token
-- Response Format --
返回数据:
{
    "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 万热度"
                },
            ]
        },
       ....
}
                
Code Examples:
  • Curl
  • PHP
  • Java
  • Python
  • JavaScript
  • Go
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) {
        if (this.readyState === 4 && this.status >= 400) {
            layer.msg('Request failed: ' + this.status);
        }
    }
});

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 res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))
}
返回状态码 status 描述参照
返回码描述
status1:表示成功,0:表示失败
data成功返回数据
errmsg失败返回数据
Note: By subscribing to the API service, you will also enjoy VIP membership benefits on www.toolfk.com.