微博热榜榜

接口信息
API ID: 4
总调用: 59
添加时间: 2026-05-12
更新时间: 2026-07-08
访问权限: 公开访问(无需密钥)
请求信息
请求地址:
https://api.xkzil.com/API/news/webobang.php
示例地址:
https://api.xkzil.com/API/news/webobang.php
请求参数
参数名 类型 必填 说明 示例值
type string 返回格式(json/text) -
count string 返回数量(最多50) -
状态码说明
状态码 说明
200 请求成功,服务器已成功处理了请求。
403 服务器拒绝请求。这可能是由于缺少必要的认证凭据(如API密钥)或权限不足。
404 请求的资源未找到。请检查您的请求地址是否正确。
429 请求过于频繁。您已超出速率限制,请稍后再试。
500 服务器内部错误。服务器在执行请求时遇到了问题。
返回示例
响应格式
{
  "code": 200,
  "msg": "获取成功",
  "data": {
    "update_time": "2026-05-16 17:18:00",
    "total": 1,
    "list": [
      {
        "rank": 1,
        "title": "歌手首发阵容",
        "hot_score": "114.3万",
        "hot_score_raw": 1142509,
        "url": "https://s.weibo.com/weibo?q=%E6%AD%8C%E6%89%8B%E9%A6%96%E5%8F%91%E9%98%B5%E5%AE%B9",
        "icon": "https://simg.s.weibo.com/moter/flags/2_0.png",
        "label": "热"
      }
    ]
  },
  "api_source": "星空知API:api.xkzil.com"
}
在线测试
返回结果
此处将显示接口返回结果...
调用示例
<?php
$url = 'https://api.xkzil.com/API/news/webobang.php';
$params = ['type' => 'YOUR_VALUE', 'count' => 'YOUR_VALUE', ];
$url .= '?' . http_build_query($params);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>
import requests
url = "https://api.xkzil.com/API/news/webobang.php"
params = {
    'type': 'YOUR_VALUE',
    'count': 'YOUR_VALUE',
}
response = requests.get(url, params=params)
print(response.text)
const url = new URL('https://api.xkzil.com/API/news/webobang.php');
const params = {
    'type': 'YOUR_VALUE',
    'count': 'YOUR_VALUE',
};
Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));
fetch(url)
    .then(response => response.text())
    .then(data => console.log(data))
    .catch(error => console.error('Error:', error));
const axios = require('axios');
const url = 'https://api.xkzil.com/API/news/webobang.php';
const params = {
  'type': 'YOUR_VALUE',
  'count': 'YOUR_VALUE',};
axios.get(url, { params })
  .then(res => console.log(res.data))
  .catch(err => console.error(err));
package main

import (
    "fmt"
    "io"
    "net/http"
    "net/url"
)

func main() {
    baseURL := "https://api.xkzil.com/API/news/webobang.php"
    params := url.Values{}
    params.Add("type", "YOUR_VALUE")
    params.Add("count", "YOUR_VALUE")
    reqURL := baseURL + "?" + params.Encode()
    resp, err := http.Get(reqURL)
    if err != nil {
        panic(err)
    }
    defer resp.Body.Close()
    body, _ := io.ReadAll(resp.Body)
    fmt.Println(string(body))
}
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;

public class Main {
    public static void main(String[] args) throws Exception {
        String url = "https://api.xkzil.com/API/news/webobang.php" + "?" +
            "type=YOUR_VALUE" + "&" +\n            "count=YOUR_VALUE";
        HttpClient client = HttpClient.newHttpClient();
        HttpRequest request = HttpRequest.newBuilder()
            .uri(URI.create(url))
            .GET()
            .build();
        HttpResponse<String> response = client.send(request,
            HttpResponse.BodyHandlers.ofString());
        System.out.println(response.body());
    }
}
using System.Net;

var client = new HttpClient();
var url = "https://api.xkzil.com/API/news/webobang.php" + "?" +
    string.Join("&",
        new (string, string)[] {
            ("type", "YOUR_VALUE"),
            ("count", "YOUR_VALUE"),
        }.Select(p => $"{WebUtility.UrlEncode(p.Item1)}={WebUtility.UrlEncode(p.Item2)}")
    );
var response = await client.GetStringAsync(url);
Console.WriteLine(response);
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <curl/curl.h>

int main(void) {
    CURL *curl = curl_easy_init();
    char *url = "https://api.xkzil.com/API/news/webobang.php" + '?' +
        "type=YOUR_VALUE&count=YOUR_VALUE";
    if(curl) {
        curl_easy_setopt(curl, CURLOPT_URL, url);
        curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
        int res = curl_easy_perform(curl);
        curl_easy_cleanup(curl);
    }
    return 0;
}
#include <iostream>
#include <httplib.h>

int main() {
    httplib::Client cli("https://api.xkzil.com");
    httplib::Params params{
        {"type", "YOUR_VALUE"},
        {"count", "YOUR_VALUE"},
    };
    auto res = cli.Get("/API/news/webobang.php", params);
    if(res) std::cout << res->body << std::endl;
    return 0;
}
.版本 2

.子程序 _按钮_调用_被单击

.局部变量 网络操作对象, 网络操作类
.局部变量 返回文本, 文本型
.局部变量 完整网址, 文本型

完整网址 = "https://api.xkzil.com/API/news/webobang.php" + "?"
完整网址 = 完整网址 + " + "&" + "type" + "=" + "YOUR_VALUE"
完整网址 = 完整网址 + "count" + "=" + "YOUR_VALUE"
返回文本 = 网络操作对象.网页_获取(完整网址)

调试输出(返回文本)
API 接口列表