> ## 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.

# 활동 스트림

> X 활동 스트림



## OpenAPI

````yaml /ko/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: Direct Messages(다이렉트 메시지)를 조회하고 관리하기 위한 엔드포인트
    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: Tweet 조회, 검색 및 수정과 관련된 엔드포인트
    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: 활동 스트림
      description: X 활동 스트림
      operationId: activityStream
      parameters:
        - name: backfill_minutes
          in: query
          description: 요청한 백필(backfill) 기간(분 단위)입니다.
          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에서 반환될 수 있는 Activity 이벤트 또는 오류입니다.
      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: Activity 이벤트의 고유 식별자입니다.
      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: 특정 Tweet이나 사용자 등의 필드에 접근할 수 없음을 나타냅니다.
      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: 특정 Tweet, User 등을 조회할 수 없음을 의미하는 Problem입니다.
      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: 지정된 Tweet이나 사용자가 존재하지 않음을 나타내는 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: 특정 Tweet, User 등이 사용자에게 제공되지 않음을 의미하는 Problem입니다.
      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 사용자 객체입니다.
      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: 두 사용자 간 관계에 대한 세부 정보를 반환합니다.
          minItems: 0
          items:
            type: string
            description: 사용자들 간 관계 유형입니다.
            enum:
              - follow_request_received
              - follow_request_sent
              - blocking
              - followed_by
              - following
              - muting
        created_at:
          type: string
          description: 이 사용자가 생성된 시각입니다.
          format: date-time
        description:
          type: string
          description: 사용자가 입력한 경우, 이 사용자의 프로필 설명(‘bio’라고도 함) 텍스트입니다.
        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: 이 사용자에게 다이렉트 메시지를 보낼 수 있는지 여부를 나타냅니다.
        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: Tweet 텍스트를 기반으로 생성된 엔터티 어노테이션입니다.
            allOf:
              - $ref: '#/components/schemas/EntityIndicesInclusiveInclusive'
              - type: object
                description: 어노테이션 데이터를 나타냅니다.
                properties:
                  normalized_text:
                    type: string
                    description: 어노테이션을 결정하는 데 사용된 텍스트입니다.
                    example: Barack Obama
                  probability:
                    type: number
                    description: 어노테이션 type에 대한 신뢰도 점수입니다.
                    minimum: 0
                    maximum: 1
                    format: double
                  type:
                    type: string
                    description: 어노테이션의 type입니다.
                    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: >-
        이 Tweet의 고유 식별자입니다. 일부 언어 및 도구에서 큰 정수를 처리하지 못해 발생하는 문제를 피하기 위해 문자열로
        반환됩니다.
      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: 보류된 콘텐츠의 type이 `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: 두 글자의 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: 텍스트에서 User 멘션으로 인식된 부분과 해당 텍스트 내 시작 및 종료 위치를 나타냅니다.
      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

````