本文へ移動

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

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

特定のWeiboユーザーが投稿した投稿を、キーワード、オプションの日付範囲、およびページベースのページングを使用して検索します。これを使用して、既知のアカウントからの歴史的な投稿を探し、トピックの研究やキャンペーンのレビューを行ったりすることができます。

パラメータ ​

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

パラメーター:
- token (query): APIアクセストークン。 (必須)
- uid (query): WeiboユーザーID(UID)。 (必須)
- q (query): 検索キーワード。 (必須)
- startDay (query): 開始日(yyyy-MM-dd)。
- endDay (query): 終了日(yyyy-MM-dd)。
- page (query): ページ番号、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/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"; // オープンAPIサーバーによって提供される
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"; // オープンAPIサーバーによって提供される
        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" // オープンAPIサーバーによって提供される

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'; // オープンAPIサーバーによって提供される
$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 内部Weiboステータス。検索結果がある場合は1の値が付きます。結果なしで0の値が返されることもあります。
data.total integer | string Weiboが報告する合計マッチ数が数値または数値テキスト形式で返されます。このページのエントリ数はリストの長さを使用してください。
投稿17 項目

data.data.list[]

フィールド タイプ 説明
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がこの投稿を長文テキストとしてマークしているかどうか。
is_paid boolean Weiboがこの投稿を有料コンテンツとしてマークしているかどうか。
visible object この投稿で返される可視性設定。
visible.type integer Weiboから報告される数値の可視性コード。
visible.list_id integer 関連する可視性リストの数値ID。
isAd boolean Weibo がその投稿を広告としてマークしているかどうか。
edit_count integer 投稿に関する報告された編集数。
著者とエンゲージメント20 項目

data.data.list[]

フィールド タイプ 説明
user object エントリに添付された公開著者情報。
user.id integer 著者のWeiboユーザーIDの数値。
user.idstr string 著者のWeiboユーザーIDがテキストとして表される場合。
user.screen_name string 表示されるWeiboアカウント名。
user.profile_image_url string プロフィールアバターのURL。
user.avatar_large string 大きなプロフィールアバターのURL。
user.avatar_hd string 高解像度アバターURL。
user.profile_url string Weiboから返されるプロフィールリンク。
user.verified boolean Weiboがアカウントを認証済みとしてマークしているかどうか。
user.verified_type integer Weiboが記録するアカウント認証タイプの数値。
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 Weiboによる再投稿数の報告値。
comments_count integer Weiboによるコメント数の報告値。
attitudes_count integer Weiboによる反応数の報告値。
画像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 この画像表示のURL。
pic_infos.{key}.thumbnail.width integer 画像のピクセル単位の幅。
pic_infos.{key}.thumbnail.height 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}.large object 大サイズ画像の表示。
pic_infos.{key}.large.url string この画像表示のURL。
pic_infos.{key}.large.width integer 画像のピクセル単位の幅。
pic_infos.{key}.large.height 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}.largest object 最大のフィールドで返される画像の表示。
pic_infos.{key}.largest.url string この画像表示のURL。
pic_infos.{key}.largest.width integer 画像のピクセル単位の幅。
pic_infos.{key}.largest.height 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}.original object 元のフィールドで返される画像の表示。
pic_infos.{key}.original.url string この画像表示のURL。
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 Weiboによる画像の焦点領域の左座標が報告されました。
pic_infos.{key}.focus_point.top number Weiboによる画像の焦点領域の上座標が報告されました。
pic_infos.{key}.focus_point.width number Weiboによる画像の焦点領域の幅が報告されました。
pic_infos.{key}.focus_point.height number Weiboによる画像の焦点領域の高さが報告されました。
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 Weiboによる画像の焦点領域の左座標が報告されました。
pic_focus_point[].focus_point.top number Weiboによる画像の焦点領域の上座標が報告されました。
pic_focus_point[].focus_point.width number Weiboによる画像の焦点領域の幅が報告されました。
pic_focus_point[].focus_point.height number Weiboによる画像の焦点領域の高さが報告されました。
添付されたカードとビデオ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 コンテンツカードの画像URL。
page_info.page_url string コンテンツカードを開くためのリンク。
page_info.media_info object 提供された場合のカードと共に返される動画メタデータ。
page_info.media_info.media_id string Weiboによって返される動画メディア識別子。
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 Weiboがこのメディアアイテムについて報告する動画の再生時間値。
page_info.media_info.stream_url string 微博によって返されるビデオストリームのURL。
page_info.media_info.stream_url_hd string 微博によって返される高解像度ビデオストリームのURL。
page_info.media_info.mp4_sd_url string Weiboによって返される標準解像度MP4URL。
page_info.media_info.mp4_hd_url string Weiboによって返される高解像度MP4URL。
page_info.media_info.playback_list array Weiboが動画のために返す再生バリアント。
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 このバリアントのための再生URLが返されました。
page_info.media_info.playback_list[].play_info.urls array このバリアントのための再生URLのリストが返されました。
page_info.media_info.playback_list[].play_info.urls[] string このバリアントのための一つの再生URLが返されました。
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 この再生バリエーションがDolby Atmosとしてマークされているかどうか。
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 この画像表現のURLが返されました。
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 この画像表現のURLが返されました。
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 この画像表現のURLが返されました。
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 の URL。
page_info.media_info.h265_mp4_ld string 低解像度 H.265 MP4 の URL。
page_info.media_info.mp4_720p_mp4 string 該当メディアアイテムに対して返される 720p MP4 の URL。
page_info.media_info.h5_url string 該当メディアアイテムをウェブ上で開くためのリンク。
page_info.media_info.author_info object 該当メディアアイテムに関連する著者の公開プロフィール情報。
page_info.media_info.author_info.id integer 著者のWeiboユーザーIDの数値。
page_info.media_info.author_info.idstr string 著者のWeiboユーザーIDがテキストとして表される場合。
page_info.media_info.author_info.screen_name string 表示されるWeiboアカウント名。
page_info.media_info.author_info.profile_image_url string プロフィールアバターのURL。
page_info.media_info.author_info.avatar_large string 大きなプロフィールアバターのURL。
page_info.media_info.author_info.avatar_hd string 高解像度アバターURL。
page_info.media_info.author_info.profile_url string Weiboから返されるプロフィールリンク。
page_info.media_info.author_info.verified boolean Weiboがアカウントを認証済みとしてマークしているかどうか。
page_info.media_info.author_info.verified_type integer Weiboが記録するアカウント認証タイプの数値。
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 コンテンツカードの画像URL。
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 この画像表現のURLが返されました。
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 この画像表現のURLが返されました。
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 この画像表現のURLが返されました。
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 このリンクタイプのアイコンURLが返されました。
tag_struct array 投稿に付随するタグがある場合。
tag_struct[] object 投稿に一つのタグが付随している場合。
tag_struct[].tag_name string タグの表示名。
tag_struct[].tag_scheme string タグを開くために使用されるリンク。
tag_struct[].url_type_pic string このタグに対して返されるアイコンURL。
元の投稿90 項目

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がこの投稿を長文テキストとしてマークしているかどうか。
is_paid boolean Weiboがこの投稿を有料コンテンツとしてマークしているかどうか。
visible object この投稿で返される可視性設定。
visible.type integer Weiboから報告される数値の可視性コード。
visible.list_id integer 関連する可視性リストの数値ID。
user object | null 元の投稿に関する公開著者プロフィール。null の場合もあります。
user.id integer 著者のWeiboユーザーIDの数値。
user.idstr string 著者のWeiboユーザーIDがテキストとして表される場合。
user.screen_name string 表示されるWeiboアカウント名。
user.profile_image_url string プロフィールアバターのURL。
user.avatar_large string 大きなプロフィールアバターのURL。
user.avatar_hd string 高解像度アバターURL。
user.profile_url string Weiboから返されるプロフィールリンク。
user.verified boolean Weiboがアカウントを認証済みとしてマークしているかどうか。
user.verified_type integer Weiboが記録するアカウント認証タイプの数値。
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 Weiboによる再投稿数の報告値。
comments_count integer Weiboによるコメント数の報告値。
attitudes_count integer Weiboによる反応数の報告値。
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 この画像表示のURL。
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 この画像表示のURL。
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 この画像表示のURL。
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 この画像表示のURL。
pic_infos.{key}.largecover.width integer 画像のピクセル単位の幅。
pic_infos.{key}.largecover.height integer 画像のピクセル単位の高さ。
pic_infos.{key}.largecover.type string | null 提供された場合の表現のメディアタイプラベル。
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}.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}.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}.focus_point object 画像の焦点領域が返されました。
pic_infos.{key}.focus_point.left integer Weiboによる画像の焦点領域の左座標が報告されました。
pic_infos.{key}.focus_point.top number Weiboによる画像の焦点領域の上座標が報告されました。
pic_infos.{key}.focus_point.width integer Weiboによる画像の焦点領域の幅が報告されました。
pic_infos.{key}.focus_point.height number Weiboによる画像の焦点領域の高さが報告されました。
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 Weiboによる画像の焦点領域の左座標が報告されました。
pic_focus_point[].focus_point.top number Weiboによる画像の焦点領域の上座標が報告されました。
pic_focus_point[].focus_point.width integer Weiboによる画像の焦点領域の幅が報告されました。
pic_focus_point[].focus_point.height number Weiboによる画像の焦点領域の高さが報告されました。

レスポンス例 ​

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