跳至主要內容

微博搜索用戶發佈帖子 API (V1) ​

GET
API 端點健康狀態
健康 可用 少量可用 基本不可用 暫無資料
正在載入健康狀態…

搜索特定微博用戶發佈的帖子,使用關鍵詞、可選的日期範圍和基於頁面的分頁。用於從已知帳號查找歷史帖子以進行話題研究或活動回顧。

請求參數 ​

參數名 位置 類型 必填 預設值 說明
token query string 是 - API 訪問令牌。
uid query string 是 - 微博用戶ID (UID)。
q query string 是 - 搜索關鍵詞。
startDay query string 否 - 開始日期 (yyyy-MM-dd)。
endDay query string 否 - 結束日期 (yyyy-MM-dd)。
page query integer 否 1 頁碼,從1開始。

程式碼範例 ​

bash
curl --max-time 120 -X GET 'https://api.justoneapi.com/api/weibo/search-profile/v1?token=YOUR_API_KEY&uid=VALUE&q=VALUE'
text
我想使用 JustOneAPI 提供的“搜索用戶發佈帖子 (V1)”接口。
接入地址: https://api.justoneapi.com。
接口路徑: /api/weibo/search-profile/v1?token=YOUR_API_KEY&uid=VALUE&q=VALUE
接口地址: BASE_URL + /api/weibo/search-profile/v1?token=YOUR_API_KEY&uid=VALUE&q=VALUE
HTTP 方法: GET
身份驗證: 在 URL 中傳入 token 查詢參數。
OpenAPI 定義: https://docs.justoneapi.com/openapi/weibo/search-user-published-posts-v1-zh-hant.json

請求參數說明:
- token (query): API 訪問令牌。 (必填)
- uid (query): 微博用戶ID (UID)。 (必填)
- q (query): 搜索關鍵詞。 (必填)
- startDay (query): 開始日期 (yyyy-MM-dd)。
- endDay (query): 結束日期 (yyyy-MM-dd)。
- page (query): 頁碼,從1開始。

返回格式: 請根據實際 Content-Type 安全處理 JSON 或文本回應。

回應處理與錯誤代碼:
1. 需通過返回體中的 "code" 欄位判斷業務結果(code 為 0 表示成功)。
2. 逾時建議:建議將請求逾時時間設置為 120 秒;如果 120 秒偏長,請至少設置為 60 秒,但可能會有少量請求因逾時而未接收到結果。
3. 業務碼說明:
   - 0: 成功
   - 100: Token 無效或已失效
   - 301: 採集失敗,請重試
   - 302: 超出速率限制
   - 303: 超出每日配額
   - 400: 參數錯誤
   - 500: 內部伺服器錯誤
   - 600: 權限不足
   - 601: 帳戶餘額不足
   - 602: TOKEN 限額超限
4. code 601 表示帳戶共享餘額不足。code 602 表示當前 API TOKEN 自身的累計消費上限已達到。TOKEN 限額不是資金劃撥,多個 TOKEN 仍共享同一個帳戶餘額。

請幫我用我擅長的編程語言寫一個腳本來呼叫這個接口,並處理返回結果。
python
import requests

BASE_URL = "https://api.justoneapi.com"  # 由 OpenAPI servers 提供

url = BASE_URL + "/api/weibo/search-profile/v1?token=YOUR_API_KEY&uid=VALUE&q=VALUE"
response = requests.get(url, timeout=120)
print(response.status_code)
if response.content:
    content_type = response.headers.get("content-type", "").lower()
    if "json" in content_type:
        try:
            print(response.json())
        except ValueError:
            print(response.text)
    elif content_type.startswith("text/") or "xml" in content_type or content_type.split(";", 1)[0].strip() in {"application/javascript", "application/x-www-form-urlencoded", "application/graphql"}:
        print(response.text)
    else:
        with open("response.bin", "wb") as output:
            output.write(response.content)
        print(f"Saved {len(response.content)} bytes to response.bin")
js
const BASE_URL = "https://api.justoneapi.com"; // 由 OpenAPI servers 提供
const url = BASE_URL + "/api/weibo/search-profile/v1?token=YOUR_API_KEY&uid=VALUE&q=VALUE";

const response = await fetch(url, {
  method: "GET",
  signal: AbortSignal.timeout(120000)
});
console.log(response.status);
const responseBytes = await response.arrayBuffer();
if (responseBytes.byteLength) {
  const contentType = (response.headers.get("content-type") || "").toLowerCase();
  const mediaType = contentType.split(";", 1)[0].trim();
  const textual = contentType.startsWith("text/") || contentType.includes("json") || contentType.includes("xml") || ["application/javascript", "application/x-www-form-urlencoded", "application/graphql"].includes(mediaType);
  if (textual) {
    const responseText = new TextDecoder().decode(responseBytes);
    let data = responseText;
    if (contentType.includes("json")) {
      try { data = JSON.parse(responseText); } catch { /* Keep the raw body. */ }
    }
    console.log(data);
  } else {
    console.log(`Received ${responseBytes.byteLength} binary bytes`);
  }
}
java
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.time.Duration;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Path;

public class Main {
    public static void main(String[] args) throws Exception {
        final String BASE_URL = "https://api.justoneapi.com"; // 由 OpenAPI servers 提供
        final String url = BASE_URL + "/api/weibo/search-profile/v1?token=YOUR_API_KEY&uid=VALUE&q=VALUE";

        HttpClient client = HttpClient.newBuilder().connectTimeout(Duration.ofSeconds(120)).build();
        HttpRequest.Builder builder = HttpRequest.newBuilder()
            .uri(URI.create(url))
            .timeout(Duration.ofSeconds(120))
            .method("GET", HttpRequest.BodyPublishers.noBody());

        HttpRequest request = builder.build();

        HttpResponse<byte[]> response = client.send(request, HttpResponse.BodyHandlers.ofByteArray());
        System.out.println(response.statusCode());
        String contentType = response.headers().firstValue("content-type").orElse("").toLowerCase();
        String mediaType = contentType.split(";", 2)[0].trim();
        if (contentType.startsWith("text/") || contentType.contains("json") || contentType.contains("xml") || mediaType.equals("application/javascript") || mediaType.equals("application/x-www-form-urlencoded") || mediaType.equals("application/graphql")) {
            System.out.println(new String(response.body(), StandardCharsets.UTF_8));
        } else {
            Files.write(Path.of("response.bin"), response.body());
            System.out.println("Saved " + response.body().length + " bytes to response.bin");
        }
    }
}
go
package main

import (
	"fmt"
	"io"
	"os"
	"strings"
	"net/http"
	"time"
)

const BASE_URL = "https://api.justoneapi.com" // 由 OpenAPI servers 提供

func main() {
	client := &http.Client{Timeout: 120 * time.Second}
	url := BASE_URL + "/api/weibo/search-profile/v1?token=YOUR_API_KEY&uid=VALUE&q=VALUE"
	req, _ := http.NewRequest("GET", url, nil)
	resp, _ := client.Do(req)
	defer resp.Body.Close()
	fmt.Println(resp.StatusCode)
	bodyBytes, _ := io.ReadAll(resp.Body)
	contentType := strings.ToLower(resp.Header.Get("Content-Type"))
	mediaType := strings.TrimSpace(strings.SplitN(contentType, ";", 2)[0])
	if strings.HasPrefix(contentType, "text/") || strings.Contains(contentType, "json") || strings.Contains(contentType, "xml") || mediaType == "application/javascript" || mediaType == "application/x-www-form-urlencoded" || mediaType == "application/graphql" {
		fmt.Println(string(bodyBytes))
	} else {
		os.WriteFile("response.bin", bodyBytes, 0600)
		fmt.Printf("Saved %d bytes to response.bin\n", len(bodyBytes))
	}
}
php
<?php
$BASE_URL = 'https://api.justoneapi.com'; // 由 OpenAPI servers 提供
$url = $BASE_URL . '/api/weibo/search-profile/v1?token=YOUR_API_KEY&uid=VALUE&q=VALUE';

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_TIMEOUT, 120);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
$response = curl_exec($ch);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);
$contentType = strtolower((string) curl_getinfo($ch, CURLINFO_CONTENT_TYPE));
curl_close($ch);
echo $status . PHP_EOL;
$mediaType = trim(explode(';', $contentType, 2)[0]);
if (str_starts_with($contentType, 'text/') || str_contains($contentType, 'json') || str_contains($contentType, 'xml') || in_array($mediaType, ['application/javascript', 'application/x-www-form-urlencoded', 'application/graphql'], true)) {
    echo $response;
} else {
    file_put_contents('response.bin', $response);
    echo 'Saved ' . strlen($response) . ' bytes to response.bin' . PHP_EOL;
}

返回欄位 ​

業務成功時(code = 0)的主要返回欄位。

搜索結果與分頁2 個欄位

data

一頁搜索結果。下方非空結果欄位來自正式樣例與歸檔回應的交叉驗證。本輪實測確認的搜索結果列表為空。

欄位 類型 說明
ok integer 微博返回的內層狀態。值為 1 時有搜索結果結構,值為 0 時可能只有狀態。
data.total integer | string 微博返回的匹配結果總數,可能是整數或數字字符串。當前頁的條目數以 list 的長度為準。
博文17 個欄位

data.data.list[]

欄位 類型 說明
id integer 微博帖子的數字 ID。
idstr string 以文本表示的微博帖子 ID。
mid string 以文本表示的微博消息 ID。
mblogid string 微博帖子的字母數字短 ID。
created_at string 發佈時間,保留微博原始時間格式。
text string 微博返回的帖子正文,可能含 HTML 標記。
text_raw string 此帖的原始正文文本,存在時可用。
textLength integer 微博返回的帖子文本長度。
source string 微博展示的帖子發佈來源標籤,存在時可用。
region_name string 帖子展示的地區標籤。
isLongText boolean 微博是否將此帖標記為長文。
is_paid boolean 微博是否將此帖標記為付費內容。
visible object 此帖返回的可見性設置。
visible.type integer 微博返回的可見性數字代碼。
visible.list_id integer 關聯可見性名單的數字 ID。
isAd boolean 微博是否將這條博文標為廣告。
edit_count integer 微博返回的博文編輯次數。
作者與互動20 個欄位

data.data.list[]

欄位 類型 說明
user object 此條目附帶的公開作者信息。
user.id integer 作者的微博數字用戶 ID。
user.idstr string 以文本表示的作者微博用戶 ID。
user.screen_name string 微博帳號顯示名稱。
user.profile_image_url string 用戶資料的頭像地址。
user.avatar_large string 較大版本的個人資料頭像地址。
user.avatar_hd string 高清頭像地址。
user.profile_url string 微博返回的個人主頁連結。
user.verified boolean 微博是否將此帳號標記為已認證。
user.verified_type integer 微博記錄的帳號認證數字類型。
user.verified_type_ext integer 補充的帳號認證數字分類。
user.status_total_counter object 作者資料附帶的公開互動計數文本。
user.status_total_counter.comment_cnt string 作者資料裏的評論數,以字符串表示。
user.status_total_counter.like_cnt string 作者資料裏的點贊數,以字符串表示。
user.status_total_counter.repost_cnt string 作者資料裏的轉發數,以字符串表示。
user.status_total_counter.total_cnt string 作者資料裏的總互動數,以字符串表示。
user.status_total_counter.total_cnt_format string 作者資料用於展示的格式化總互動數。
reposts_count integer 微博返回的轉發數。
comments_count integer 微博返回的評論數。
attitudes_count integer 微博返回的表態數。
圖片48 個欄位

data.data.list[]

欄位 類型 說明
pic_num integer 此帖返回的圖片數量。
pic_ids array 帖子附帶的圖片 ID 列表,可能為空。
pic_ids[] string 微博圖片 ID。
pic_infos object 以圖片 ID 為鍵的圖片詳情。每項可能包含多個圖片版本。
pic_infos.{key} object 以該鍵標識的圖片詳情條目。
pic_infos.{key}.pic_id string 微博圖片 ID。
pic_infos.{key}.type string 此圖片返回的媒體類型標籤。
pic_infos.{key}.thumbnail object 縮略圖版本。
pic_infos.{key}.thumbnail.url string 此圖片版本的地址。
pic_infos.{key}.thumbnail.width integer 圖片寬度,單位為像素。
pic_infos.{key}.thumbnail.height integer 圖片高度,單位為像素。
pic_infos.{key}.bmiddle object 中等尺寸圖片版本。
pic_infos.{key}.bmiddle.url string 此圖片版本的地址。
pic_infos.{key}.bmiddle.width integer 圖片寬度,單位為像素。
pic_infos.{key}.bmiddle.height integer 圖片高度,單位為像素。
pic_infos.{key}.large object 大圖版本。
pic_infos.{key}.large.url string 此圖片版本的地址。
pic_infos.{key}.large.width integer 圖片寬度,單位為像素。
pic_infos.{key}.large.height integer 圖片高度,單位為像素。
pic_infos.{key}.largecover object 大封面圖版本。
pic_infos.{key}.largecover.url string 此圖片版本的地址。
pic_infos.{key}.largecover.width integer 圖片寬度,單位為像素。
pic_infos.{key}.largecover.height integer 圖片高度,單位為像素。
pic_infos.{key}.largest object largest 欄位返回的圖片版本。
pic_infos.{key}.largest.url string 此圖片版本的地址。
pic_infos.{key}.largest.width integer 圖片寬度,單位為像素。
pic_infos.{key}.largest.height integer 圖片高度,單位為像素。
pic_infos.{key}.mw2000 object mw2000 欄位返回的圖片版本。
pic_infos.{key}.mw2000.url string 此圖片版本的地址。
pic_infos.{key}.mw2000.width integer 圖片寬度,單位為像素。
pic_infos.{key}.mw2000.height integer 圖片高度,單位為像素。
pic_infos.{key}.original object 原圖欄位返回的圖片版本。
pic_infos.{key}.original.url string 此圖片版本的地址。
pic_infos.{key}.original.width integer 圖片寬度,單位為像素。
pic_infos.{key}.original.height integer 圖片高度,單位為像素。
pic_infos.{key}.focus_point object 圖片返回的焦點區域。
pic_infos.{key}.focus_point.left number 微博返回的圖片焦點區域左邊座標。
pic_infos.{key}.focus_point.top number 微博返回的圖片焦點區域上邊座標。
pic_infos.{key}.focus_point.width number 微博返回的圖片焦點區域寬度。
pic_infos.{key}.focus_point.height number 微博返回的圖片焦點區域高度。
pic_focus_point array 附帶圖片返回的焦點區域列表。
pic_focus_point[] object 一張圖片對應的焦點區域。
pic_focus_point[].pic_id string 微博圖片 ID。
pic_focus_point[].focus_point object 圖片返回的焦點區域。
pic_focus_point[].focus_point.left number 微博返回的圖片焦點區域左邊座標。
pic_focus_point[].focus_point.top number 微博返回的圖片焦點區域上邊座標。
pic_focus_point[].focus_point.width number 微博返回的圖片焦點區域寬度。
pic_focus_point[].focus_point.height number 微博返回的圖片焦點區域高度。
內容卡片與視頻113 個欄位

data.data.list[]

欄位 類型 說明
page_info object 隨帖子返回的內容卡片,例如視頻或連結,存在時可用。
page_info.type string | integer 以數字代碼或文本標籤返回的卡片類型。
page_info.object_type string 卡片關聯的內容對象類型標籤。
page_info.object_id string 卡片關聯的內容對象 ID。
page_info.page_title string 內容卡片展示的標題。
page_info.content1 string 內容卡片返回的第一行文字。
page_info.content2 string 內容卡片返回的第二行文字。
page_info.page_pic string 內容卡片返回的圖片地址。
page_info.page_url string 內容卡片返回的打開連結。
page_info.media_info object 隨卡片返回的視頻元資料,存在時可用。
page_info.media_info.media_id string 微博返回的視頻媒體標識。
page_info.media_info.media_type string 返回的視頻媒體類型標籤。
page_info.media_info.name string 此媒體條目的名稱。
page_info.media_info.video_title string 此媒體條目返回的視頻標題,存在時可用。
page_info.media_info.format string 視頻返回的媒體格式。
page_info.media_info.video_orientation string 微博返回的視頻畫面方向標籤。
page_info.media_info.video_publish_time integer 視頻發佈時間,Unix 時間戳,單位為秒。
page_info.media_info.duration integer 微博返回的此媒體條目的視頻時長值。
page_info.media_info.stream_url string 微博返回的視頻流地址。
page_info.media_info.stream_url_hd string 微博返回的高清視頻流地址。
page_info.media_info.mp4_sd_url string 微博返回的標清 MP4 地址。
page_info.media_info.mp4_hd_url string 微博返回的高清 MP4 地址。
page_info.media_info.playback_list array 微博返回的視頻播放版本。
page_info.media_info.playback_list[] object 返回的一個視頻播放版本。
page_info.media_info.playback_list[].play_info object 此播放版本返回的媒體屬性。
page_info.media_info.playback_list[].play_info.width integer 視頻畫面寬度,單位為像素。
page_info.media_info.playback_list[].play_info.height integer 視頻畫面高度,單位為像素。
page_info.media_info.playback_list[].play_info.fps integer 此播放版本返回的視頻幀率。
page_info.media_info.playback_list[].play_info.bitrate integer 此播放版本返回的碼率值。
page_info.media_info.playback_list[].play_info.duration number 此播放版本返回的時長值。
page_info.media_info.playback_list[].play_info.mime string 此播放版本返回的媒體 MIME 類型。
page_info.media_info.playback_list[].play_info.label string 此播放版本返回的標籤。
page_info.media_info.playback_list[].play_info.quality_label string 此播放版本返回的畫質標籤。
page_info.media_info.playback_list[].play_info.video_codecs string 此播放版本返回的視頻編碼文本。
page_info.media_info.playback_list[].play_info.audio_codecs string 此播放版本返回的音頻編碼文本。
page_info.media_info.playback_list[].play_info.audio_channels integer 此播放版本返回的音頻聲道數。
page_info.media_info.playback_list[].play_info.url string 此播放版本返回的播放地址。
page_info.media_info.playback_list[].play_info.urls array 此播放版本返回的播放地址列表。
page_info.media_info.playback_list[].play_info.urls[] string 此播放版本的一個播放地址。
page_info.media_info.playback_list[].play_info.quality_desc string 該播放版本的清晰度說明。
page_info.media_info.playback_list[].play_info.audio_sample_rate integer 該播放版本返回的音頻採樣率。
page_info.media_info.playback_list[].play_info.audio_bits_per_sample integer 該播放版本返回的每個音頻樣本的位數。
page_info.media_info.playback_list[].play_info.audio_sample_fmt string 該播放版本返回的音頻採樣格式。
page_info.media_info.playback_list[].play_info.color_transfer string 該播放版本的色彩傳遞特性標籤。
page_info.media_info.playback_list[].play_info.dolby_atmos boolean 該播放版本是否標為杜比全景聲。
page_info.media_info.playback_list[].play_info.protocol string 該版本的播放協議標籤。
page_info.media_info.big_pic_info object 媒體條目返回的封面圖版本。
page_info.media_info.big_pic_info.pic_big object 大圖版本。
page_info.media_info.big_pic_info.pic_big.url string 這個圖片版本的地址。
page_info.media_info.big_pic_info.pic_big.width integer 圖片寬度,單位為像素。
page_info.media_info.big_pic_info.pic_big.height integer 圖片高度,單位為像素。
page_info.media_info.big_pic_info.pic_middle object 中等尺寸圖片版本。
page_info.media_info.big_pic_info.pic_middle.url string 這個圖片版本的地址。
page_info.media_info.big_pic_info.pic_middle.width integer 圖片寬度,單位為像素。
page_info.media_info.big_pic_info.pic_middle.height integer 圖片高度,單位為像素。
page_info.media_info.big_pic_info.pic_small object 小圖版本。
page_info.media_info.big_pic_info.pic_small.url string 這個圖片版本的地址。
page_info.media_info.big_pic_info.pic_small.width integer 圖片寬度,單位為像素。
page_info.media_info.big_pic_info.pic_small.height integer 圖片高度,單位為像素。
page_info.media_info.h265_mp4_hd string 高清 H.265 MP4 地址。
page_info.media_info.h265_mp4_ld string 低清 H.265 MP4 地址。
page_info.media_info.mp4_720p_mp4 string 媒體條目的 720p MP4 地址。
page_info.media_info.h5_url string 用於在網頁打開媒體條目的連結。
page_info.media_info.author_info object 媒體條目所關聯作者的公開資料。
page_info.media_info.author_info.id integer 作者的微博數字用戶 ID。
page_info.media_info.author_info.idstr string 以文本表示的作者微博用戶 ID。
page_info.media_info.author_info.screen_name string 微博帳號顯示名稱。
page_info.media_info.author_info.profile_image_url string 用戶資料的頭像地址。
page_info.media_info.author_info.avatar_large string 較大版本的個人資料頭像地址。
page_info.media_info.author_info.avatar_hd string 高清頭像地址。
page_info.media_info.author_info.profile_url string 微博返回的個人主頁連結。
page_info.media_info.author_info.verified boolean 微博是否將此帳號標記為已認證。
page_info.media_info.author_info.verified_type integer 微博記錄的帳號認證數字類型。
page_info.media_info.author_info.verified_type_ext integer 補充的帳號認證數字分類。
page_info.media_info.author_info.description string 公開個人簡介。
page_info.media_info.author_info.location string 公開資料顯示的地區名稱。
page_info.media_info.author_info.followers_count integer 公開資料中的粉絲數。
page_info.media_info.author_info.followers_count_str string 與數字粉絲數一起返回的粉絲數展示文本。
page_info.media_info.author_info.friends_count integer 公開資料中的關注數。
page_info.media_info.author_info.statuses_count integer 公開資料中的博文數。
page_info.media_info.author_info.verified_reason string 公開資料中的認證說明。
page_info.media_info.author_info.status_total_counter object 作者資料附帶的公開互動計數文本。
page_info.media_info.author_info.status_total_counter.comment_cnt string 作者資料裏的評論數,以字符串表示。
page_info.media_info.author_info.status_total_counter.like_cnt string 作者資料裏的點贊數,以字符串表示。
page_info.media_info.author_info.status_total_counter.repost_cnt string 作者資料裏的轉發數,以字符串表示。
page_info.media_info.author_info.status_total_counter.total_cnt string 作者資料裏的總互動數,以字符串表示。
page_info.media_info.author_info.status_total_counter.total_cnt_format string 作者資料用於展示的格式化總互動數。
page_info.page_desc string 附帶內容卡片的展示描述。
page_info.short_url string 附帶內容卡片返回的短連結。
page_info.page_pc_url string 用於在桌面端打開內容卡片的連結。
page_info.cards array 內容卡片附帶的其他卡片,存在時返回。
page_info.cards[] object 父內容卡片附帶的一張卡片。
page_info.cards[].object_id string 卡片關聯的內容對象 ID。
page_info.cards[].object_type string 卡片關聯的內容對象類型標籤。
page_info.cards[].page_title string 內容卡片展示的標題。
page_info.cards[].page_desc string 附帶內容卡片的展示描述。
page_info.cards[].page_pic string 內容卡片返回的圖片地址。
page_info.cards[].page_url string 內容卡片返回的打開連結。
page_info.cards[].content1 string 內容卡片返回的第一行文字。
page_info.cards[].content2 string 內容卡片返回的第二行文字。
page_info.pic_info object 內容卡片返回的預覽圖版本。
page_info.pic_info.pic_big object 大圖版本。
page_info.pic_info.pic_big.url string 這個圖片版本的地址。
page_info.pic_info.pic_big.width string 圖片顯示寬度,以字符串表示的像素值。
page_info.pic_info.pic_big.height string 圖片顯示高度,以字符串表示的像素值。
page_info.pic_info.pic_middle object 中等尺寸圖片版本。
page_info.pic_info.pic_middle.url string 這個圖片版本的地址。
page_info.pic_info.pic_middle.width string 圖片顯示寬度,以字符串表示的像素值。
page_info.pic_info.pic_middle.height string 圖片顯示高度,以字符串表示的像素值。
page_info.pic_info.pic_small object 小圖版本。
page_info.pic_info.pic_small.url string 這個圖片版本的地址。
page_info.pic_info.pic_small.width string 圖片顯示寬度,以字符串表示的像素值。
page_info.pic_info.pic_small.height string 圖片顯示高度,以字符串表示的像素值。
話題、連結與標籤18 個欄位

data.data.list[]

欄位 類型 說明
topic_struct array 隨帖子返回的話題,存在時可用。
topic_struct[] object 隨帖子返回的一條話題。
topic_struct[].topic_title string 話題的展示標題。
topic_struct[].topic_url string 打開話題的連結。
url_struct array 隨帖子返回的連結,存在時可用。
url_struct[] object 隨帖子返回的一條連結。
url_struct[].url_title string 連結返回的展示標題。
url_struct[].short_url string 連結條目返回的短連結。
url_struct[].long_url string 連結條目返回的展開地址。
url_struct[].url_type string | integer 以數字代碼或文本標籤返回的連結類型。
url_struct[].ori_url string 博文返回的原始連結地址。
url_struct[].h5_target_url string 該連結的網頁目標地址,存在時返回。
url_struct[].url_type_pic string 該連結類型對應的圖標地址。
tag_struct array 博文附帶的標籤,存在時返回。
tag_struct[] object 博文附帶的一條標籤。
tag_struct[].tag_name string 標籤的展示名稱。
tag_struct[].tag_scheme string 用於打開該標籤的連結。
tag_struct[].url_type_pic string 標籤的圖標地址。
原博文90 個欄位

data.data.list[].retweeted_status

轉發時附帶的原帖信息,存在時可用。

欄位 類型 說明
id integer 微博帖子的數字 ID。
idstr string 以文本表示的微博帖子 ID。
mid string 以文本表示的微博消息 ID。
mblogid string 微博帖子的字母數字短 ID。
created_at string 發佈時間,保留微博原始時間格式。
text string 微博返回的帖子正文,可能含 HTML 標記。
text_raw string 此帖的原始正文文本,存在時可用。
textLength integer 微博返回的帖子文本長度。
source string 微博展示的帖子發佈來源標籤,存在時可用。
region_name string 帖子展示的地區標籤。
isLongText boolean 微博是否將此帖標記為長文。
is_paid boolean 微博是否將此帖標記為付費內容。
visible object 此帖返回的可見性設置。
visible.type integer 微博返回的可見性數字代碼。
visible.list_id integer 關聯可見性名單的數字 ID。
user object | null 原博文作者的公開資料,可能為 null。
user.id integer 作者的微博數字用戶 ID。
user.idstr string 以文本表示的作者微博用戶 ID。
user.screen_name string 微博帳號顯示名稱。
user.profile_image_url string 用戶資料的頭像地址。
user.avatar_large string 較大版本的個人資料頭像地址。
user.avatar_hd string 高清頭像地址。
user.profile_url string 微博返回的個人主頁連結。
user.verified boolean 微博是否將此帳號標記為已認證。
user.verified_type integer 微博記錄的帳號認證數字類型。
user.verified_type_ext integer 補充的帳號認證數字分類。
user.status_total_counter object 作者資料附帶的公開互動計數文本。
user.status_total_counter.comment_cnt string 作者資料裏的評論數,以字符串表示。
user.status_total_counter.like_cnt string 作者資料裏的點贊數,以字符串表示。
user.status_total_counter.repost_cnt string 作者資料裏的轉發數,以字符串表示。
user.status_total_counter.total_cnt string 作者資料裏的總互動數,以字符串表示。
user.status_total_counter.total_cnt_format string 作者資料用於展示的格式化總互動數。
reposts_count integer 微博返回的轉發數。
comments_count integer 微博返回的評論數。
attitudes_count integer 微博返回的表態數。
pic_num integer 此帖返回的圖片數量。
pic_ids array 帖子附帶的圖片 ID 列表,可能為空。
pic_ids[] string 微博圖片 ID。
pic_infos object 以圖片 ID 為鍵的圖片詳情。每項可能包含多個圖片版本。
pic_infos.{key} object 以該鍵標識的圖片詳情條目。
pic_infos.{key}.pic_id string 微博圖片 ID。
pic_infos.{key}.type string 此圖片返回的媒體類型標籤。
pic_infos.{key}.thumbnail object 縮略圖版本。
pic_infos.{key}.thumbnail.url string 此圖片版本的地址。
pic_infos.{key}.thumbnail.width integer 圖片寬度,單位為像素。
pic_infos.{key}.thumbnail.height integer 圖片高度,單位為像素。
pic_infos.{key}.thumbnail.type string | null 此圖片版本的媒體類型標籤,存在時可用。
pic_infos.{key}.bmiddle object 中等尺寸圖片版本。
pic_infos.{key}.bmiddle.url string 此圖片版本的地址。
pic_infos.{key}.bmiddle.width integer 圖片寬度,單位為像素。
pic_infos.{key}.bmiddle.height integer 圖片高度,單位為像素。
pic_infos.{key}.bmiddle.type string | null 此圖片版本的媒體類型標籤,存在時可用。
pic_infos.{key}.large object 大圖版本。
pic_infos.{key}.large.url string 此圖片版本的地址。
pic_infos.{key}.large.width integer 圖片寬度,單位為像素。
pic_infos.{key}.large.height integer 圖片高度,單位為像素。
pic_infos.{key}.large.type string | null 此圖片版本的媒體類型標籤,存在時可用。
pic_infos.{key}.largecover object 大封面圖版本。
pic_infos.{key}.largecover.url string 此圖片版本的地址。
pic_infos.{key}.largecover.width integer 圖片寬度,單位為像素。
pic_infos.{key}.largecover.height integer 圖片高度,單位為像素。
pic_infos.{key}.largecover.type string | null 此圖片版本的媒體類型標籤,存在時可用。
pic_infos.{key}.largest object largest 欄位返回的圖片版本。
pic_infos.{key}.largest.url string 此圖片版本的地址。
pic_infos.{key}.largest.width integer 圖片寬度,單位為像素。
pic_infos.{key}.largest.height integer 圖片高度,單位為像素。
pic_infos.{key}.largest.type string | null 此圖片版本的媒體類型標籤,存在時可用。
pic_infos.{key}.mw2000 object mw2000 欄位返回的圖片版本。
pic_infos.{key}.mw2000.url string 此圖片版本的地址。
pic_infos.{key}.mw2000.width integer 圖片寬度,單位為像素。
pic_infos.{key}.mw2000.height integer 圖片高度,單位為像素。
pic_infos.{key}.mw2000.type string | null 此圖片版本的媒體類型標籤,存在時可用。
pic_infos.{key}.original object 原圖欄位返回的圖片版本。
pic_infos.{key}.original.url string 此圖片版本的地址。
pic_infos.{key}.original.width integer 圖片寬度,單位為像素。
pic_infos.{key}.original.height integer 圖片高度,單位為像素。
pic_infos.{key}.original.type string | null 此圖片版本的媒體類型標籤,存在時可用。
pic_infos.{key}.focus_point object 圖片返回的焦點區域。
pic_infos.{key}.focus_point.left integer 微博返回的圖片焦點區域左邊座標。
pic_infos.{key}.focus_point.top number 微博返回的圖片焦點區域上邊座標。
pic_infos.{key}.focus_point.width integer 微博返回的圖片焦點區域寬度。
pic_infos.{key}.focus_point.height number 微博返回的圖片焦點區域高度。
pic_focus_point array 附帶圖片返回的焦點區域列表。
pic_focus_point[] object 一張圖片對應的焦點區域。
pic_focus_point[].pic_id string 微博圖片 ID。
pic_focus_point[].focus_point object 圖片返回的焦點區域。
pic_focus_point[].focus_point.left integer 微博返回的圖片焦點區域左邊座標。
pic_focus_point[].focus_point.top number 微博返回的圖片焦點區域上邊座標。
pic_focus_point[].focus_point.width integer 微博返回的圖片焦點區域寬度。
pic_focus_point[].focus_point.height number 微博返回的圖片焦點區域高度。

回應示例 ​

正在載入回應範例…