Skip to content

微博用户发布帖子 API (V1) ​

GET
接口健康状态
健康 可用 少量可用 基本不可用 暂无数据
正在加载健康状态…

检索由UID标识的微博用户发布的帖子,使用页码和第一页后必需的sinceId游标。用于浏览账号的发布历史或继续翻阅帖子feed。

请求参数 ​

参数名位置类型必填默认值说明
tokenquerystring是-API 访问令牌。
uidquerystring是-微博用户ID (UID)。
pagequeryinteger否1页码,从1开始。
sinceIdquerystring否-分页游标(since_id)。当 page > 1 时必须提供。

代码示例 ​

bash
curl --max-time 120 -X GET 'https://api.justoneapi.com/api/weibo/get-user-post/v1?token=YOUR_API_KEY&uid=VALUE'
text
我想使用 JustOneAPI 提供的“用户发布帖子 (V1)”接口。
接入地址: https://api.justoneapi.com。
接口路径: /api/weibo/get-user-post/v1?token=YOUR_API_KEY&uid=VALUE
接口地址: BASE_URL + /api/weibo/get-user-post/v1?token=YOUR_API_KEY&uid=VALUE
HTTP 方法: GET
身份验证: 在 URL 中传入 token 查询参数。
OpenAPI 定义: https://docs.justoneapi.com/openapi/weibo/user-published-posts-v1-zh.json

请求参数说明:
- token (query): API 访问令牌。 (必填)
- uid (query): 微博用户ID (UID)。 (必填)
- page (query): 页码,从1开始。
- sinceId (query): 分页游标(since_id)。当 page > 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/get-user-post/v1?token=YOUR_API_KEY&uid=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/get-user-post/v1?token=YOUR_API_KEY&uid=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/get-user-post/v1?token=YOUR_API_KEY&uid=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/get-user-post/v1?token=YOUR_API_KEY&uid=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/get-user-post/v1?token=YOUR_API_KEY&uid=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)的主要返回字段。

微博内容19 个字段

data.data.list[]

当前页返回的帖子。只需指定作者的帖子时,请将每条记录的 user.idstr 或转成文本的 user.id 与 uid 比较。

字段类型说明
idinteger微博帖子的数字 ID。
idstrstring以文本表示的微博帖子 ID。
midstring以文本表示的微博消息 ID。
mblogidstring微博帖子的字母数字短 ID。
created_atstring发布时间,保留微博原始时间格式。
textstring微博返回的帖子正文,可能含 HTML 标记。
text_rawstring此帖的原始正文文本,存在时可用。
textLengthinteger微博返回的帖子文本长度。
sourcestring微博展示的帖子发布来源标签,存在时可用。
region_namestring帖子展示的地区标签。
isLongTextboolean微博是否将此帖标记为长文。
isTopinteger此条目返回的置顶数字标记。
isAdboolean | integer以布尔值或数字返回的广告标记。
is_paidboolean微博是否将此帖标记为付费内容。
can_editboolean当前响应上下文是否可编辑帖子。
favoritedboolean当前响应上下文是否标记为已收藏此帖。
visibleobject此帖返回的可见性设置。
visible.typeinteger微博返回的可见性数字代码。
visible.list_idinteger关联可见性名单的数字 ID。
查询状态2 个字段

data

微博帖子列表响应。仅返回状态时,可能没有帖子列表数据。

字段类型说明
okinteger微博帖子列表状态。值为 1 时可返回帖子列表,值为 0 时可能只返回状态消息。
messagestring微博返回的状态消息,存在时可用。
列表与分页7 个字段

data.data

微博帖子列表的一页数据及分页信息,存在时可用。

字段类型说明
since_idstring此页返回的分页游标。请求下一页时,将它原样作为 sinceId 传入。
totalinteger微博返回的帖子列表总量。当前页条目数以 list 的长度为准。
status_visibleinteger微博返回的帖子列表可见性数字代码。
bottom_tips_visibleboolean帖子列表底部提示是否标记为展示。
bottom_tips_textstring帖子列表底部的提示文字,存在时可用。
topicListarray随帖子列表返回的话题列表,可能为空。
list[]object列表中的一条帖子记录。
作者资料12 个字段

data.data.list[].user

此条目附带的公开作者信息。

字段类型说明
idinteger作者的微博数字用户 ID。
idstrstring以文本表示的作者微博用户 ID。
screen_namestring微博账号显示名称。
profile_image_urlstring用户资料的头像地址。
avatar_largestring较大版本的个人资料头像地址。
avatar_hdstring高清头像地址。
profile_urlstring微博返回的个人主页链接。
verifiedboolean微博是否将此账号标记为已认证。
verified_typeinteger微博记录的账号认证数字类型。
verified_type_extinteger补充的账号认证数字分类。
followingboolean当前查看账号是否标记为已关注作者。
follow_meboolean作者是否标记为已关注当前查看账号。
互动数据4 个字段

data.data.list[]

字段类型说明
reposts_countinteger微博返回的转发数。
comments_countinteger微博返回的评论数。
attitudes_countinteger微博返回的表态数。
attitudes_statusinteger当前响应上下文的表态数字状态。
配图52 个字段

data.data.list[]

字段类型说明
pic_numinteger此帖返回的图片数量。
pic_idsarray帖子附带的图片 ID 列表,可能为空。
pic_ids[]string微博图片 ID。
pic_infosobject以图片 ID 为键的图片详情。每项可能包含多个图片版本。
pic_infos.{key}object以该键标识的图片详情条目。
pic_infos.{key}.pic_idstring微博图片 ID。
pic_infos.{key}.typestring此图片返回的媒体类型标签。
pic_infos.{key}.pic_statusinteger该图片返回的数字状态码。
pic_infos.{key}.videostring图片随附的动态视频地址,存在时可用。
pic_infos.{key}.video_hdstring图片随附的高清动态视频地址,存在时可用。
pic_infos.{key}.thumbnailobject缩略图版本。
pic_infos.{key}.thumbnail.urlstring此图片版本的地址。
pic_infos.{key}.thumbnail.widthinteger图片宽度,单位为像素。
pic_infos.{key}.thumbnail.heightinteger图片高度,单位为像素。
pic_infos.{key}.thumbnail.typestring此图片版本的媒体类型标签,存在时可用。
pic_infos.{key}.thumbnail.cut_typeinteger此图片版本返回的裁剪类型数字代码。
pic_infos.{key}.bmiddleobject中等尺寸图片版本。
pic_infos.{key}.bmiddle.urlstring此图片版本的地址。
pic_infos.{key}.bmiddle.widthinteger图片宽度,单位为像素。
pic_infos.{key}.bmiddle.heightinteger图片高度,单位为像素。
pic_infos.{key}.bmiddle.typestring此图片版本的媒体类型标签,存在时可用。
pic_infos.{key}.bmiddle.cut_typeinteger此图片版本返回的裁剪类型数字代码。
pic_infos.{key}.largeobject大图版本。
pic_infos.{key}.large.urlstring此图片版本的地址。
pic_infos.{key}.large.widthinteger图片宽度,单位为像素。
pic_infos.{key}.large.heightinteger图片高度,单位为像素。
pic_infos.{key}.large.typestring此图片版本的媒体类型标签,存在时可用。
pic_infos.{key}.large.cut_typeinteger此图片版本返回的裁剪类型数字代码。
pic_infos.{key}.largecoverobject大封面图版本。
pic_infos.{key}.largecover.urlstring此图片版本的地址。
pic_infos.{key}.largecover.widthinteger图片宽度,单位为像素。
pic_infos.{key}.largecover.heightinteger图片高度,单位为像素。
pic_infos.{key}.largecover.typestring此图片版本的媒体类型标签,存在时可用。
pic_infos.{key}.largecover.cut_typeinteger此图片版本返回的裁剪类型数字代码。
pic_infos.{key}.largestobjectlargest 字段返回的图片版本。
pic_infos.{key}.largest.urlstring此图片版本的地址。
pic_infos.{key}.largest.widthinteger图片宽度,单位为像素。
pic_infos.{key}.largest.heightinteger图片高度,单位为像素。
pic_infos.{key}.largest.typestring此图片版本的媒体类型标签,存在时可用。
pic_infos.{key}.largest.cut_typeinteger此图片版本返回的裁剪类型数字代码。
pic_infos.{key}.mw2000objectmw2000 字段返回的图片版本。
pic_infos.{key}.mw2000.urlstring此图片版本的地址。
pic_infos.{key}.mw2000.widthinteger图片宽度,单位为像素。
pic_infos.{key}.mw2000.heightinteger图片高度,单位为像素。
pic_infos.{key}.mw2000.typestring此图片版本的媒体类型标签,存在时可用。
pic_infos.{key}.mw2000.cut_typeinteger此图片版本返回的裁剪类型数字代码。
pic_infos.{key}.originalobject原图字段返回的图片版本。
pic_infos.{key}.original.urlstring此图片版本的地址。
pic_infos.{key}.original.widthinteger图片宽度,单位为像素。
pic_infos.{key}.original.heightinteger图片高度,单位为像素。
pic_infos.{key}.original.typestring此图片版本的媒体类型标签,存在时可用。
pic_infos.{key}.original.cut_typeinteger此图片版本返回的裁剪类型数字代码。
卡片与视频38 个字段

data.data.list[].page_info

随帖子返回的内容卡片,例如视频或链接,存在时可用。

字段类型说明
typeinteger | string以数字代码或文本标签返回的卡片类型。
object_typestring卡片关联的内容对象类型标签。
object_idstring卡片关联的内容对象 ID。
page_titlestring内容卡片展示的标题。
content1string内容卡片返回的第一行文字。
content2string内容卡片返回的第二行文字。
page_picstring内容卡片返回的图片地址。
page_urlstring内容卡片返回的打开链接。
media_infoobject随卡片返回的视频元数据,存在时可用。
media_info.media_idstring微博返回的视频媒体标识。
media_info.media_typestring返回的视频媒体类型标签。
media_info.namestring此媒体条目的名称。
media_info.video_titlestring此媒体条目返回的视频标题,存在时可用。
media_info.formatstring视频返回的媒体格式。
media_info.video_orientationstring微博返回的视频画面方向标签。
media_info.video_publish_timeinteger视频发布时间,Unix 时间戳,单位为秒。
media_info.durationinteger微博返回的此媒体条目的视频时长值。
media_info.stream_urlstring微博返回的视频流地址。
media_info.stream_url_hdstring微博返回的高清视频流地址。
media_info.mp4_sd_urlstring微博返回的标清 MP4 地址。
media_info.mp4_hd_urlstring微博返回的高清 MP4 地址。
media_info.playback_listarray微博返回的视频播放版本。
media_info.playback_list[]object返回的一个视频播放版本。
media_info.playback_list[].play_infoobject此播放版本返回的媒体属性。
media_info.playback_list[].play_info.widthinteger视频画面宽度,单位为像素。
media_info.playback_list[].play_info.heightinteger视频画面高度,单位为像素。
media_info.playback_list[].play_info.fpsinteger此播放版本返回的视频帧率。
media_info.playback_list[].play_info.bitrateinteger此播放版本返回的码率值。
media_info.playback_list[].play_info.durationnumber此播放版本返回的时长值。
media_info.playback_list[].play_info.mimestring此播放版本返回的媒体 MIME 类型。
media_info.playback_list[].play_info.labelstring此播放版本返回的标签。
media_info.playback_list[].play_info.quality_labelstring此播放版本返回的画质标签。
media_info.playback_list[].play_info.video_codecsstring此播放版本返回的视频编码文本。
media_info.playback_list[].play_info.audio_codecsstring此播放版本返回的音频编码文本。
media_info.playback_list[].play_info.audio_channelsinteger此播放版本返回的音频声道数。
media_info.playback_list[].play_info.urlstring此播放版本返回的播放地址。
media_info.playback_list[].play_info.urlsarray此播放版本返回的播放地址列表。
media_info.playback_list[].play_info.urls[]string此播放版本的一个播放地址。
话题与链接11 个字段

data.data.list[]

字段类型说明
topic_structarray随帖子返回的话题,存在时可用。
topic_struct[]object随帖子返回的一条话题。
topic_struct[].titlestring话题条目返回的标题文字。
topic_struct[].topic_titlestring话题的展示标题。
topic_struct[].topic_urlstring打开话题的链接。
url_structarray随帖子返回的链接,存在时可用。
url_struct[]object随帖子返回的一条链接。
url_struct[].url_titlestring链接返回的展示标题。
url_struct[].short_urlstring链接条目返回的短链接。
url_struct[].long_urlstring链接条目返回的展开地址。
url_struct[].url_typeinteger | string以数字代码或文本标签返回的链接类型。
转发原文22 个字段

data.data.list[].retweeted_status

转发时附带的原帖信息,存在时可用。

字段类型说明
idinteger微博帖子的数字 ID。
idstrstring以文本表示的微博帖子 ID。
midstring以文本表示的微博消息 ID。
mblogidstring微博帖子的字母数字短 ID。
created_atstring发布时间,保留微博原始时间格式。
textstring微博返回的帖子正文,可能含 HTML 标记。
text_rawstring此帖的原始正文文本,存在时可用。
textLengthinteger微博返回的帖子文本长度。
sourcestring微博展示的帖子发布来源标签,存在时可用。
region_namestring帖子展示的地区标签。
isLongTextboolean微博是否将此帖标记为长文。
isAdboolean以布尔值或数字返回的广告标记。
is_paidboolean微博是否将此帖标记为付费内容。
can_editboolean当前响应上下文是否可编辑帖子。
favoritedboolean当前响应上下文是否标记为已收藏此帖。
visibleobject此帖返回的可见性设置。
visible.typeinteger微博返回的可见性数字代码。
visible.list_idinteger关联可见性名单的数字 ID。
reposts_countinteger微博返回的转发数。
comments_countinteger微博返回的评论数。
attitudes_countinteger微博返回的表态数。
attitudes_statusinteger当前响应上下文的表态数字状态。
原文作者12 个字段

data.data.list[].retweeted_status.user

此条目附带的公开作者信息。

字段类型说明
idinteger作者的微博数字用户 ID。
idstrstring以文本表示的作者微博用户 ID。
screen_namestring微博账号显示名称。
profile_image_urlstring用户资料的头像地址。
avatar_largestring较大版本的个人资料头像地址。
avatar_hdstring高清头像地址。
profile_urlstring微博返回的个人主页链接。
verifiedboolean微博是否将此账号标记为已认证。
verified_typeinteger微博记录的账号认证数字类型。
verified_type_extinteger补充的账号认证数字分类。
followingboolean当前查看账号是否标记为已关注作者。
follow_meboolean作者是否标记为已关注当前查看账号。
原文配图52 个字段

data.data.list[].retweeted_status

字段类型说明
pic_numinteger此帖返回的图片数量。
pic_idsarray帖子附带的图片 ID 列表,可能为空。
pic_ids[]string微博图片 ID。
pic_infosobject以图片 ID 为键的图片详情。每项可能包含多个图片版本。
pic_infos.{key}object以该键标识的图片详情条目。
pic_infos.{key}.pic_idstring微博图片 ID。
pic_infos.{key}.typestring此图片返回的媒体类型标签。
pic_infos.{key}.pic_statusinteger该图片返回的数字状态码。
pic_infos.{key}.videostring图片随附的动态视频地址,存在时可用。
pic_infos.{key}.video_hdstring图片随附的高清动态视频地址,存在时可用。
pic_infos.{key}.thumbnailobject缩略图版本。
pic_infos.{key}.thumbnail.urlstring此图片版本的地址。
pic_infos.{key}.thumbnail.widthinteger图片宽度,单位为像素。
pic_infos.{key}.thumbnail.heightinteger图片高度,单位为像素。
pic_infos.{key}.thumbnail.typestring | null此图片版本的媒体类型标签,存在时可用。
pic_infos.{key}.thumbnail.cut_typeinteger此图片版本返回的裁剪类型数字代码。
pic_infos.{key}.bmiddleobject中等尺寸图片版本。
pic_infos.{key}.bmiddle.urlstring此图片版本的地址。
pic_infos.{key}.bmiddle.widthinteger图片宽度,单位为像素。
pic_infos.{key}.bmiddle.heightinteger图片高度,单位为像素。
pic_infos.{key}.bmiddle.typestring | null此图片版本的媒体类型标签,存在时可用。
pic_infos.{key}.bmiddle.cut_typeinteger此图片版本返回的裁剪类型数字代码。
pic_infos.{key}.largeobject大图版本。
pic_infos.{key}.large.urlstring此图片版本的地址。
pic_infos.{key}.large.widthinteger图片宽度,单位为像素。
pic_infos.{key}.large.heightinteger图片高度,单位为像素。
pic_infos.{key}.large.typestring | null此图片版本的媒体类型标签,存在时可用。
pic_infos.{key}.large.cut_typeinteger此图片版本返回的裁剪类型数字代码。
pic_infos.{key}.largecoverobject大封面图版本。
pic_infos.{key}.largecover.urlstring此图片版本的地址。
pic_infos.{key}.largecover.widthinteger图片宽度,单位为像素。
pic_infos.{key}.largecover.heightinteger图片高度,单位为像素。
pic_infos.{key}.largecover.typestring | null此图片版本的媒体类型标签,存在时可用。
pic_infos.{key}.largecover.cut_typeinteger此图片版本返回的裁剪类型数字代码。
pic_infos.{key}.largestobjectlargest 字段返回的图片版本。
pic_infos.{key}.largest.urlstring此图片版本的地址。
pic_infos.{key}.largest.widthinteger图片宽度,单位为像素。
pic_infos.{key}.largest.heightinteger图片高度,单位为像素。
pic_infos.{key}.largest.typestring | null此图片版本的媒体类型标签,存在时可用。
pic_infos.{key}.largest.cut_typeinteger此图片版本返回的裁剪类型数字代码。
pic_infos.{key}.mw2000objectmw2000 字段返回的图片版本。
pic_infos.{key}.mw2000.urlstring此图片版本的地址。
pic_infos.{key}.mw2000.widthinteger图片宽度,单位为像素。
pic_infos.{key}.mw2000.heightinteger图片高度,单位为像素。
pic_infos.{key}.mw2000.typestring | null此图片版本的媒体类型标签,存在时可用。
pic_infos.{key}.mw2000.cut_typeinteger此图片版本返回的裁剪类型数字代码。
pic_infos.{key}.originalobject原图字段返回的图片版本。
pic_infos.{key}.original.urlstring此图片版本的地址。
pic_infos.{key}.original.widthinteger图片宽度,单位为像素。
pic_infos.{key}.original.heightinteger图片高度,单位为像素。
pic_infos.{key}.original.typestring | null此图片版本的媒体类型标签,存在时可用。
pic_infos.{key}.original.cut_typeinteger此图片版本返回的裁剪类型数字代码。
原文卡片与视频38 个字段

data.data.list[].retweeted_status.page_info

随帖子返回的内容卡片,例如视频或链接,存在时可用。

字段类型说明
typeinteger | string以数字代码或文本标签返回的卡片类型。
object_typestring卡片关联的内容对象类型标签。
object_idstring卡片关联的内容对象 ID。
page_titlestring内容卡片展示的标题。
content1string内容卡片返回的第一行文字。
content2string内容卡片返回的第二行文字。
page_picstring内容卡片返回的图片地址。
page_urlstring内容卡片返回的打开链接。
media_infoobject随卡片返回的视频元数据,存在时可用。
media_info.media_idstring微博返回的视频媒体标识。
media_info.media_typestring返回的视频媒体类型标签。
media_info.namestring此媒体条目的名称。
media_info.video_titlestring此媒体条目返回的视频标题,存在时可用。
media_info.formatstring视频返回的媒体格式。
media_info.video_orientationstring微博返回的视频画面方向标签。
media_info.video_publish_timeinteger视频发布时间,Unix 时间戳,单位为秒。
media_info.durationinteger微博返回的此媒体条目的视频时长值。
media_info.stream_urlstring微博返回的视频流地址。
media_info.stream_url_hdstring微博返回的高清视频流地址。
media_info.mp4_sd_urlstring微博返回的标清 MP4 地址。
media_info.mp4_hd_urlstring微博返回的高清 MP4 地址。
media_info.playback_listarray微博返回的视频播放版本。
media_info.playback_list[]object返回的一个视频播放版本。
media_info.playback_list[].play_infoobject此播放版本返回的媒体属性。
media_info.playback_list[].play_info.widthinteger视频画面宽度,单位为像素。
media_info.playback_list[].play_info.heightinteger视频画面高度,单位为像素。
media_info.playback_list[].play_info.fpsinteger此播放版本返回的视频帧率。
media_info.playback_list[].play_info.bitrateinteger此播放版本返回的码率值。
media_info.playback_list[].play_info.durationnumber此播放版本返回的时长值。
media_info.playback_list[].play_info.mimestring此播放版本返回的媒体 MIME 类型。
media_info.playback_list[].play_info.labelstring此播放版本返回的标签。
media_info.playback_list[].play_info.quality_labelstring此播放版本返回的画质标签。
media_info.playback_list[].play_info.video_codecsstring此播放版本返回的视频编码文本。
media_info.playback_list[].play_info.audio_codecsstring此播放版本返回的音频编码文本。
media_info.playback_list[].play_info.audio_channelsinteger此播放版本返回的音频声道数。
media_info.playback_list[].play_info.urlstring此播放版本返回的播放地址。
media_info.playback_list[].play_info.urlsarray此播放版本返回的播放地址列表。
media_info.playback_list[].play_info.urls[]string此播放版本的一个播放地址。
原文混合媒体41 个字段

data.data.list[].retweeted_status.mix_media_info

随帖子返回的图文与视频混合附件。

字段类型说明
itemsarray混合媒体附件条目列表。
items[]object帖子中的一个混合媒体附件。
items[].typestring混合媒体附件的类型标签。
items[].dataobject此混合媒体附件的元数据。
items[].data.pic_idstring微博图片 ID。
items[].data.page_titlestring附件卡片的展示标题,存在时可用。
items[].data.media_infoobject此混合媒体附件的视频元数据,存在时可用。
items[].data.media_info.media_idstring微博返回的视频媒体标识。
items[].data.media_info.media_typestring返回的视频媒体类型标签。
items[].data.media_info.namestring此媒体条目的名称。
items[].data.media_info.formatstring视频返回的媒体格式。
items[].data.media_info.video_orientationstring微博返回的视频画面方向标签。
items[].data.media_info.video_publish_timeinteger视频发布时间,Unix 时间戳,单位为秒。
items[].data.media_info.durationinteger微博返回的此媒体条目的视频时长值。
items[].data.media_info.stream_urlstring微博返回的视频流地址。
items[].data.media_info.stream_url_hdstring微博返回的高清视频流地址。
items[].data.media_info.mp4_sd_urlstring微博返回的标清 MP4 地址。
items[].data.media_info.mp4_hd_urlstring微博返回的高清 MP4 地址。
items[].data.media_info.playback_listarray微博返回的视频播放版本。
items[].data.media_info.playback_list[]object返回的一个视频播放版本。
items[].data.media_info.playback_list[].play_infoobject此播放版本返回的媒体属性。
items[].data.media_info.playback_list[].play_info.widthinteger视频画面宽度,单位为像素。
items[].data.media_info.playback_list[].play_info.heightinteger视频画面高度,单位为像素。
items[].data.media_info.playback_list[].play_info.fpsinteger此播放版本返回的视频帧率。
items[].data.media_info.playback_list[].play_info.bitrateinteger此播放版本返回的码率值。
items[].data.media_info.playback_list[].play_info.durationnumber此播放版本返回的时长值。
items[].data.media_info.playback_list[].play_info.mimestring此播放版本返回的媒体 MIME 类型。
items[].data.media_info.playback_list[].play_info.labelstring此播放版本返回的标签。
items[].data.media_info.playback_list[].play_info.quality_labelstring此播放版本返回的画质标签。
items[].data.media_info.playback_list[].play_info.video_codecsstring此播放版本返回的视频编码文本。
items[].data.media_info.playback_list[].play_info.audio_codecsstring此播放版本返回的音频编码文本。
items[].data.media_info.playback_list[].play_info.audio_channelsinteger此播放版本返回的音频声道数。
items[].data.media_info.playback_list[].play_info.urlstring此播放版本返回的播放地址。
items[].data.media_info.playback_list[].play_info.urlsarray此播放版本返回的播放地址列表。
items[].data.media_info.playback_list[].play_info.urls[]string此播放版本的一个播放地址。
items[].data.thumbnailobject缩略图版本。
items[].data.thumbnail.urlstring此图片版本的地址。
items[].data.thumbnail.widthinteger图片宽度,单位为像素。
items[].data.thumbnail.heightinteger图片高度,单位为像素。
items[].data.thumbnail.typestring此图片版本的媒体类型标签,存在时可用。
items[].data.thumbnail.cut_typeinteger此图片版本返回的裁剪类型数字代码。

响应示例 ​

正在加载响应示例…