> ## Documentation Index
> Fetch the complete documentation index at: https://generaltranslation.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Activity Stream

> X アクティビティストリーム



## OpenAPI

````yaml /ja/openapi.json GET /2/activity/stream
openapi: 3.0.0
info:
  description: X API v2 で利用可能なエンドポイント
  version: '2.157'
  title: X API v2
  termsOfService: https://developer.x.com/en/developer-terms/agreement-and-policy.html
  contact:
    name: X Developers
    url: https://developer.x.com/
  license:
    name: X Developer Agreement and Policy
    url: https://developer.x.com/en/developer-terms/agreement-and-policy.html
servers:
  - description: X API
    url: https://api.x.com
security: []
tags:
  - name: Account Activity
    description: AAA サブスクリプションの取得および管理用のエンドポイント
    externalDocs:
      description: 詳細はこちら
      url: >-
        https://docs.x.com/x-api/enterprise-gnip-2.0/fundamentals/account-activity
  - name: Bookmarks
    description: ユーザーのブックマークを取得および管理するためのエンドポイント
    externalDocs:
      description: 詳細を見る
      url: https://developer.twitter.com/en/docs/twitter-api/bookmarks
  - name: Compliance
    description: 自社システム内の X データのコンプライアンスを維持するためのエンドポイント
    externalDocs:
      description: 詳細を見る
      url: >-
        https://developer.twitter.com/en/docs/twitter-api/compliance/batch-tweet/introduction
  - name: Connections
    description: ストリーミング接続を扱うエンドポイント
    externalDocs:
      description: 詳細を見る
      url: https://developer.x.com/en/docs/x-api/connections
  - name: Direct Messages
    description: ダイレクトメッセージを取得および管理するためのエンドポイント
    externalDocs:
      description: 詳細を見る
      url: https://developer.twitter.com/en/docs/twitter-api/direct-messages
  - name: General
    description: その他の一般的な API 機能向けエンドポイント
    externalDocs:
      description: 詳細を見る
      url: https://developer.twitter.com/en/docs/twitter-api
  - name: Lists
    description: リストの取得と管理用エンドポイント
    externalDocs:
      description: 詳細を見る
      url: https://developer.twitter.com/en/docs/twitter-api/lists
  - name: Media
    description: メディア用エンドポイント
    externalDocs:
      description: 詳細を見る
      url: https://developer.x.com
  - name: MediaUpload
    description: メディアアップロード用エンドポイント
    externalDocs:
      description: 詳細を見る
      url: https://developer.x.com
  - name: News
    description: ニュース記事取得用エンドポイント
    externalDocs:
      description: 詳細を見る
      url: https://developer.twitter.com/en/docs/twitter-api/news
  - name: Spaces
    description: Spaces の取得と管理用エンドポイント
    externalDocs:
      description: 詳細を見る
      url: https://developer.twitter.com/en/docs/twitter-api/spaces
  - name: Stream
    description: ストリーミングに関連するエンドポイント
    externalDocs:
      description: 詳細を見る
      url: https://developer.x.com
  - name: Tweets
    description: ツイートの取得・検索・変更に関連するエンドポイント
    externalDocs:
      description: 詳細を見る
      url: https://developer.twitter.com/en/docs/twitter-api/tweets/lookup
  - name: Users
    description: ユーザーおよびユーザー間の関係を取得・管理するためのエンドポイント
    externalDocs:
      description: 詳細を見る
      url: https://developer.twitter.com/en/docs/twitter-api/users/lookup
paths:
  /2/activity/stream:
    get:
      tags:
        - Activity
        - Stream
      summary: Activity Stream
      description: X アクティビティストリーム
      operationId: activityStream
      parameters:
        - name: backfill_minutes
          in: query
          description: 要求されたバックフィルの時間（分単位）。
          required: false
          schema:
            type: integer
            minimum: 0
            maximum: 5
            format: int32
          style: form
        - name: start_time
          in: query
          description: YYYY-MM-DDTHH:mm:ssZ。ポストラベルが提供される最も早い UTC タイムスタンプ。
          required: false
          example: '2021-02-01T18:40:40.000Z'
          schema:
            type: string
            format: date-time
          style: form
        - name: end_time
          in: query
          description: YYYY-MM-DDTHH:mm:ssZ。ポストラベルが提供される最新の UTC タイムスタンプ。
          required: false
          example: '2021-02-01T18:40:40.000Z'
          schema:
            type: string
            format: date-time
          style: form
      responses:
        '200':
          description: リクエストは成功しました。
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ActivityStreamingResponse'
        default:
          description: リクエストは失敗しました。
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
      security:
        - BearerToken: []
      externalDocs:
        url: https://docs.x.com/x-api/activity/activity-stream
components:
  schemas:
    ActivityStreamingResponse:
      type: object
      description: X Activity ストリーミング API から返される可能性のあるアクティビティイベントまたはエラーです。
      properties:
        data:
          type: object
          properties:
            event_type:
              type: string
            event_uuid:
              $ref: '#/components/schemas/ActivityEventId'
            filter:
              $ref: '#/components/schemas/ActivitySubscriptionFilter'
            payload:
              $ref: '#/components/schemas/ActivityStreamingResponsePayload'
            tag:
              type: string
        errors:
          type: array
          minItems: 1
          items:
            $ref: '#/components/schemas/Problem'
    Error:
      type: object
      required:
        - code
        - message
      properties:
        code:
          type: integer
          format: int32
        message:
          type: string
    Problem:
      type: object
      description: >-
        IETF RFC 7807 (https://tools.ietf.org/html/rfc7807) で定義された HTTP Problem
        Details オブジェクト。
      required:
        - type
        - title
      properties:
        detail:
          type: string
        status:
          type: integer
        title:
          type: string
        type:
          type: string
      discriminator:
        propertyName: type
        mapping:
          about:blank:
            $ref: '#/components/schemas/GenericProblem'
          https://api.twitter.com/2/problems/client-disconnected:
            $ref: '#/components/schemas/ClientDisconnectedProblem'
          https://api.twitter.com/2/problems/client-forbidden:
            $ref: '#/components/schemas/ClientForbiddenProblem'
          https://api.twitter.com/2/problems/conflict:
            $ref: '#/components/schemas/ConflictProblem'
          https://api.twitter.com/2/problems/disallowed-resource:
            $ref: '#/components/schemas/DisallowedResourceProblem'
          https://api.twitter.com/2/problems/duplicate-rules:
            $ref: '#/components/schemas/DuplicateRuleProblem'
          https://api.twitter.com/2/problems/invalid-request:
            $ref: '#/components/schemas/InvalidRequestProblem'
          https://api.twitter.com/2/problems/invalid-rules:
            $ref: '#/components/schemas/InvalidRuleProblem'
          https://api.twitter.com/2/problems/noncompliant-rules:
            $ref: '#/components/schemas/NonCompliantRulesProblem'
          https://api.twitter.com/2/problems/not-authorized-for-field:
            $ref: '#/components/schemas/FieldUnauthorizedProblem'
          https://api.twitter.com/2/problems/not-authorized-for-resource:
            $ref: '#/components/schemas/ResourceUnauthorizedProblem'
          https://api.twitter.com/2/problems/operational-disconnect:
            $ref: '#/components/schemas/OperationalDisconnectProblem'
          https://api.twitter.com/2/problems/resource-not-found:
            $ref: '#/components/schemas/ResourceNotFoundProblem'
          https://api.twitter.com/2/problems/resource-unavailable:
            $ref: '#/components/schemas/ResourceUnavailableProblem'
          https://api.twitter.com/2/problems/rule-cap:
            $ref: '#/components/schemas/RulesCapProblem'
          https://api.twitter.com/2/problems/streaming-connection:
            $ref: '#/components/schemas/ConnectionExceptionProblem'
          https://api.twitter.com/2/problems/unsupported-authentication:
            $ref: '#/components/schemas/UnsupportedAuthenticationProblem'
          https://api.twitter.com/2/problems/usage-capped:
            $ref: '#/components/schemas/UsageCapExceededProblem'
    ActivityEventId:
      type: string
      description: アクティビティイベントの一意の識別子です。
      pattern: ^[0-9]{1,19}$
      example: '1146654567674912769'
    ActivitySubscriptionFilter:
      type: object
      description: XAA のサブスクリプション。
      properties:
        keyword:
          $ref: '#/components/schemas/Keyword'
        user_id:
          $ref: '#/components/schemas/UserId'
      additionalProperties: false
    ActivityStreamingResponsePayload:
      oneOf:
        - $ref: '#/components/schemas/ProfileUpdateActivityResponsePayload'
        - $ref: '#/components/schemas/NewsActivityResponsePayload'
        - $ref: '#/components/schemas/FollowActivityResponsePayload'
      discriminator:
        propertyName: ../event_type
        mapping:
          follow.follow:
            $ref: '#/components/schemas/FollowActivityResponsePayload'
          follow.unfollow:
            $ref: '#/components/schemas/FollowActivityResponsePayload'
          news.new:
            $ref: '#/components/schemas/NewsActivityResponsePayload'
          profile.update.affiliate_badge:
            $ref: '#/components/schemas/ProfileUpdateActivityResponsePayload'
          profile.update.banner_picture:
            $ref: '#/components/schemas/ProfileUpdateActivityResponsePayload'
          profile.update.bio:
            $ref: '#/components/schemas/ProfileUpdateActivityResponsePayload'
          profile.update.geo:
            $ref: '#/components/schemas/ProfileUpdateActivityResponsePayload'
          profile.update.profile_picture:
            $ref: '#/components/schemas/ProfileUpdateActivityResponsePayload'
          profile.update.screenname:
            $ref: '#/components/schemas/ProfileUpdateActivityResponsePayload'
          profile.update.url:
            $ref: '#/components/schemas/ProfileUpdateActivityResponsePayload'
          profile.update.verified_badge:
            $ref: '#/components/schemas/ProfileUpdateActivityResponsePayload'
    GenericProblem:
      description: HTTP ステータスコードで提供される情報以外の追加情報を持たない汎用的な Problem です。
      allOf:
        - $ref: '#/components/schemas/Problem'
    ClientDisconnectedProblem:
      description: クライアントとの接続が切断されました。
      allOf:
        - $ref: '#/components/schemas/Problem'
    ClientForbiddenProblem:
      description: このクライアントがこのリクエストを実行することを禁止されていることを示すProblemです。
      allOf:
        - $ref: '#/components/schemas/Problem'
        - type: object
          properties:
            reason:
              type: string
              enum:
                - official-client-forbidden
                - client-not-enrolled
            registration_url:
              type: string
              format: uri
    ConflictProblem:
      description: すでに進行中のジョブがある場合は、新しいジョブを作成できません。
      allOf:
        - $ref: '#/components/schemas/Problem'
    DisallowedResourceProblem:
      description: 要求されたリソースがこの API の原則に違反していることを示す Problem。
      allOf:
        - $ref: '#/components/schemas/Problem'
        - type: object
          required:
            - resource_id
            - resource_type
            - section
          properties:
            resource_id:
              type: string
            resource_type:
              type: string
              enum:
                - user
                - tweet
                - media
                - list
                - space
            section:
              type: string
              enum:
                - data
                - includes
    DuplicateRuleProblem:
      description: 送信したルールが重複しています。
      allOf:
        - $ref: '#/components/schemas/Problem'
        - type: object
          properties:
            id:
              type: string
            value:
              type: string
    InvalidRequestProblem:
      description: このリクエストが無効であることを示す Problem。
      allOf:
        - $ref: '#/components/schemas/Problem'
        - type: object
          properties:
            errors:
              type: array
              minItems: 1
              items:
                type: object
                properties:
                  message:
                    type: string
                  parameters:
                    type: object
                    additionalProperties:
                      type: array
                      items:
                        type: string
    InvalidRuleProblem:
      description: 送信されたルールは無効です。
      allOf:
        - $ref: '#/components/schemas/Problem'
    NonCompliantRulesProblem:
      description: ユーザーのルールセットが仕様に準拠していないことを示す Problem。
      allOf:
        - $ref: '#/components/schemas/Problem'
    FieldUnauthorizedProblem:
      description: 特定のツイートやユーザーなどのフィールドを閲覧する権限がないことを示す Problem です。
      allOf:
        - $ref: '#/components/schemas/Problem'
        - type: object
          required:
            - resource_type
            - field
            - section
          properties:
            field:
              type: string
            resource_type:
              type: string
              enum:
                - user
                - tweet
                - media
                - list
                - space
            section:
              type: string
              enum:
                - data
                - includes
    ResourceUnauthorizedProblem:
      description: 特定のツイートやユーザーなどを閲覧する権限がないことを示す問題です。
      allOf:
        - $ref: '#/components/schemas/Problem'
        - type: object
          required:
            - value
            - resource_id
            - resource_type
            - section
            - parameter
          properties:
            parameter:
              type: string
            resource_id:
              type: string
            resource_type:
              type: string
              enum:
                - user
                - tweet
                - media
                - list
                - space
            section:
              type: string
              enum:
                - data
                - includes
            value:
              type: string
    OperationalDisconnectProblem:
      description: 運用上の理由により接続が切断されました。
      allOf:
        - $ref: '#/components/schemas/Problem'
        - type: object
          properties:
            disconnect_type:
              type: string
              enum:
                - OperationalDisconnect
                - UpstreamOperationalDisconnect
                - ForceDisconnect
                - UpstreamUncleanDisconnect
                - SlowReader
                - InternalError
                - ClientApplicationStateDegraded
                - InvalidRules
    ResourceNotFoundProblem:
      description: 指定されたツイートやユーザーなどが存在しないことを示す Problem です。
      allOf:
        - $ref: '#/components/schemas/Problem'
        - type: object
          required:
            - parameter
            - value
            - resource_id
            - resource_type
          properties:
            parameter:
              type: string
              minLength: 1
            resource_id:
              type: string
            resource_type:
              type: string
              enum:
                - user
                - tweet
                - media
                - list
                - space
            value:
              type: string
              description: 値はそのフィールドのスキーマに準拠します。
    ResourceUnavailableProblem:
      description: 特定のツイートやユーザーなどがあなたからは利用できない状態であることを示す問題です。
      allOf:
        - $ref: '#/components/schemas/Problem'
        - type: object
          required:
            - parameter
            - resource_id
            - resource_type
          properties:
            parameter:
              type: string
              minLength: 1
            resource_id:
              type: string
            resource_type:
              type: string
              enum:
                - user
                - tweet
                - media
                - list
                - space
    RulesCapProblem:
      description: ルール数の上限を超えました。
      allOf:
        - $ref: '#/components/schemas/Problem'
    ConnectionExceptionProblem:
      description: 接続に問題が発生していることを示す Problem。
      allOf:
        - $ref: '#/components/schemas/Problem'
        - type: object
          properties:
            connection_issue:
              type: string
              enum:
                - TooManyConnections
                - ProvisioningSubscription
                - RuleConfigurationIssue
                - RulesInvalidIssue
    UnsupportedAuthenticationProblem:
      description: 使用されている認証方式がサポートされていないことを示す Problem オブジェクト。
      allOf:
        - $ref: '#/components/schemas/Problem'
    UsageCapExceededProblem:
      description: 使用量の上限を超過したことを示す Problem オブジェクト。
      allOf:
        - $ref: '#/components/schemas/Problem'
        - type: object
          properties:
            period:
              type: string
              enum:
                - Daily
                - Monthly
            scope:
              type: string
              enum:
                - Account
                - Product
    Keyword:
      type: string
      description: フィルターに使用するキーワード。
      minLength: 1
      maxLength: 150
      example: The President
    UserId:
      type: string
      description: このユーザーの一意の識別子。大きな整数値を扱えない言語やツールとの互換性の問題を避けるため、文字列として返されます。
      pattern: ^[0-9]{1,19}$
      example: '2244994945'
    ProfileUpdateActivityResponsePayload:
      type: object
      properties:
        after:
          type: string
        before:
          type: string
      additionalProperties: false
    NewsActivityResponsePayload:
      type: object
      properties:
        category:
          type: string
        headline:
          type: string
        hook:
          type: string
        summary:
          type: string
      additionalProperties: false
    FollowActivityResponsePayload:
      type: object
      properties:
        source:
          $ref: '#/components/schemas/User'
        target:
          $ref: '#/components/schemas/User'
      additionalProperties: false
    User:
      type: object
      description: X の User オブジェクト。
      required:
        - id
        - name
        - username
      properties:
        affiliation:
          type: object
          description: ユーザーの所属に関するメタデータ。
          properties:
            badge_url:
              type: string
              description: 所属に対応するバッジの URL。
              format: uri
            description:
              type: string
              description: 所属の説明。
            url:
              type: string
              description: 所属の詳細情報への URL（存在する場合）。
              format: uri
            user_id:
              type: array
              minItems: 1
              items:
                $ref: '#/components/schemas/UserId'
        connection_status:
          type: array
          description: 2人のユーザー間の関係の詳細を返します。
          minItems: 0
          items:
            type: string
            description: ユーザー同士の関係の種類。
            enum:
              - follow_request_received
              - follow_request_sent
              - blocking
              - followed_by
              - following
              - muting
        created_at:
          type: string
          description: この User が作成された時刻。
          format: date-time
        description:
          type: string
          description: ユーザーが設定している場合、そのユーザーのプロフィールの説明文（「自己紹介」とも呼ばれます）のテキストです。
        entities:
          type: object
          description: ユーザーのプロフィールの説明文内で検出されたメタデータのリストです.
          properties:
            description:
              $ref: '#/components/schemas/FullTextEntities'
            url:
              type: object
              description: ユーザーのプロフィールで指定されている URL に関する、開始・終了インデックスを含む展開後の詳細情報です。
              properties:
                urls:
                  type: array
                  minItems: 1
                  items:
                    $ref: '#/components/schemas/UrlEntity'
        id:
          $ref: '#/components/schemas/UserId'
        location:
          type: string
          description: >-
            ユーザーがプロフィールで指定している場合の所在地です。これは自由入力の値であるため、必ずしも有効な所在地を示すとは限りませんが、位置情報クエリを用いた検索の際にあいまいに解釈されて利用される場合があります。
        most_recent_tweet_id:
          $ref: '#/components/schemas/TweetId'
        name:
          type: string
          description: ユーザーのプロフィールに表示される表示名です。
        pinned_tweet_id:
          $ref: '#/components/schemas/TweetId'
        profile_banner_url:
          type: string
          description: このユーザーのプロフィールバナーのURLです。
          format: uri
        profile_image_url:
          type: string
          description: このユーザーのプロフィール画像のURLです。
          format: uri
        protected:
          type: boolean
          description: このユーザーが自分の投稿を保護（つまり非公開）にする設定を選択しているかどうかを示します。
        public_metrics:
          type: object
          description: このユーザーに関する各種指標の一覧です。
          required:
            - followers_count
            - following_count
            - tweet_count
            - listed_count
          properties:
            followers_count:
              type: integer
              description: このユーザーをフォローしているユーザー数です。
            following_count:
              type: integer
              description: このユーザーがフォローしているユーザー数です。
            like_count:
              type: integer
              description: このユーザーが行ったいいねの数です。
            listed_count:
              type: integer
              description: このユーザーが含まれているリストの数です。
            tweet_count:
              type: integer
              description: このユーザーによるポスト（リツイートを含む）の数。
        receives_your_dm:
          type: boolean
          description: このユーザーにDMを送信できるかどうかを示します。
        subscription_type:
          type: string
          description: 'ユーザーの X Blue サブスクリプションの種類。例: Basic、Premium、PremiumPlus、None。'
          enum:
            - Basic
            - Premium
            - PremiumPlus
            - None
        url:
          type: string
          description: ユーザープロフィールで指定されている URL。
        username:
          $ref: '#/components/schemas/UserName'
        verified:
          type: boolean
          description: このユーザーが X で認証済みかどうかを示します。
        verified_type:
          type: string
          description: 'ユーザーの X Blue 認証種別。例: blue、government、business、none。'
          enum:
            - blue
            - government
            - business
            - none
        withheld:
          $ref: '#/components/schemas/UserWithheld'
      example:
        created_at: '2013-12-14T04:35:55Z'
        id: '2244994945'
        name: X Dev
        protected: false
        username: TwitterDev
    FullTextEntities:
      type: object
      properties:
        annotations:
          type: array
          minItems: 1
          items:
            description: ツイート本文に基づいて抽出されたエンティティのアノテーション。
            allOf:
              - $ref: '#/components/schemas/EntityIndicesInclusiveInclusive'
              - type: object
                description: アノテーションデータを表します。
                properties:
                  normalized_text:
                    type: string
                    description: このアノテーションを決定するために使用されたテキスト。
                    example: Barack Obama
                  probability:
                    type: number
                    description: このアノテーション種別に対する信頼度スコア。
                    minimum: 0
                    maximum: 1
                    format: double
                  type:
                    type: string
                    description: アノテーションの種別。
                    example: Person
        cashtags:
          type: array
          minItems: 1
          items:
            $ref: '#/components/schemas/CashtagEntity'
        hashtags:
          type: array
          minItems: 1
          items:
            $ref: '#/components/schemas/HashtagEntity'
        mentions:
          type: array
          minItems: 1
          items:
            $ref: '#/components/schemas/MentionEntity'
        urls:
          type: array
          minItems: 1
          items:
            $ref: '#/components/schemas/UrlEntity'
    UrlEntity:
      description: URL として認識されたテキスト部分と、そのテキスト内での開始位置および終了位置を表します。
      allOf:
        - $ref: '#/components/schemas/EntityIndicesInclusiveExclusive'
        - $ref: '#/components/schemas/UrlFields'
    TweetId:
      type: string
      description: このツイートの一意の識別子。大きな整数を扱えない言語やツールでの問題を避けるため、文字列として返されます。
      pattern: ^[0-9]{1,19}$
      example: '1346889436626259968'
    UserName:
      type: string
      description: このユーザーの X 上のハンドル（スクリーンネーム）。
      pattern: ^[A-Za-z0-9_]{1,15}$
    UserWithheld:
      type: object
      description: >-
        [閲覧制限されたコンテンツ](https://help.twitter.com/en/rules-and-policies/tweet-withheld-by-country)
        に関する詳細を示します。
      required:
        - country_codes
      properties:
        country_codes:
          type: array
          description: このコンテンツを利用できない国の一覧を提供します。
          minItems: 1
          uniqueItems: true
          items:
            $ref: '#/components/schemas/CountryCode'
        scope:
          type: string
          description: この閲覧制限対象が `user` であることを示します。
          enum:
            - user
    EntityIndicesInclusiveInclusive:
      type: object
      description: >-
        認識されたエンティティ（例：ハッシュタグやメンション）の境界範囲（開始インデックスと終了インデックス）を表します。`start` は `end`
        よりも小さい必要があります。開始インデックスと終了インデックスのどちらも、その位置を含みます。
      required:
        - start
        - end
      properties:
        end:
          type: integer
          description: このエンティティが終了する位置のインデックス（0 始まり）です。このインデックスはその位置を含みます。
          minimum: 0
          example: 61
        start:
          type: integer
          description: このエンティティが開始する位置のインデックス（0 始まり）です。このインデックスはその位置を含みます。
          minimum: 0
          example: 50
    CashtagEntity:
      allOf:
        - $ref: '#/components/schemas/EntityIndicesInclusiveExclusive'
        - $ref: '#/components/schemas/CashtagFields'
    HashtagEntity:
      allOf:
        - $ref: '#/components/schemas/EntityIndicesInclusiveExclusive'
        - $ref: '#/components/schemas/HashtagFields'
    MentionEntity:
      allOf:
        - $ref: '#/components/schemas/EntityIndicesInclusiveExclusive'
        - $ref: '#/components/schemas/MentionFields'
    EntityIndicesInclusiveExclusive:
      type: object
      description: >-
        認識されたエンティティ（例: ハッシュタグやメンション）の境界（開始インデックスと終了インデックス）を表します。`start` は必ず
        `end`
        より小さい値でなければなりません。開始インデックスは「含む（inclusive）」であり、終了インデックスは「含まない（exclusive）」です。
      required:
        - start
        - end
      properties:
        end:
          type: integer
          description: このエンティティが終了する位置を示すインデックス（0 始まり）です。このインデックスは「含まない（exclusive）」です。
          minimum: 0
          example: 61
        start:
          type: integer
          description: このエンティティが開始する位置を示すインデックス（0 始まり）です。このインデックスは「含む（inclusive）」です。
          minimum: 0
          example: 50
    UrlFields:
      type: object
      description: URL として認識されたテキスト部分を表します。
      required:
        - url
      properties:
        description:
          type: string
          description: URL のランディングページの説明。
          example: This is a description of the website.
        display_url:
          type: string
          description: X クライアントで表示される URL。
          example: twittercommunity.com/t/introducing-…
        expanded_url:
          $ref: '#/components/schemas/Url'
        images:
          type: array
          minItems: 1
          items:
            $ref: '#/components/schemas/UrlImage'
        media_key:
          $ref: '#/components/schemas/MediaKey'
        status:
          $ref: '#/components/schemas/HttpStatusCode'
        title:
          type: string
          description: URL が指し示すページのタイトル。
          example: Introducing the v2 follow lookup endpoints
        unwound_url:
          type: string
          description: 最終的に解決された完全な URL。
          format: uri
          example: >-
            https://twittercommunity.com/t/introducing-the-v2-follow-lookup-endpoints/147118
        url:
          $ref: '#/components/schemas/Url'
    CountryCode:
      type: string
      description: 2 文字の ISO 3166-1 alpha-2 国コード。
      pattern: ^[A-Z]{2}$
      example: US
    CashtagFields:
      type: object
      description: Cashtag として認識されたテキスト範囲と、そのテキスト内での開始位置および終了位置を表します。
      required:
        - tag
      properties:
        tag:
          type: string
          example: TWTR
    HashtagFields:
      type: object
      description: ハッシュタグとして認識されたテキスト部分と、そのテキスト内での開始位置および終了位置を表します。
      required:
        - tag
      properties:
        tag:
          type: string
          description: ハッシュタグのテキスト。
          example: MondayMotivation
    MentionFields:
      type: object
      description: テキスト内でユーザー言及として認識された部分と、その開始位置および終了位置を表します。
      required:
        - username
      properties:
        id:
          $ref: '#/components/schemas/UserId'
        username:
          $ref: '#/components/schemas/UserName'
    Url:
      type: string
      description: 形式が正しい有効な URL。
      format: uri
      example: https://developer.twitter.com/en/docs/twitter-api
    UrlImage:
      type: object
      description: URL に関連付けられた画像に関する情報を表します。
      properties:
        height:
          $ref: '#/components/schemas/MediaHeight'
        url:
          $ref: '#/components/schemas/Url'
        width:
          $ref: '#/components/schemas/MediaWidth'
    MediaKey:
      type: string
      description: このアタッチメントに対する media_key 識別子です。
      pattern: ^([0-9]+)_([0-9]+)$
    HttpStatusCode:
      type: integer
      description: HTTP ステータスコード。
      minimum: 100
      maximum: 599
    MediaHeight:
      type: integer
      description: メディアの高さ（ピクセル単位）です。
      minimum: 0
    MediaWidth:
      type: integer
      description: メディアの幅（ピクセル単位）。
      minimum: 0
  securitySchemes:
    BearerToken:
      type: http
      scheme: bearer

````