本文へ移動

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

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

Rest IDで識別されたX(Twitter)ユーザーが投稿した投稿を取得します。カーソルを使用してページを閲覧し、既知のアカウントのタイムラインを閲覧したり、公開投稿の履歴を続けて閲覧したりします。

パラメータ ​

名前 パラメーターの場所 タイプ 必須 デフォルト 説明
token query string はい - APIアクセスに必要な認証トークン。
restId query string はい - Xユーザーの一意な数値識別子(Rest ID)。
cursor query string いいえ 長いタイムラインをナビゲートするためのページングカーソル。

コードサンプル ​

bash
curl --max-time 120 -X GET 'https://api.justoneapi.com/api/twitter/get-user-posts/v1?token=YOUR_API_KEY&restId=VALUE'
text
私はJustOneAPIの"ユーザーが公開した投稿 (V1)" APIを使用したいです。
基本URL: https://api.justoneapi.com.
APIパス: /api/twitter/get-user-posts/v1?token=YOUR_API_KEY&restId=VALUE
APIエンドポイント: BASE_URL + /api/twitter/get-user-posts/v1?token=YOUR_API_KEY&restId=VALUE
HTTPメソッド: GET
認証: "token"クエリパラメーターをURLに追加します。
OpenAPI定義: https://docs.justoneapi.com/openapi/twitter/user-published-posts-v1-ja.json

パラメーター:
- token (query): APIアクセスに必要な認証トークン。 (必須)
- restId (query): Xユーザーの一意な数値識別子(Rest ID)。 (必須)
- cursor (query): 長いタイムラインをナビゲートするためのページングカーソル。

返信形式:実際の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/twitter/get-user-posts/v1?token=YOUR_API_KEY&restId=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/twitter/get-user-posts/v1?token=YOUR_API_KEY&restId=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/twitter/get-user-posts/v1?token=YOUR_API_KEY&restId=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/twitter/get-user-posts/v1?token=YOUR_API_KEY&restId=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/twitter/get-user-posts/v1?token=YOUR_API_KEY&restId=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)。

投稿と返信の関係8 項目

data.timeline[]

一つのタイムラインエントリで、オリジナル、リプライス、クォート、または再投稿を含むことができます。

フィールド タイプ 説明
tweet_id string X投稿ID、文字列として返される。
created_at string 投稿が公開された時期。
text string 投稿のテキスト。
lang string 投稿の報告された言語コード。
conversation_id string 会話内のルート投稿のID、文字列として返される。
reply_to string 直接リプライトされた投稿のIDで、利用可能な場合に文字列として返されます。
sensitive boolean | null 値が利用可能な場合、投稿が潜在的にセンシティブとしてマークされているかどうか。
source string | null 投稿クライアントのラベルで、HTMLリンクまたはnullのいずれかです。
ページング4 項目

data

フィールド タイプ 説明
status string レスポンスデータに返されるステータスラベル。
next_cursor string 値が空でない場合、次のページのカーソルとしてこの値を渡す。
prev_cursor string バックカートリギングで返されるカーソル。
timeline array 要求されたアカウントとページに対して返されるタイムラインエントリ。
アカウントプロフィール15 項目

data.user

要求されたアカウントの公開情報。

フィールド タイプ 説明
id string XアカウントID、文字列として返される。
profile string | null @プレフィックスなしのアカウントユーザー名。
name string | null アカウントの表示名。
avatar string | null プロフィールアバターのURL。
created_at string | null Xアカウントが作成された時期。
blue_verified boolean このアカウントの青いチェックステータス。
protected boolean | null このアカウントがXで保護されているかどうか。
location string 著者がプロフィールで提供する場所テキスト。空でもよい。
affiliates object | array アカウントの所属情報。所属がない場合、レスポンスは空の配列を使用することがある。
affiliates.label object プロフィールに表示される所属ラベル。
affiliates.label.description string 所属のテキストラベル。
affiliates.label.badge object 所属のバッジアートワーク。
affiliates.label.badge.url string アフィリエイトバッジ画像のURL。
affiliates.label.url object 表示されるアフィリエイトラベルに関連するリンク。
affiliates.label.url.url string アフィリエインパッチリンクの目的URL。
ピンされた投稿65 項目

data.pinned

返されるアカウントのピンされた投稿、タイムライン配列から分離されている。

フィールド タイプ 説明
tweet_id string X投稿ID、文字列として返される。
created_at string 投稿が公開された時期。
text string 投稿のテキスト。
lang string 投稿の報告された言語コード。
conversation_id string 会話内のルート投稿のID、文字列として返される。
sensitive boolean | null 値が利用可能な場合、投稿が潜在的にセンシティブとしてマークされているかどうか。
bookmarks integer 報告されたブックマーク数。
favorites integer 報告された「いいね」数。
quotes integer 報告された引用数。
replies integer 報告された返信数。
retweets integer 報告された再投稿数。
views string 数値文字列としての報告された視聴数。一部の埋め込まれた投稿ではnullかもしれない。
author object この投稿の著者の公開プロフィール情報。
author.rest_id string XアカウントID、文字列として返される。
author.name string アカウントの表示名。
author.screen_name string @プレフィックスなしのアカウントユーザー名。
author.avatar string プロフィールアバターのURL。
author.followers_count integer 著者をフォローしているアカウントの報告数。
author.blue_verified boolean このアカウントの青いチェックステータス。
media object | array メディア添付ファイル。添付ファイルがない場合、応答は空の配列を使用できる。
media.video array 添付されたビデオ。
media.video[] object -
media.video[].id string ビデオ添付ファイルのID、文字列として返される。
media.video[].media_url_https string ビデオプレビュー画像のHTTPS URL。
media.video[].variants array 利用可能なビデオ再生バリアント。
media.video[].variants[] object -
media.video[].variants[].url string このビデオバリアントの再生URL。
media.video[].variants[].content_type string このビデオバリアントのメディアタイプ。
media.video[].variants[].bitrate integer このビデオバリアントのビットレートが報告されました。
quoted object このエントリに引用された投稿、利用可能な場合。
quoted.tweet_id string X投稿ID、文字列として返される。
quoted.created_at string 投稿が公開された時期。
quoted.text string 投稿のテキスト。
quoted.lang string 投稿の報告された言語コード。
quoted.conversation_id string 会話内のルート投稿のID、文字列として返される。
quoted.sensitive boolean 値が利用可能な場合、投稿が潜在的にセンシティブとしてマークされているかどうか。
quoted.bookmarks integer 報告されたブックマーク数。
quoted.favorites integer 報告された「いいね」数。
quoted.quotes integer 報告された引用数。
quoted.replies integer 報告された返信数。
quoted.retweets integer 報告された再投稿数。
quoted.views string 数値文字列としての報告された視聴数。一部の埋め込まれた投稿ではnullかもしれない。
quoted.author object この投稿の著者の公開プロフィール情報。
quoted.author.rest_id string XアカウントID、文字列として返される。
quoted.author.name string アカウントの表示名。
quoted.author.screen_name string @プレフィックスなしのアカウントユーザー名。
quoted.author.avatar string プロフィールアバターのURL。
quoted.author.followers_count integer 著者をフォローしているアカウントの報告数。
quoted.author.blue_verified boolean このアカウントの青いチェックステータス。
quoted.media object メディア添付ファイル。添付ファイルがない場合、応答は空の配列を使用できる。
quoted.media.video array 添付されたビデオ。
quoted.media.video[] object -
quoted.media.video[].id string ビデオ添付ファイルのID、文字列として返される。
quoted.media.video[].media_url_https string ビデオプレビュー画像のHTTPS URL。
quoted.media.video[].duration integer ビデオの持続時間、ミリ秒単位。
quoted.media.video[].aspect_ratio array 二つの整数からなる配列で表した動画のアスペクト比。
quoted.media.video[].aspect_ratio[] integer -
quoted.media.video[].original_info object オリジナルビデオのサイズとトリミング情報。
quoted.media.video[].original_info.height integer ピクセル単位の元のビデオ高さ。
quoted.media.video[].original_info.width integer ピクセル単位の元のビデオ幅。
quoted.media.video[].variants array 利用可能なビデオ再生バリアント。
quoted.media.video[].variants[] object -
quoted.media.video[].variants[].url string このビデオバリアントの再生URL。
quoted.media.video[].variants[].content_type string このビデオバリアントのメディアタイプ。
quoted.media.video[].variants[].bitrate integer このビデオバリアントのビットレートが報告されました。
著者6 項目

data.timeline[].author

この投稿の著者の公開プロフィール情報。

フィールド タイプ 説明
rest_id string XアカウントID、文字列として返される。
name string アカウントの表示名。
screen_name string @プレフィックスなしのアカウントユーザー名。
avatar string プロフィールアバターのURL。
followers_count integer 著者をフォローしているアカウントの報告数。
blue_verified boolean このアカウントの青いチェックステータス。
エンゲージメント6 項目

data.timeline[]

フィールド タイプ 説明
bookmarks integer 報告されたブックマーク数。
favorites integer 報告された「いいね」数。
quotes integer 報告された引用数。
replies integer 報告された返信数。
retweets integer 報告された再投稿数。
views string 数値文字列としての報告された視聴数。一部の埋め込まれた投稿ではnullかもしれない。
リンク、言及、メディア37 項目

data.timeline[]

フィールド タイプ 説明
entities object | array 投稿テキスト内に見つかったエンティティ、リンクや言及など。空の配列はエンティティがないことを表します。
entities.urls array 投稿テキスト内に見つかったリンク。
entities.urls[] object -
entities.urls[].url string 投稿テキストに表示されるショートリンク。
entities.urls[].expanded_url string リンクの拡張された目的地URL。
entities.urls[].display_url string 投稿と共に表示される読みやすいリンクラベル。
entities.user_mentions array 投稿で言及されたアカウント。
entities.user_mentions[] object -
entities.user_mentions[].id_str string XアカウントID、文字列として返される。
entities.user_mentions[].name string アカウントの表示名。
entities.user_mentions[].screen_name string @プレフィックスなしのアカウントユーザー名。
entities.symbols array 投稿で返される金融シンボルエンティティ。
entities.symbols[] object -
entities.symbols[].text string シンボルラベルのテキスト。
media object | array メディア添付ファイル。添付ファイルがない場合、応答は空の配列を使用できる。
media.photo array 添付された画像。
media.photo[] object -
media.photo[].id string 画像添付IDで、文字列として返されます。
media.photo[].media_url_https string 画像のHTTPS URL。
media.photo[].sizes object 画像のピクセル単位のサイズ。
media.photo[].sizes.h integer 画像のピクセル単位の高さ。
media.photo[].sizes.w integer 画像のピクセル単位の幅。
media.video array 添付されたビデオ。
media.video[] object -
media.video[].id string ビデオ添付ファイルのID、文字列として返される。
media.video[].media_url_https string ビデオプレビュー画像のHTTPS URL。
media.video[].duration integer ビデオの持続時間、ミリ秒単位。
media.video[].aspect_ratio array 二つの整数からなる配列で表した動画のアスペクト比。
media.video[].aspect_ratio[] integer -
media.video[].original_info object オリジナルビデオのサイズとトリミング情報。
media.video[].original_info.height integer ピクセル単位の元のビデオ高さ。
media.video[].original_info.width integer ピクセル単位の元のビデオ幅。
media.video[].variants array 利用可能なビデオ再生バリアント。
media.video[].variants[] object -
media.video[].variants[].url string このビデオバリアントの再生URL。
media.video[].variants[].content_type string このビデオバリアントのメディアタイプ。
media.video[].variants[].bitrate integer このビデオバリアントのビットレートが報告されました。
再投稿とオリジナル投稿105 項目

data.timeline[]

フィールド タイプ 説明
retweeted object 再投稿のためのオリジナル投稿への参照。
retweeted.id string この再投稿のためのオリジナル投稿のID。両方が返される場合、retweeted_tweet.tweet_idと一致します。
retweeted_tweet object 再投稿エントリに埋め込まれたオリジナル投稿。
retweeted_tweet.tweet_id string X投稿ID、文字列として返される。
retweeted_tweet.created_at string 投稿が公開された時期。
retweeted_tweet.text string 投稿のテキスト。
retweeted_tweet.lang string 投稿の報告された言語コード。
retweeted_tweet.conversation_id string 会話内のルート投稿のID、文字列として返される。
retweeted_tweet.sensitive boolean | null 値が利用可能な場合、投稿が潜在的にセンシティブとしてマークされているかどうか。
retweeted_tweet.bookmarks integer 報告されたブックマーク数。
retweeted_tweet.favorites integer 報告された「いいね」数。
retweeted_tweet.quotes integer 報告された引用数。
retweeted_tweet.replies integer 報告された返信数。
retweeted_tweet.retweets integer 報告された再投稿数。
retweeted_tweet.views string 数値文字列としての報告された視聴数。一部の埋め込まれた投稿ではnullかもしれない。
retweeted_tweet.author object この投稿の著者の公開プロフィール情報。
retweeted_tweet.author.rest_id string XアカウントID、文字列として返される。
retweeted_tweet.author.name string アカウントの表示名。
retweeted_tweet.author.screen_name string @プレフィックスなしのアカウントユーザー名。
retweeted_tweet.author.avatar string プロフィールアバターのURL。
retweeted_tweet.author.blue_verified boolean このアカウントの青いチェックステータス。
retweeted_tweet.entities object | array 投稿テキスト内に見つかったエンティティ、リンクや言及など。空の配列はエンティティがないことを表します。
retweeted_tweet.entities.urls array 投稿テキスト内に見つかったリンク。
retweeted_tweet.entities.urls[] object -
retweeted_tweet.entities.urls[].url string 投稿テキストに表示されるショートリンク。
retweeted_tweet.entities.urls[].expanded_url string リンクの拡張された目的地URL。
retweeted_tweet.entities.urls[].display_url string 投稿と共に表示される読みやすいリンクラベル。
retweeted_tweet.entities.user_mentions array 投稿で言及されたアカウント。
retweeted_tweet.entities.user_mentions[] object -
retweeted_tweet.entities.user_mentions[].id_str string XアカウントID、文字列として返される。
retweeted_tweet.entities.user_mentions[].name string アカウントの表示名。
retweeted_tweet.entities.user_mentions[].screen_name string @プレフィックスなしのアカウントユーザー名。
retweeted_tweet.entities.media array 投稿で返されるメディアリンクエンティティ。
retweeted_tweet.entities.media[] object -
retweeted_tweet.entities.media[].id_str string メディアエンティティIDで、文字列として返されます。
retweeted_tweet.entities.media[].media_url_https string メディアエンティティに関連するHTTPS URL。
retweeted_tweet.entities.media[].type string この添付ファイルのメディアエンティティタイプ。
retweeted_tweet.entities.media[].video_info object ビデオエンティティに付属する再生メタデータ。
retweeted_tweet.entities.media[].video_info.duration_millis integer ビデオの持続時間、ミリ秒単位。
retweeted_tweet.entities.symbols array 投稿で返される金融シンボルエンティティ。
retweeted_tweet.entities.symbols[] object -
retweeted_tweet.entities.symbols[].text string シンボルラベルのテキスト。
retweeted_tweet.media object | array メディア添付ファイル。添付ファイルがない場合、応答は空の配列を使用できる。
retweeted_tweet.media.photo array 添付された画像。
retweeted_tweet.media.photo[] object -
retweeted_tweet.media.photo[].id string 画像添付IDで、文字列として返されます。
retweeted_tweet.media.photo[].media_url_https string 画像のHTTPS URL。
retweeted_tweet.media.photo[].sizes object 画像のピクセル単位のサイズ。
retweeted_tweet.media.photo[].sizes.h integer 画像のピクセル単位の高さ。
retweeted_tweet.media.photo[].sizes.w integer 画像のピクセル単位の幅。
retweeted_tweet.media.video array 添付されたビデオ。
retweeted_tweet.media.video[] object -
retweeted_tweet.media.video[].id string ビデオ添付ファイルのID、文字列として返される。
retweeted_tweet.media.video[].media_url_https string ビデオプレビュー画像のHTTPS URL。
retweeted_tweet.media.video[].duration integer ビデオの持続時間、ミリ秒単位。
retweeted_tweet.media.video[].aspect_ratio array 二つの整数からなる配列で表した動画のアスペクト比。
retweeted_tweet.media.video[].aspect_ratio[] integer -
retweeted_tweet.media.video[].original_info object オリジナルビデオのサイズとトリミング情報。
retweeted_tweet.media.video[].original_info.height integer ピクセル単位の元のビデオ高さ。
retweeted_tweet.media.video[].original_info.width integer ピクセル単位の元のビデオ幅。
retweeted_tweet.media.video[].variants array 利用可能なビデオ再生バリアント。
retweeted_tweet.media.video[].variants[] object -
retweeted_tweet.media.video[].variants[].url string このビデオバリアントの再生URL。
retweeted_tweet.media.video[].variants[].content_type string このビデオバリアントのメディアタイプ。
retweeted_tweet.media.video[].variants[].bitrate integer このビデオバリアントのビットレートが報告されました。
retweeted_tweet.quoted object このエントリに引用された投稿、利用可能な場合。
retweeted_tweet.quoted.tweet_id string X投稿ID、文字列として返される。
retweeted_tweet.quoted.created_at string 投稿が公開された時期。
retweeted_tweet.quoted.text string 投稿のテキスト。
retweeted_tweet.quoted.lang string 投稿の報告された言語コード。
retweeted_tweet.quoted.conversation_id string 会話内のルート投稿のID、文字列として返される。
retweeted_tweet.quoted.sensitive boolean | null 値が利用可能な場合、投稿が潜在的にセンシティブとしてマークされているかどうか。
retweeted_tweet.quoted.bookmarks integer 報告されたブックマーク数。
retweeted_tweet.quoted.favorites integer 報告された「いいね」数。
retweeted_tweet.quoted.quotes integer 報告された引用数。
retweeted_tweet.quoted.replies integer 報告された返信数。
retweeted_tweet.quoted.retweets integer 報告された再投稿数。
retweeted_tweet.quoted.views string 数値文字列としての報告された視聴数。一部の埋め込まれた投稿ではnullかもしれない。
retweeted_tweet.quoted.author object この投稿の著者の公開プロフィール情報。
retweeted_tweet.quoted.author.rest_id string XアカウントID、文字列として返される。
retweeted_tweet.quoted.author.name string アカウントの表示名。
retweeted_tweet.quoted.author.screen_name string @プレフィックスなしのアカウントユーザー名。
retweeted_tweet.quoted.author.avatar string プロフィールアバターのURL。
retweeted_tweet.quoted.author.followers_count integer 著者をフォローしているアカウントの報告数。
retweeted_tweet.quoted.author.blue_verified boolean このアカウントの青いチェックステータス。
retweeted_tweet.quoted.media object | array メディア添付ファイル。添付ファイルがない場合、応答は空の配列を使用できる。
retweeted_tweet.quoted.media.photo array 添付された画像。
retweeted_tweet.quoted.media.photo[] object -
retweeted_tweet.quoted.media.photo[].id string 画像添付IDで、文字列として返されます。
retweeted_tweet.quoted.media.photo[].media_url_https string 画像のHTTPS URL。
retweeted_tweet.quoted.media.photo[].sizes object 画像のピクセル単位のサイズ。
retweeted_tweet.quoted.media.photo[].sizes.h integer 画像のピクセル単位の高さ。
retweeted_tweet.quoted.media.photo[].sizes.w integer 画像のピクセル単位の幅。
retweeted_tweet.quoted.media.video array 添付されたビデオ。
retweeted_tweet.quoted.media.video[] object -
retweeted_tweet.quoted.media.video[].id string ビデオ添付ファイルのID、文字列として返される。
retweeted_tweet.quoted.media.video[].media_url_https string ビデオプレビュー画像のHTTPS URL。
retweeted_tweet.quoted.media.video[].duration integer ビデオの持続時間、ミリ秒単位。
retweeted_tweet.quoted.media.video[].aspect_ratio array 二つの整数からなる配列で表した動画のアスペクト比。
retweeted_tweet.quoted.media.video[].aspect_ratio[] integer -
retweeted_tweet.quoted.media.video[].original_info object オリジナルビデオのサイズとトリミング情報。
retweeted_tweet.quoted.media.video[].original_info.height integer ピクセル単位の元のビデオ高さ。
retweeted_tweet.quoted.media.video[].original_info.width integer ピクセル単位の元のビデオ幅。
retweeted_tweet.quoted.media.video[].variants array 利用可能なビデオ再生バリアント。
retweeted_tweet.quoted.media.video[].variants[] object -
引用された投稿42 項目

data.timeline[].quoted

このエントリに引用された投稿、利用可能な場合。

フィールド タイプ 説明
tweet_id string X投稿ID、文字列として返される。
created_at string 投稿が公開された時期。
text string 投稿のテキスト。
lang string 投稿の報告された言語コード。
conversation_id string 会話内のルート投稿のID、文字列として返される。
sensitive boolean | null 値が利用可能な場合、投稿が潜在的にセンシティブとしてマークされているかどうか。
bookmarks integer 報告されたブックマーク数。
favorites integer 報告された「いいね」数。
quotes integer 報告された引用数。
replies integer 報告された返信数。
retweets integer 報告された再投稿数。
views string | null 数値文字列としての報告された視聴数。一部の埋め込まれた投稿ではnullかもしれない。
author object この投稿の著者の公開プロフィール情報。
author.rest_id string XアカウントID、文字列として返される。
author.name string アカウントの表示名。
author.screen_name string @プレフィックスなしのアカウントユーザー名。
author.avatar string | null プロフィールアバターのURL。
author.followers_count integer 著者をフォローしているアカウントの報告数。
author.blue_verified boolean このアカウントの青いチェックステータス。
media object | array メディア添付ファイル。添付ファイルがない場合、応答は空の配列を使用できる。
media.photo array 添付された画像。
media.photo[] object -
media.photo[].id string 画像添付IDで、文字列として返されます。
media.photo[].media_url_https string 画像のHTTPS URL。
media.photo[].sizes object 画像のピクセル単位のサイズ。
media.photo[].sizes.h integer 画像のピクセル単位の高さ。
media.photo[].sizes.w integer 画像のピクセル単位の幅。
media.video array 添付されたビデオ。
media.video[] object -
media.video[].id string ビデオ添付ファイルのID、文字列として返される。
media.video[].media_url_https string ビデオプレビュー画像のHTTPS URL。
media.video[].duration integer ビデオの持続時間、ミリ秒単位。
media.video[].aspect_ratio array 二つの整数からなる配列で表した動画のアスペクト比。
media.video[].aspect_ratio[] integer -
media.video[].original_info object オリジナルビデオのサイズとトリミング情報。
media.video[].original_info.height integer ピクセル単位の元のビデオ高さ。
media.video[].original_info.width integer ピクセル単位の元のビデオ幅。
media.video[].variants array 利用可能なビデオ再生バリアント。
media.video[].variants[] object -
media.video[].variants[].url string このビデオバリアントの再生URL。
media.video[].variants[].content_type string このビデオバリアントのメディアタイプ。
media.video[].variants[].bitrate integer このビデオバリアントのビットレートが報告されました。

レスポンス例 ​

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