本文へ移動

Weibo ユーザーが公開した投稿 API (V1) ​

GET
APIの健康状態
正常 利用可能 限られた数 ほとんど利用できない データなし
健康状態を読み込んでいます...

UIDによって識別されたWeiboユーザーが投稿した投稿を取得します。ページ番号と必須のsinceIdカーソルを最初のページの後に使用します。そのアカウントの投稿履歴を閲覧するため、またはその投稿フィードを続けて閲覧するために使用します。

パラメータ ​

名前 パラメーターの場所 タイプ 必須 デフォルト 説明
token query string はい - APIアクセストークン。
uid query string はい - WeiboユーザーID(UID)。
page query integer いいえ 1 ページ番号、1から始まる。
sinceId query string いいえ - ページングカーソル (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)" APIを使用したいです。
基本URL: https://api.justoneapi.com.
APIパス: /api/weibo/get-user-post/v1?token=YOUR_API_KEY&uid=VALUE
APIエンドポイント: BASE_URL + /api/weibo/get-user-post/v1?token=YOUR_API_KEY&uid=VALUE
HTTPメソッド: GET
認証: "token"クエリパラメーターをURLに追加します。
OpenAPI定義: https://docs.justoneapi.com/openapi/weibo/user-published-posts-v1-ja.json

パラメーター:
- token (query): APIアクセストークン。 (必須)
- uid (query): WeiboユーザーID(UID)。 (必須)
- page (query): ページ番号、1から始まる。
- sinceId (query): ページングカーソル (since_id)。page > 1の場合は必須。

返信形式:実際のContent-Typeに応じて、JSONまたはテキストを安全に処理する。

レスポンスの処理とエラーコード:
1. API の処理結果はレスポンス本文の「code」フィールドで判定します。code が 0 なら成功です。
2. 推奨タイムアウト:リクエストのタイムアウトは 120 秒に設定してください。120 秒が長すぎる場合でも、最低 60 秒を確保してください。一部のリクエストは、結果を受け取る前にタイムアウトすることがあります。
3. 処理結果コード:
   - 0: 成功
   - 100: 無効または停止中のトークン
   - 301: データの取得に失敗しました。再試行してください。
   - 302: 呼び出し頻度の上限を超えました
   - 303: 日次の利用上限を超えました
   - 400: パラメーターが無効です
   - 500: サーバー内部エラー
   - 600: アクセス権限がありません
   - 601: 残高不足
   - 602: トークンの予算上限に達しました
4. コード 601 はアカウントの共有残高不足を示します。コード 602 は使用中の API トークン固有の累積予算上限に達したことを示します。トークンに予算上限を設定しても、共有残高から資金が移動することはありません。

お手伝いください。私が好むプログラミング言語でこのAPIを呼び出し、レスポンスを処理するスクリプトを作成してください。
python
import requests

BASE_URL = "https://api.justoneapi.com"  # オープンAPIサーバーによって提供される

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"; // オープンAPIサーバーによって提供される
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"; // オープンAPIサーバーによって提供される
        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" // オープンAPIサーバーによって提供される

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'; // オープンAPIサーバーによって提供される
$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と比較してください。

フィールド タイプ 説明
id integer Weibo投稿の数値ID。
idstr string Weibo投稿のIDがテキストとして表される場合。
mid string WeiboメッセージIDがテキストとして表される場合。
mblogid string Weibo投稿の短いアルファベット数ID。
created_at string Weiboの元のタイムスタンプ形式での公開時間。
text string Weiboによって返される投稿本文。HTMLマークアップを含むことがある。
text_raw string この投稿の生のボディテキストフィールド(提供された場合)。
textLength integer Weiboによって報告される投稿テキストの長さ。
source string 投稿が利用可能な場合、ソースラベルが表示されます。
region_name string 投稿に表示される地域ラベル。
isLongText boolean Weiboがこの投稿を長文テキストとしてマークしているかどうか。
isTop integer このエントリのための数値式の固定投稿フラグが返されました。
isAd boolean | integer ブランドフラグがブール値または数値値として返される場合。
is_paid boolean Weiboがこの投稿を有料コンテンツとしてマークしているかどうか。
can_edit boolean レスポンスコンテキストで編集が可能かどうか。
favorited boolean レスポンスコンテキストでこの投稿がお気に入りとしてマークされているかどうか。
visible object この投稿で返される可視性設定。
visible.type integer Weiboから報告される数値の可視性コード。
visible.list_id integer 関連する可視性リストの数値ID。
ルック状況2 項目

data

Weiboフィードの応答。ステータスのみの応答ではフィードデータを省略することができる。

フィールド タイプ 説明
ok integer Weiboフィードのステータス。フィード結果には1の値が付き、ステータスメッセージにはフィードデータなしで0の値が付くことがある。
message string Weiboから提供されるステータスメッセージ。
フィードページとページネーション7 項目

data.data

ペディション情報付きのWeiboフィードの一ページ。利用可能な場合。

フィールド タイプ 説明
since_id string このフィードページのペディションカーソル。次ページを要求する際にはsinceIdとしてそのまま渡す。
total integer Weiboがフィードについて報告する総数。現在のページのエントリ数はリストの長さを使用する。
status_visible integer Weiboが報告するフィードの可視性コード。
bottom_tips_visible boolean チップがフィードの下部に表示されるようにマークされているかどうか。
bottom_tips_text string フィードの下部に表示されるチップが提供された場合のテキスト。
topicList array フィードページと共に返されるトピックリスト。空になることがあります。
list[] object フィードページで返される一つの投稿エントリ。
投稿者12 項目

data.data.list[].user

エントリに添付された公開著者情報。

フィールド タイプ 説明
id integer 著者のWeiboユーザーIDの数値。
idstr string 著者のWeiboユーザーIDがテキストとして表される場合。
screen_name string 表示されるWeiboアカウント名。
profile_image_url string プロフィールアバターのURL。
avatar_large string 大きなプロフィールアバターのURL。
avatar_hd string 高解像度アバターURL。
profile_url string Weiboから返されるプロフィールリンク。
verified boolean Weiboがアカウントを認証済みとしてマークしているかどうか。
verified_type integer Weiboが記録するアカウント認証タイプの数値。
verified_type_ext integer 追加のアカウント認証分類の数値。
following boolean 視聴アカウントがこの作者をフォローしているかどうか。
follow_me boolean 著者が該当の視聴アカウントにマークされているかどうか。
エンゲージメント4 項目

data.data.list[]

フィールド タイプ 説明
reposts_count integer Weiboによる再投稿数の報告値。
comments_count integer Weiboによるコメント数の報告値。
attitudes_count integer Weiboによる反応数の報告値。
attitudes_status integer レスポンスコンテキストの数値反応ステータス。
写真の投稿52 項目

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}.pic_status integer この画像に記録された数値ステータスコード。
pic_infos.{key}.video string この画像と共に返される動画アドレス(提供された場合)。
pic_infos.{key}.video_hd string この画像と共に返される高解像度動画アドレス(提供された場合)。
pic_infos.{key}.thumbnail object サムネイル画像表現。
pic_infos.{key}.thumbnail.url string この画像表示のURL。
pic_infos.{key}.thumbnail.width integer 画像のピクセル単位の幅。
pic_infos.{key}.thumbnail.height integer 画像のピクセル単位の高さ。
pic_infos.{key}.thumbnail.type string 提供された場合の表現のメディアタイプラベル。
pic_infos.{key}.thumbnail.cut_type integer 数値によるクリップタイプの記録。
pic_infos.{key}.bmiddle object 中サイズ画像の表示。
pic_infos.{key}.bmiddle.url string この画像表示のURL。
pic_infos.{key}.bmiddle.width integer 画像のピクセル単位の幅。
pic_infos.{key}.bmiddle.height integer 画像のピクセル単位の高さ。
pic_infos.{key}.bmiddle.type string 提供された場合の表現のメディアタイプラベル。
pic_infos.{key}.bmiddle.cut_type integer 数値によるクリップタイプの記録。
pic_infos.{key}.large object 大サイズ画像の表示。
pic_infos.{key}.large.url string この画像表示のURL。
pic_infos.{key}.large.width integer 画像のピクセル単位の幅。
pic_infos.{key}.large.height integer 画像のピクセル単位の高さ。
pic_infos.{key}.large.type string 提供された場合の表現のメディアタイプラベル。
pic_infos.{key}.large.cut_type integer 数値によるクリップタイプの記録。
pic_infos.{key}.largecover object 大サイズカバー画像の表示。
pic_infos.{key}.largecover.url string この画像表示のURL。
pic_infos.{key}.largecover.width integer 画像のピクセル単位の幅。
pic_infos.{key}.largecover.height integer 画像のピクセル単位の高さ。
pic_infos.{key}.largecover.type string 提供された場合の表現のメディアタイプラベル。
pic_infos.{key}.largecover.cut_type integer 数値によるクリップタイプの記録。
pic_infos.{key}.largest object 最大のフィールドで返される画像の表示。
pic_infos.{key}.largest.url string この画像表示のURL。
pic_infos.{key}.largest.width integer 画像のピクセル単位の幅。
pic_infos.{key}.largest.height integer 画像のピクセル単位の高さ。
pic_infos.{key}.largest.type string 提供された場合の表現のメディアタイプラベル。
pic_infos.{key}.largest.cut_type integer 数値によるクリップタイプの記録。
pic_infos.{key}.mw2000 object mw2000フィールドで返される画像の表示。
pic_infos.{key}.mw2000.url string この画像表示のURL。
pic_infos.{key}.mw2000.width integer 画像のピクセル単位の幅。
pic_infos.{key}.mw2000.height integer 画像のピクセル単位の高さ。
pic_infos.{key}.mw2000.type string 提供された場合の表現のメディアタイプラベル。
pic_infos.{key}.mw2000.cut_type integer 数値によるクリップタイプの記録。
pic_infos.{key}.original object 元のフィールドで返される画像の表示。
pic_infos.{key}.original.url string この画像表示のURL。
pic_infos.{key}.original.width integer 画像のピクセル単位の幅。
pic_infos.{key}.original.height integer 画像のピクセル単位の高さ。
pic_infos.{key}.original.type string 提供された場合の表現のメディアタイプラベル。
pic_infos.{key}.original.cut_type integer 数値によるクリップタイプの記録。
カードの投稿と動画38 項目

data.data.list[].page_info

提供された場合の添付コンテンツカード、例えば動画やリンク。

フィールド タイプ 説明
type integer | string 数値コードまたはテキストラベルとして返されるカードタイプ。
object_type string カードのコンテンツオブジェクトタイプラベル。
object_id string カードに関連するコンテンツオブジェクトID。
page_title string コンテンツカードに表示されるタイトル。
content1 string コンテンツカードに返される最初のテキスト行。
content2 string コンテンツカードに返された二行目のテキスト。
page_pic string コンテンツカードの画像URL。
page_url string コンテンツカードを開くためのリンク。
media_info object 提供された場合のカードと共に返される動画メタデータ。
media_info.media_id string Weiboによって返される動画メディア識別子。
media_info.media_type string 動画のメディアタイプラベル。
media_info.name string メディアアイテムの記録された名前。
media_info.video_title string メディアアイテムの場合、返される動画タイトル。
media_info.format string 動画の提供されたメディアフォーマット。
media_info.video_orientation string 微博が提供するビデオのオリエンテーションラベル。
media_info.video_publish_time integer ビデオの公開時間、Unixタイムスタンプで秒単位。
media_info.duration integer Weiboがこのメディアアイテムについて報告する動画の再生時間値。
media_info.stream_url string 微博によって返されるビデオストリームのURL。
media_info.stream_url_hd string 微博によって返される高解像度ビデオストリームのURL。
media_info.mp4_sd_url string Weiboによって返される標準解像度MP4URL。
media_info.mp4_hd_url string Weiboによって返される高解像度MP4URL。
media_info.playback_list array Weiboが動画のために返す再生バリアント。
media_info.playback_list[] object 動画のために返される一つの再生バリアント。
media_info.playback_list[].play_info object この再生バリアントのために返されるメディアプロパティ。
media_info.playback_list[].play_info.width integer ビデオフレームのピクセル単位の幅。
media_info.playback_list[].play_info.height integer ビデオフレームのピクセル単位の高さ。
media_info.playback_list[].play_info.fps integer 再生バリアントのためのビデオフレームレートが報告されました。
media_info.playback_list[].play_info.bitrate integer この再生バリアントのためのビットレート値が報告されました。
media_info.playback_list[].play_info.duration number この再生バリアントのための持続時間値が報告されました。
media_info.playback_list[].play_info.mime string この再生バリアントのためのメディアMIMEタイプが報告されました。
media_info.playback_list[].play_info.label string この再生バリアントのためのラベルが返されました。
media_info.playback_list[].play_info.quality_label string この再生バリアントのための品質ラベルが返されました。
media_info.playback_list[].play_info.video_codecs string この再生バリアントのためのビデオコーデックテキストが返されました。
media_info.playback_list[].play_info.audio_codecs string この再生バリアントのためのオーディオコーデックテキストが返されました。
media_info.playback_list[].play_info.audio_channels integer この再生バリアントのためのオーディオチャンネル数が報告されました。
media_info.playback_list[].play_info.url string このバリアントのための再生URLが返されました。
media_info.playback_list[].play_info.urls array このバリアントのための再生URLのリストが返されました。
media_info.playback_list[].play_info.urls[] string このバリアントのための一つの再生URLが返されました。
トピックとリンク11 項目

data.data.list[]

フィールド タイプ 説明
topic_struct array この投稿に添付されたトピックが提供された場合。
topic_struct[] object この投稿に一つのトピックが添付されました。
topic_struct[].title string トピックエントリのためのタイトルテキストが返されました。
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 integer | string リンクタイプが数値コードまたはテキストラベルとして報告される。
再投稿の元の投稿22 項目

data.data.list[].retweeted_status

再投稿がある場合に含まれる元の投稿情報。

フィールド タイプ 説明
id integer Weibo投稿の数値ID。
idstr string Weibo投稿のIDがテキストとして表される場合。
mid string WeiboメッセージIDがテキストとして表される場合。
mblogid string Weibo投稿の短いアルファベット数ID。
created_at string Weiboの元のタイムスタンプ形式での公開時間。
text string Weiboによって返される投稿本文。HTMLマークアップを含むことがある。
text_raw string この投稿の生のボディテキストフィールド(提供された場合)。
textLength integer Weiboによって報告される投稿テキストの長さ。
source string 投稿が利用可能な場合、ソースラベルが表示されます。
region_name string 投稿に表示される地域ラベル。
isLongText boolean Weiboがこの投稿を長文テキストとしてマークしているかどうか。
isAd boolean ブランドフラグがブール値または数値値として返される場合。
is_paid boolean Weiboがこの投稿を有料コンテンツとしてマークしているかどうか。
can_edit boolean レスポンスコンテキストで編集が可能かどうか。
favorited boolean レスポンスコンテキストでこの投稿がお気に入りとしてマークされているかどうか。
visible object この投稿で返される可視性設定。
visible.type integer Weiboから報告される数値の可視性コード。
visible.list_id integer 関連する可視性リストの数値ID。
reposts_count integer Weiboによる再投稿数の報告値。
comments_count integer Weiboによるコメント数の報告値。
attitudes_count integer Weiboによる反応数の報告値。
attitudes_status integer レスポンスコンテキストの数値反応ステータス。
元の投稿者12 項目

data.data.list[].retweeted_status.user

エントリに添付された公開著者情報。

フィールド タイプ 説明
id integer 著者のWeiboユーザーIDの数値。
idstr string 著者のWeiboユーザーIDがテキストとして表される場合。
screen_name string 表示されるWeiboアカウント名。
profile_image_url string プロフィールアバターのURL。
avatar_large string 大きなプロフィールアバターのURL。
avatar_hd string 高解像度アバターURL。
profile_url string Weiboから返されるプロフィールリンク。
verified boolean Weiboがアカウントを認証済みとしてマークしているかどうか。
verified_type integer Weiboが記録するアカウント認証タイプの数値。
verified_type_ext integer 追加のアカウント認証分類の数値。
following boolean 視聴アカウントがこの作者をフォローしているかどうか。
follow_me boolean 著者が該当の視聴アカウントにマークされているかどうか。
元の投稿写真52 項目

data.data.list[].retweeted_status

フィールド タイプ 説明
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}.pic_status integer この画像に記録された数値ステータスコード。
pic_infos.{key}.video string この画像と共に返される動画アドレス(提供された場合)。
pic_infos.{key}.video_hd string この画像と共に返される高解像度動画アドレス(提供された場合)。
pic_infos.{key}.thumbnail object サムネイル画像表現。
pic_infos.{key}.thumbnail.url string この画像表示のURL。
pic_infos.{key}.thumbnail.width integer 画像のピクセル単位の幅。
pic_infos.{key}.thumbnail.height integer 画像のピクセル単位の高さ。
pic_infos.{key}.thumbnail.type string | null 提供された場合の表現のメディアタイプラベル。
pic_infos.{key}.thumbnail.cut_type integer 数値によるクリップタイプの記録。
pic_infos.{key}.bmiddle object 中サイズ画像の表示。
pic_infos.{key}.bmiddle.url string この画像表示のURL。
pic_infos.{key}.bmiddle.width integer 画像のピクセル単位の幅。
pic_infos.{key}.bmiddle.height integer 画像のピクセル単位の高さ。
pic_infos.{key}.bmiddle.type string | null 提供された場合の表現のメディアタイプラベル。
pic_infos.{key}.bmiddle.cut_type integer 数値によるクリップタイプの記録。
pic_infos.{key}.large object 大サイズ画像の表示。
pic_infos.{key}.large.url string この画像表示のURL。
pic_infos.{key}.large.width integer 画像のピクセル単位の幅。
pic_infos.{key}.large.height integer 画像のピクセル単位の高さ。
pic_infos.{key}.large.type string | null 提供された場合の表現のメディアタイプラベル。
pic_infos.{key}.large.cut_type integer 数値によるクリップタイプの記録。
pic_infos.{key}.largecover object 大サイズカバー画像の表示。
pic_infos.{key}.largecover.url string この画像表示のURL。
pic_infos.{key}.largecover.width integer 画像のピクセル単位の幅。
pic_infos.{key}.largecover.height integer 画像のピクセル単位の高さ。
pic_infos.{key}.largecover.type string | null 提供された場合の表現のメディアタイプラベル。
pic_infos.{key}.largecover.cut_type integer 数値によるクリップタイプの記録。
pic_infos.{key}.largest object 最大のフィールドで返される画像の表示。
pic_infos.{key}.largest.url string この画像表示のURL。
pic_infos.{key}.largest.width integer 画像のピクセル単位の幅。
pic_infos.{key}.largest.height integer 画像のピクセル単位の高さ。
pic_infos.{key}.largest.type string | null 提供された場合の表現のメディアタイプラベル。
pic_infos.{key}.largest.cut_type integer 数値によるクリップタイプの記録。
pic_infos.{key}.mw2000 object mw2000フィールドで返される画像の表示。
pic_infos.{key}.mw2000.url string この画像表示のURL。
pic_infos.{key}.mw2000.width integer 画像のピクセル単位の幅。
pic_infos.{key}.mw2000.height integer 画像のピクセル単位の高さ。
pic_infos.{key}.mw2000.type string | null 提供された場合の表現のメディアタイプラベル。
pic_infos.{key}.mw2000.cut_type integer 数値によるクリップタイプの記録。
pic_infos.{key}.original object 元のフィールドで返される画像の表示。
pic_infos.{key}.original.url string この画像表示のURL。
pic_infos.{key}.original.width integer 画像のピクセル単位の幅。
pic_infos.{key}.original.height integer 画像のピクセル単位の高さ。
pic_infos.{key}.original.type string | null 提供された場合の表現のメディアタイプラベル。
pic_infos.{key}.original.cut_type integer 数値によるクリップタイプの記録。
元のカードの投稿と動画38 項目

data.data.list[].retweeted_status.page_info

提供された場合の添付コンテンツカード、例えば動画やリンク。

フィールド タイプ 説明
type integer | string 数値コードまたはテキストラベルとして返されるカードタイプ。
object_type string カードのコンテンツオブジェクトタイプラベル。
object_id string カードに関連するコンテンツオブジェクトID。
page_title string コンテンツカードに表示されるタイトル。
content1 string コンテンツカードに返される最初のテキスト行。
content2 string コンテンツカードに返された二行目のテキスト。
page_pic string コンテンツカードの画像URL。
page_url string コンテンツカードを開くためのリンク。
media_info object 提供された場合のカードと共に返される動画メタデータ。
media_info.media_id string Weiboによって返される動画メディア識別子。
media_info.media_type string 動画のメディアタイプラベル。
media_info.name string メディアアイテムの記録された名前。
media_info.video_title string メディアアイテムの場合、返される動画タイトル。
media_info.format string 動画の提供されたメディアフォーマット。
media_info.video_orientation string 微博が提供するビデオのオリエンテーションラベル。
media_info.video_publish_time integer ビデオの公開時間、Unixタイムスタンプで秒単位。
media_info.duration integer Weiboがこのメディアアイテムについて報告する動画の再生時間値。
media_info.stream_url string 微博によって返されるビデオストリームのURL。
media_info.stream_url_hd string 微博によって返される高解像度ビデオストリームのURL。
media_info.mp4_sd_url string Weiboによって返される標準解像度MP4URL。
media_info.mp4_hd_url string Weiboによって返される高解像度MP4URL。
media_info.playback_list array Weiboが動画のために返す再生バリアント。
media_info.playback_list[] object 動画のために返される一つの再生バリアント。
media_info.playback_list[].play_info object この再生バリアントのために返されるメディアプロパティ。
media_info.playback_list[].play_info.width integer ビデオフレームのピクセル単位の幅。
media_info.playback_list[].play_info.height integer ビデオフレームのピクセル単位の高さ。
media_info.playback_list[].play_info.fps integer 再生バリアントのためのビデオフレームレートが報告されました。
media_info.playback_list[].play_info.bitrate integer この再生バリアントのためのビットレート値が報告されました。
media_info.playback_list[].play_info.duration number この再生バリアントのための持続時間値が報告されました。
media_info.playback_list[].play_info.mime string この再生バリアントのためのメディアMIMEタイプが報告されました。
media_info.playback_list[].play_info.label string この再生バリアントのためのラベルが返されました。
media_info.playback_list[].play_info.quality_label string この再生バリアントのための品質ラベルが返されました。
media_info.playback_list[].play_info.video_codecs string この再生バリアントのためのビデオコーデックテキストが返されました。
media_info.playback_list[].play_info.audio_codecs string この再生バリアントのためのオーディオコーデックテキストが返されました。
media_info.playback_list[].play_info.audio_channels integer この再生バリアントのためのオーディオチャンネル数が報告されました。
media_info.playback_list[].play_info.url string このバリアントのための再生URLが返されました。
media_info.playback_list[].play_info.urls array このバリアントのための再生URLのリストが返されました。
media_info.playback_list[].play_info.urls[] string このバリアントのための一つの再生URLが返されました。
元の混合メディアの投稿41 項目

data.data.list[].retweeted_status.mix_media_info

投稿のための画像とビデオの添付ファイルが混合されて返されました。

フィールド タイプ 説明
items array 混合メディア添付ファイルのリストが返されました。
items[] object 投稿のための一つの混合メディア添付ファイルが返されました。
items[].type string 混合メディア添付ファイルのタイプラベルが返されました。
items[].data object この混合メディア添付ファイルのメタデータが返されました。
items[].data.pic_id string 微博の画像ID。
items[].data.page_title string 添付ファイルカードの表示タイトルが存在する場合。
items[].data.media_info object この混合メディア添付ファイルのビデオメタデータが提供された場合。
items[].data.media_info.media_id string Weiboによって返される動画メディア識別子。
items[].data.media_info.media_type string 動画のメディアタイプラベル。
items[].data.media_info.name string メディアアイテムの記録された名前。
items[].data.media_info.format string 動画の提供されたメディアフォーマット。
items[].data.media_info.video_orientation string 微博が提供するビデオのオリエンテーションラベル。
items[].data.media_info.video_publish_time integer ビデオの公開時間、Unixタイムスタンプで秒単位。
items[].data.media_info.duration integer Weiboがこのメディアアイテムについて報告する動画の再生時間値。
items[].data.media_info.stream_url string 微博によって返されるビデオストリームのURL。
items[].data.media_info.stream_url_hd string 微博によって返される高解像度ビデオストリームのURL。
items[].data.media_info.mp4_sd_url string Weiboによって返される標準解像度MP4URL。
items[].data.media_info.mp4_hd_url string Weiboによって返される高解像度MP4URL。
items[].data.media_info.playback_list array Weiboが動画のために返す再生バリアント。
items[].data.media_info.playback_list[] object 動画のために返される一つの再生バリアント。
items[].data.media_info.playback_list[].play_info object この再生バリアントのために返されるメディアプロパティ。
items[].data.media_info.playback_list[].play_info.width integer ビデオフレームのピクセル単位の幅。
items[].data.media_info.playback_list[].play_info.height integer ビデオフレームのピクセル単位の高さ。
items[].data.media_info.playback_list[].play_info.fps integer 再生バリアントのためのビデオフレームレートが報告されました。
items[].data.media_info.playback_list[].play_info.bitrate integer この再生バリアントのためのビットレート値が報告されました。
items[].data.media_info.playback_list[].play_info.duration number この再生バリアントのための持続時間値が報告されました。
items[].data.media_info.playback_list[].play_info.mime string この再生バリアントのためのメディアMIMEタイプが報告されました。
items[].data.media_info.playback_list[].play_info.label string この再生バリアントのためのラベルが返されました。
items[].data.media_info.playback_list[].play_info.quality_label string この再生バリアントのための品質ラベルが返されました。
items[].data.media_info.playback_list[].play_info.video_codecs string この再生バリアントのためのビデオコーデックテキストが返されました。
items[].data.media_info.playback_list[].play_info.audio_codecs string この再生バリアントのためのオーディオコーデックテキストが返されました。
items[].data.media_info.playback_list[].play_info.audio_channels integer この再生バリアントのためのオーディオチャンネル数が報告されました。
items[].data.media_info.playback_list[].play_info.url string このバリアントのための再生URLが返されました。
items[].data.media_info.playback_list[].play_info.urls array このバリアントのための再生URLのリストが返されました。
items[].data.media_info.playback_list[].play_info.urls[] string このバリアントのための一つの再生URLが返されました。
items[].data.thumbnail object サムネイル画像表現。
items[].data.thumbnail.url string この画像表示のURL。
items[].data.thumbnail.width integer 画像のピクセル単位の幅。
items[].data.thumbnail.height integer 画像のピクセル単位の高さ。
items[].data.thumbnail.type string 提供された場合の表現のメディアタイプラベル。
items[].data.thumbnail.cut_type integer 数値によるクリップタイプの記録。

レスポンス例 ​

レスポンスのサンプルを読み込んでいます...