メインコンテンツへスキップ
GET
/
2
/
tweets
/
analytics
ポストの分析情報を取得
curl --request GET \
  --url https://api.x.com/2/tweets/analytics \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "id": "1346889436626259968",
      "timestamped_metrics": [
        {
          "metrics": {
            "app_install_attempts": 123,
            "app_opens": 123,
            "detail_expands": 123,
            "email_tweet": 123,
            "engagements": 123,
            "follows": 123,
            "hashtag_clicks": 123,
            "impressions": 123,
            "likes": 123,
            "link_clicks": 123,
            "media_engagements": 123,
            "media_views": 123,
            "permalink_clicks": 123,
            "profile_visits": 123,
            "quote_tweets": 123,
            "replies": 123,
            "retweets": 123,
            "url_clicks": 123,
            "user_profile_clicks": 123
          },
          "timestamp": "2025-03-17T06:30:00Z"
        }
      ]
    }
  ],
  "errors": [
    {
      "title": "<string>",
      "type": "<string>",
      "detail": "<string>",
      "status": 123
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://generaltranslation.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

承認

Authorization
string
header
必須

The access token received from the authorization server in the OAuth 2.0 flow.

クエリパラメータ

ids
string[]
必須

カンマ区切りのポスト ID のリスト。1 回のリクエストで最大 100 件まで指定できます。

Required array length: 1 - 100 elements

このツイートの一意の識別子。大きな整数を扱えない言語やツールでの問題を避けるため、文字列として返されます。

Pattern: ^[0-9]{1,19}$
end_time
string<date-time>
必須

YYYY-MM-DDTHH:mm:ssZ 形式の、時間範囲の終了時刻を表す UTC タイムスタンプ。

start_time
string<date-time>
必須

YYYY-MM-DDTHH:mm:ssZ。時間範囲の開始を表す UTC のタイムスタンプ。

granularity
enum<string>
デフォルト:total
必須

検索カウント結果の集計粒度。

利用可能なオプション:
hourly,
daily,
weekly,
total
analytics.fields
enum<string>[]

表示対象の Analytics フィールドをカンマ区切りで指定するリスト。 Analytics オブジェクトで利用可能なフィールド。

Minimum array length: 1
利用可能なオプション:
app_install_attempts,
app_opens,
bookmarks,
detail_expands,
email_tweet,
engagements,
follows,
hashtag_clicks,
id,
impressions,
likes,
media_views,
permalink_clicks,
quote_tweets,
replies,
retweets,
shares,
timestamp,
unfollows,
unlikes,
url_clicks,
user_profile_clicks
:
[
"app_install_attempts",
"app_opens",
"bookmarks",
"detail_expands",
"email_tweet",
"engagements",
"follows",
"hashtag_clicks",
"id",
"impressions",
"likes",
"media_views",
"permalink_clicks",
"quote_tweets",
"replies",
"retweets",
"shares",
"timestamp",
"unfollows",
"unlikes",
"url_clicks",
"user_profile_clicks"
]

レスポンス

リクエストは成功しました。

data
object[]
errors
object[]
Minimum array length: 1

IETF RFC 7807 (https://tools.ietf.org/html/rfc7807) で定義された HTTP Problem Details オブジェクト。