Skip to content

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

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

搜索特定微博用户发布的帖子,使用关键词、可选的日期范围和基于页面的分页。用于从已知账号查找历史帖子以进行话题研究或活动回顾。

请求参数 ​

参数名位置类型必填默认值说明
tokenquerystring是-API 访问令牌。
uidquerystring是-微博用户ID (UID)。
qquerystring是-搜索关键词。
startDayquerystring否-开始日期 (yyyy-MM-dd)。
endDayquerystring否-结束日期 (yyyy-MM-dd)。
pagequeryinteger否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.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

一页搜索结果。下方非空结果字段来自正式样例与归档响应的交叉验证。本轮实测确认的搜索结果列表为空。

字段类型说明
okinteger微博返回的内层状态。值为 1 时有搜索结果结构,值为 0 时可能只有状态。
data.totalinteger | string微博返回的匹配结果总数,可能是整数或数字字符串。当前页的条目数以 list 的长度为准。
博文17 个字段

data.data.list[]

字段类型说明
idinteger微博帖子的数字 ID。
idstrstring以文本表示的微博帖子 ID。
midstring以文本表示的微博消息 ID。
mblogidstring微博帖子的字母数字短 ID。
created_atstring发布时间,保留微博原始时间格式。
textstring微博返回的帖子正文,可能含 HTML 标记。
text_rawstring此帖的原始正文文本,存在时可用。
textLengthinteger微博返回的帖子文本长度。
sourcestring微博展示的帖子发布来源标签,存在时可用。
region_namestring帖子展示的地区标签。
isLongTextboolean微博是否将此帖标记为长文。
is_paidboolean微博是否将此帖标记为付费内容。
visibleobject此帖返回的可见性设置。
visible.typeinteger微博返回的可见性数字代码。
visible.list_idinteger关联可见性名单的数字 ID。
isAdboolean微博是否将这条博文标为广告。
edit_countinteger微博返回的博文编辑次数。
作者与互动20 个字段

data.data.list[]

字段类型说明
userobject此条目附带的公开作者信息。
user.idinteger作者的微博数字用户 ID。
user.idstrstring以文本表示的作者微博用户 ID。
user.screen_namestring微博账号显示名称。
user.profile_image_urlstring用户资料的头像地址。
user.avatar_largestring较大版本的个人资料头像地址。
user.avatar_hdstring高清头像地址。
user.profile_urlstring微博返回的个人主页链接。
user.verifiedboolean微博是否将此账号标记为已认证。
user.verified_typeinteger微博记录的账号认证数字类型。
user.verified_type_extinteger补充的账号认证数字分类。
user.status_total_counterobject作者资料附带的公开互动计数文本。
user.status_total_counter.comment_cntstring作者资料里的评论数,以字符串表示。
user.status_total_counter.like_cntstring作者资料里的点赞数,以字符串表示。
user.status_total_counter.repost_cntstring作者资料里的转发数,以字符串表示。
user.status_total_counter.total_cntstring作者资料里的总互动数,以字符串表示。
user.status_total_counter.total_cnt_formatstring作者资料用于展示的格式化总互动数。
reposts_countinteger微博返回的转发数。
comments_countinteger微博返回的评论数。
attitudes_countinteger微博返回的表态数。
图片48 个字段

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}.thumbnailobject缩略图版本。
pic_infos.{key}.thumbnail.urlstring此图片版本的地址。
pic_infos.{key}.thumbnail.widthinteger图片宽度,单位为像素。
pic_infos.{key}.thumbnail.heightinteger图片高度,单位为像素。
pic_infos.{key}.bmiddleobject中等尺寸图片版本。
pic_infos.{key}.bmiddle.urlstring此图片版本的地址。
pic_infos.{key}.bmiddle.widthinteger图片宽度,单位为像素。
pic_infos.{key}.bmiddle.heightinteger图片高度,单位为像素。
pic_infos.{key}.largeobject大图版本。
pic_infos.{key}.large.urlstring此图片版本的地址。
pic_infos.{key}.large.widthinteger图片宽度,单位为像素。
pic_infos.{key}.large.heightinteger图片高度,单位为像素。
pic_infos.{key}.largecoverobject大封面图版本。
pic_infos.{key}.largecover.urlstring此图片版本的地址。
pic_infos.{key}.largecover.widthinteger图片宽度,单位为像素。
pic_infos.{key}.largecover.heightinteger图片高度,单位为像素。
pic_infos.{key}.largestobjectlargest 字段返回的图片版本。
pic_infos.{key}.largest.urlstring此图片版本的地址。
pic_infos.{key}.largest.widthinteger图片宽度,单位为像素。
pic_infos.{key}.largest.heightinteger图片高度,单位为像素。
pic_infos.{key}.mw2000objectmw2000 字段返回的图片版本。
pic_infos.{key}.mw2000.urlstring此图片版本的地址。
pic_infos.{key}.mw2000.widthinteger图片宽度,单位为像素。
pic_infos.{key}.mw2000.heightinteger图片高度,单位为像素。
pic_infos.{key}.originalobject原图字段返回的图片版本。
pic_infos.{key}.original.urlstring此图片版本的地址。
pic_infos.{key}.original.widthinteger图片宽度,单位为像素。
pic_infos.{key}.original.heightinteger图片高度,单位为像素。
pic_infos.{key}.focus_pointobject图片返回的焦点区域。
pic_infos.{key}.focus_point.leftnumber微博返回的图片焦点区域左边坐标。
pic_infos.{key}.focus_point.topnumber微博返回的图片焦点区域上边坐标。
pic_infos.{key}.focus_point.widthnumber微博返回的图片焦点区域宽度。
pic_infos.{key}.focus_point.heightnumber微博返回的图片焦点区域高度。
pic_focus_pointarray附带图片返回的焦点区域列表。
pic_focus_point[]object一张图片对应的焦点区域。
pic_focus_point[].pic_idstring微博图片 ID。
pic_focus_point[].focus_pointobject图片返回的焦点区域。
pic_focus_point[].focus_point.leftnumber微博返回的图片焦点区域左边坐标。
pic_focus_point[].focus_point.topnumber微博返回的图片焦点区域上边坐标。
pic_focus_point[].focus_point.widthnumber微博返回的图片焦点区域宽度。
pic_focus_point[].focus_point.heightnumber微博返回的图片焦点区域高度。
内容卡片与视频113 个字段

data.data.list[]

字段类型说明
page_infoobject随帖子返回的内容卡片,例如视频或链接,存在时可用。
page_info.typestring | integer以数字代码或文本标签返回的卡片类型。
page_info.object_typestring卡片关联的内容对象类型标签。
page_info.object_idstring卡片关联的内容对象 ID。
page_info.page_titlestring内容卡片展示的标题。
page_info.content1string内容卡片返回的第一行文字。
page_info.content2string内容卡片返回的第二行文字。
page_info.page_picstring内容卡片返回的图片地址。
page_info.page_urlstring内容卡片返回的打开链接。
page_info.media_infoobject随卡片返回的视频元数据,存在时可用。
page_info.media_info.media_idstring微博返回的视频媒体标识。
page_info.media_info.media_typestring返回的视频媒体类型标签。
page_info.media_info.namestring此媒体条目的名称。
page_info.media_info.video_titlestring此媒体条目返回的视频标题,存在时可用。
page_info.media_info.formatstring视频返回的媒体格式。
page_info.media_info.video_orientationstring微博返回的视频画面方向标签。
page_info.media_info.video_publish_timeinteger视频发布时间,Unix 时间戳,单位为秒。
page_info.media_info.durationinteger微博返回的此媒体条目的视频时长值。
page_info.media_info.stream_urlstring微博返回的视频流地址。
page_info.media_info.stream_url_hdstring微博返回的高清视频流地址。
page_info.media_info.mp4_sd_urlstring微博返回的标清 MP4 地址。
page_info.media_info.mp4_hd_urlstring微博返回的高清 MP4 地址。
page_info.media_info.playback_listarray微博返回的视频播放版本。
page_info.media_info.playback_list[]object返回的一个视频播放版本。
page_info.media_info.playback_list[].play_infoobject此播放版本返回的媒体属性。
page_info.media_info.playback_list[].play_info.widthinteger视频画面宽度,单位为像素。
page_info.media_info.playback_list[].play_info.heightinteger视频画面高度,单位为像素。
page_info.media_info.playback_list[].play_info.fpsinteger此播放版本返回的视频帧率。
page_info.media_info.playback_list[].play_info.bitrateinteger此播放版本返回的码率值。
page_info.media_info.playback_list[].play_info.durationnumber此播放版本返回的时长值。
page_info.media_info.playback_list[].play_info.mimestring此播放版本返回的媒体 MIME 类型。
page_info.media_info.playback_list[].play_info.labelstring此播放版本返回的标签。
page_info.media_info.playback_list[].play_info.quality_labelstring此播放版本返回的画质标签。
page_info.media_info.playback_list[].play_info.video_codecsstring此播放版本返回的视频编码文本。
page_info.media_info.playback_list[].play_info.audio_codecsstring此播放版本返回的音频编码文本。
page_info.media_info.playback_list[].play_info.audio_channelsinteger此播放版本返回的音频声道数。
page_info.media_info.playback_list[].play_info.urlstring此播放版本返回的播放地址。
page_info.media_info.playback_list[].play_info.urlsarray此播放版本返回的播放地址列表。
page_info.media_info.playback_list[].play_info.urls[]string此播放版本的一个播放地址。
page_info.media_info.playback_list[].play_info.quality_descstring该播放版本的清晰度说明。
page_info.media_info.playback_list[].play_info.audio_sample_rateinteger该播放版本返回的音频采样率。
page_info.media_info.playback_list[].play_info.audio_bits_per_sampleinteger该播放版本返回的每个音频样本的位数。
page_info.media_info.playback_list[].play_info.audio_sample_fmtstring该播放版本返回的音频采样格式。
page_info.media_info.playback_list[].play_info.color_transferstring该播放版本的色彩传递特性标签。
page_info.media_info.playback_list[].play_info.dolby_atmosboolean该播放版本是否标为杜比全景声。
page_info.media_info.playback_list[].play_info.protocolstring该版本的播放协议标签。
page_info.media_info.big_pic_infoobject媒体条目返回的封面图版本。
page_info.media_info.big_pic_info.pic_bigobject大图版本。
page_info.media_info.big_pic_info.pic_big.urlstring这个图片版本的地址。
page_info.media_info.big_pic_info.pic_big.widthinteger图片宽度,单位为像素。
page_info.media_info.big_pic_info.pic_big.heightinteger图片高度,单位为像素。
page_info.media_info.big_pic_info.pic_middleobject中等尺寸图片版本。
page_info.media_info.big_pic_info.pic_middle.urlstring这个图片版本的地址。
page_info.media_info.big_pic_info.pic_middle.widthinteger图片宽度,单位为像素。
page_info.media_info.big_pic_info.pic_middle.heightinteger图片高度,单位为像素。
page_info.media_info.big_pic_info.pic_smallobject小图版本。
page_info.media_info.big_pic_info.pic_small.urlstring这个图片版本的地址。
page_info.media_info.big_pic_info.pic_small.widthinteger图片宽度,单位为像素。
page_info.media_info.big_pic_info.pic_small.heightinteger图片高度,单位为像素。
page_info.media_info.h265_mp4_hdstring高清 H.265 MP4 地址。
page_info.media_info.h265_mp4_ldstring低清 H.265 MP4 地址。
page_info.media_info.mp4_720p_mp4string媒体条目的 720p MP4 地址。
page_info.media_info.h5_urlstring用于在网页打开媒体条目的链接。
page_info.media_info.author_infoobject媒体条目所关联作者的公开资料。
page_info.media_info.author_info.idinteger作者的微博数字用户 ID。
page_info.media_info.author_info.idstrstring以文本表示的作者微博用户 ID。
page_info.media_info.author_info.screen_namestring微博账号显示名称。
page_info.media_info.author_info.profile_image_urlstring用户资料的头像地址。
page_info.media_info.author_info.avatar_largestring较大版本的个人资料头像地址。
page_info.media_info.author_info.avatar_hdstring高清头像地址。
page_info.media_info.author_info.profile_urlstring微博返回的个人主页链接。
page_info.media_info.author_info.verifiedboolean微博是否将此账号标记为已认证。
page_info.media_info.author_info.verified_typeinteger微博记录的账号认证数字类型。
page_info.media_info.author_info.verified_type_extinteger补充的账号认证数字分类。
page_info.media_info.author_info.descriptionstring公开个人简介。
page_info.media_info.author_info.locationstring公开资料显示的地区名称。
page_info.media_info.author_info.followers_countinteger公开资料中的粉丝数。
page_info.media_info.author_info.followers_count_strstring与数字粉丝数一起返回的粉丝数展示文本。
page_info.media_info.author_info.friends_countinteger公开资料中的关注数。
page_info.media_info.author_info.statuses_countinteger公开资料中的博文数。
page_info.media_info.author_info.verified_reasonstring公开资料中的认证说明。
page_info.media_info.author_info.status_total_counterobject作者资料附带的公开互动计数文本。
page_info.media_info.author_info.status_total_counter.comment_cntstring作者资料里的评论数,以字符串表示。
page_info.media_info.author_info.status_total_counter.like_cntstring作者资料里的点赞数,以字符串表示。
page_info.media_info.author_info.status_total_counter.repost_cntstring作者资料里的转发数,以字符串表示。
page_info.media_info.author_info.status_total_counter.total_cntstring作者资料里的总互动数,以字符串表示。
page_info.media_info.author_info.status_total_counter.total_cnt_formatstring作者资料用于展示的格式化总互动数。
page_info.page_descstring附带内容卡片的展示描述。
page_info.short_urlstring附带内容卡片返回的短链接。
page_info.page_pc_urlstring用于在桌面端打开内容卡片的链接。
page_info.cardsarray内容卡片附带的其他卡片,存在时返回。
page_info.cards[]object父内容卡片附带的一张卡片。
page_info.cards[].object_idstring卡片关联的内容对象 ID。
page_info.cards[].object_typestring卡片关联的内容对象类型标签。
page_info.cards[].page_titlestring内容卡片展示的标题。
page_info.cards[].page_descstring附带内容卡片的展示描述。
page_info.cards[].page_picstring内容卡片返回的图片地址。
page_info.cards[].page_urlstring内容卡片返回的打开链接。
page_info.cards[].content1string内容卡片返回的第一行文字。
page_info.cards[].content2string内容卡片返回的第二行文字。
page_info.pic_infoobject内容卡片返回的预览图版本。
page_info.pic_info.pic_bigobject大图版本。
page_info.pic_info.pic_big.urlstring这个图片版本的地址。
page_info.pic_info.pic_big.widthstring图片显示宽度,以字符串表示的像素值。
page_info.pic_info.pic_big.heightstring图片显示高度,以字符串表示的像素值。
page_info.pic_info.pic_middleobject中等尺寸图片版本。
page_info.pic_info.pic_middle.urlstring这个图片版本的地址。
page_info.pic_info.pic_middle.widthstring图片显示宽度,以字符串表示的像素值。
page_info.pic_info.pic_middle.heightstring图片显示高度,以字符串表示的像素值。
page_info.pic_info.pic_smallobject小图版本。
page_info.pic_info.pic_small.urlstring这个图片版本的地址。
page_info.pic_info.pic_small.widthstring图片显示宽度,以字符串表示的像素值。
page_info.pic_info.pic_small.heightstring图片显示高度,以字符串表示的像素值。
话题、链接与标签18 个字段

data.data.list[]

字段类型说明
topic_structarray随帖子返回的话题,存在时可用。
topic_struct[]object随帖子返回的一条话题。
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_typestring | integer以数字代码或文本标签返回的链接类型。
url_struct[].ori_urlstring博文返回的原始链接地址。
url_struct[].h5_target_urlstring该链接的网页目标地址,存在时返回。
url_struct[].url_type_picstring该链接类型对应的图标地址。
tag_structarray博文附带的标签,存在时返回。
tag_struct[]object博文附带的一条标签。
tag_struct[].tag_namestring标签的展示名称。
tag_struct[].tag_schemestring用于打开该标签的链接。
tag_struct[].url_type_picstring标签的图标地址。
原博文90 个字段

data.data.list[].retweeted_status

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

字段类型说明
idinteger微博帖子的数字 ID。
idstrstring以文本表示的微博帖子 ID。
midstring以文本表示的微博消息 ID。
mblogidstring微博帖子的字母数字短 ID。
created_atstring发布时间,保留微博原始时间格式。
textstring微博返回的帖子正文,可能含 HTML 标记。
text_rawstring此帖的原始正文文本,存在时可用。
textLengthinteger微博返回的帖子文本长度。
sourcestring微博展示的帖子发布来源标签,存在时可用。
region_namestring帖子展示的地区标签。
isLongTextboolean微博是否将此帖标记为长文。
is_paidboolean微博是否将此帖标记为付费内容。
visibleobject此帖返回的可见性设置。
visible.typeinteger微博返回的可见性数字代码。
visible.list_idinteger关联可见性名单的数字 ID。
userobject | null原博文作者的公开资料,可能为 null。
user.idinteger作者的微博数字用户 ID。
user.idstrstring以文本表示的作者微博用户 ID。
user.screen_namestring微博账号显示名称。
user.profile_image_urlstring用户资料的头像地址。
user.avatar_largestring较大版本的个人资料头像地址。
user.avatar_hdstring高清头像地址。
user.profile_urlstring微博返回的个人主页链接。
user.verifiedboolean微博是否将此账号标记为已认证。
user.verified_typeinteger微博记录的账号认证数字类型。
user.verified_type_extinteger补充的账号认证数字分类。
user.status_total_counterobject作者资料附带的公开互动计数文本。
user.status_total_counter.comment_cntstring作者资料里的评论数,以字符串表示。
user.status_total_counter.like_cntstring作者资料里的点赞数,以字符串表示。
user.status_total_counter.repost_cntstring作者资料里的转发数,以字符串表示。
user.status_total_counter.total_cntstring作者资料里的总互动数,以字符串表示。
user.status_total_counter.total_cnt_formatstring作者资料用于展示的格式化总互动数。
reposts_countinteger微博返回的转发数。
comments_countinteger微博返回的评论数。
attitudes_countinteger微博返回的表态数。
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}.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}.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}.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}.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}.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}.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}.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}.focus_pointobject图片返回的焦点区域。
pic_infos.{key}.focus_point.leftinteger微博返回的图片焦点区域左边坐标。
pic_infos.{key}.focus_point.topnumber微博返回的图片焦点区域上边坐标。
pic_infos.{key}.focus_point.widthinteger微博返回的图片焦点区域宽度。
pic_infos.{key}.focus_point.heightnumber微博返回的图片焦点区域高度。
pic_focus_pointarray附带图片返回的焦点区域列表。
pic_focus_point[]object一张图片对应的焦点区域。
pic_focus_point[].pic_idstring微博图片 ID。
pic_focus_point[].focus_pointobject图片返回的焦点区域。
pic_focus_point[].focus_point.leftinteger微博返回的图片焦点区域左边坐标。
pic_focus_point[].focus_point.topnumber微博返回的图片焦点区域上边坐标。
pic_focus_point[].focus_point.widthinteger微博返回的图片焦点区域宽度。
pic_focus_point[].focus_point.heightnumber微博返回的图片焦点区域高度。

响应示例 ​

正在加载响应示例…