Felo API PlatformFelo API Platform
Tất cả endpoint của X
v0.2.0-beta
OpenAPI 3.1.0

Lấy ngữ cảnh chuỗi tweet

Máy chủ:https://openapi.felo.ai
Thư viện client

Twitter / X

​

Query public users, posts, communities and trends.

Lấy ngữ cảnh chuỗi tweet

​

Dựng lại cuộc hội thoại xung quanh một tweet. Chấp nhận phản hồi hoặc tweet gốc và trả về chuỗi tweet xung quanh, phân trang bằng cursor. Dùng khi một tweet thiếu ngữ cảnh và bạn cần chuỗi tweet cha để diễn giải chính xác. Trả về tweet trong tweets cùng has_next_page và next_cursor. Nếu chỉ cần các phản hồi bên dưới một bài đăng, dùng get_twitter_tweet_replies_v2.

Tham chiếu giá

  • Đo lường: Số lượng kết quả được đo lường.
  • Ước tính tham chiếu cho mỗi yêu cầu: USD 0.00555.
  • Cơ sở chi phí tối thiểu: USD 0.00015.
  • Hệ số khách hàng tham chiếu: 1.0. Không áp dụng lại cho số tiền khách hàng đã quyết toán.
  • Cơ sở chi phí không xác lập giá cuối cùng cho khách hàng, kể cả khi bằng 0.

Chỉ là siêu dữ liệu tham chiếu, không phải báo giá cho tài khoản, mức giá được bảo đảm hay hạn mức chi tiêu. Tín dụng tài nguyên không phải tín dụng Felo. Khoản phí cuối cùng tuân theo bản ghi thanh toán của Felo.

Tham số truy vấn
  • cursor
    Kiểu: string
  • tweetId
    Kiểu: string
Phản hồi
  • 200
    Kiểu: object · ResponseCbc4F8806E32_TweetThreadContextResponse

    Phản hồi thành công

    • has_next_page
      Kiểu: boolean
    • msg
      Kiểu: string
    • next_cursor
      Kiểu: string
    • status
      Kiểu: string enum
      giá trị
      • success
      • error
    • tweets
      Kiểu: array object[] · ResponseCbc4F8806E32_Tweet[]
      • author
        Kiểu: object · ResponseCbc4F8806E32_User
        • automatedBy
          Kiểu: string
        • canDm
          Kiểu: boolean
        • coverPicture
          Kiểu: string
        • createdAt
          Kiểu: string
        • description
          Kiểu: string
        • favouritesCount
          Kiểu: integer

          Integer numbers.

        • followers
          Kiểu: integer

          Integer numbers.

        • following
          Kiểu: integer

          Integer numbers.

        • hasCustomTimelines
          Kiểu: boolean
        • id
          Kiểu: string
        • isAutomated
          Kiểu: boolean
        • isBlueVerified
          Kiểu: boolean
        • isTranslator
          Kiểu: boolean
        • location
          Kiểu: string
        • mediaCount
          Kiểu: integer

          Integer numbers.

        • message
          Kiểu: string
        • name
          Kiểu: string
        • pinnedTweetIds
          Kiểu: array string[]
        • possiblySensitive
          Kiểu: boolean
        • profilePicture
          Kiểu: string
        • statusesCount
          Kiểu: integer

          Integer numbers.

        • type
          Kiểu: string
        • unavailable
          Kiểu: boolean
        • unavailableReason
          Kiểu: string
        • url
          Kiểu: string
        • userName
          Kiểu: string
        • verifiedType
          Kiểu: string
        • withheldInCountries
          Kiểu: array string[]
      • bookmarkCount
        Kiểu: integer

        Integer numbers.

      • conversationId
        Kiểu: string
      • createdAt
        Kiểu: string
      • displayTextRange
        Kiểu: array integer[]
      • entities
        Kiểu: object · ResponseCbc4F8806E32_Entities
        • hashtags
          Kiểu: array object[]
          • indices
            Kiểu: array integer[]
          • text
            Kiểu: string
        • urls
          Kiểu: array object[]
          • display_url
            Kiểu: string
          • expanded_url
            Kiểu: string
          • indices
            Kiểu: array integer[]
          • url
            Kiểu: string
        • user_mentions
          Kiểu: array object[]
          • id_str
            Kiểu: string
          • name
            Kiểu: string
          • screen_name
            Kiểu: string
      • id
        Kiểu: string
      • inReplyToId
        Kiểu: string
      • inReplyToUserId
        Kiểu: string
      • inReplyToUsername
        Kiểu: string
      • isLimitedReply
        Kiểu: boolean
      • isReply
        Kiểu: boolean
      • lang
        Kiểu: string
      • likeCount
        Kiểu: integer

        Integer numbers.

      • quoteCount
        Kiểu: integer

        Integer numbers.

      • quoted_tweet
        Kiểu: string
      • replyCount
        Kiểu: integer

        Integer numbers.

      • retweetCount
        Kiểu: integer

        Integer numbers.

      • retweeted_tweet
        Kiểu: string
      • source
        Kiểu: string
      • text
        Kiểu: string
      • type
        Kiểu: string
      • url
        Kiểu: string
      • viewCount
        Kiểu: integer

        Integer numbers.

    application/json
  • 400

    Không thể xử lý yêu cầu. Hãy kiểm tra các tham số yêu cầu.

  • 401

    Cần có khóa API Felo hợp lệ.

  • 402

    Không thể tiếp tục yêu cầu vì chưa đáp ứng yêu cầu thanh toán.

  • 403

    Tài khoản không được phép thực hiện thao tác này.

  • 429

    Đã đạt giới hạn yêu cầu hoặc giới hạn chi tiêu.

  • 502

    Dịch vụ không thể hoàn tất yêu cầu.

  • 503

    API hoặc dịch vụ thanh toán tạm thời không khả dụng.

  • 504

    Dịch vụ đã hết thời gian chờ khi xử lý yêu cầu.

  • default

    Phản hồi lỗi; phản hồi chuyển tiếp từ thượng nguồn có thể dùng định dạng của nhà cung cấp

    application/json
Request Example for get/v1/beta/twitter/tweet/thread_context
curl https://openapi.felo.ai/v1/beta/twitter/tweet/thread_context \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{
  "has_next_page": true,
  "next_cursor": "string",
  "status": "success",
  "tweets": [
    {
      "type": "string",
      "id": "string",
      "url": "string",
      "text": "string",
      "source": "string",
      "retweetCount": 1,
      "replyCount": 1,
      "likeCount": 1,
      "quoteCount": 1,
      "viewCount": 1,
      "createdAt": "string",
      "lang": "string",
      "bookmarkCount": 1,
      "isReply": true,
      "inReplyToId": "string",
      "conversationId": "string",
      "displayTextRange": [
        1
      ],
      "inReplyToUserId": "string",
      "inReplyToUsername": "string",
      "author": {
        "type": "string",
        "userName": "string",
        "url": "string",
        "id": "string",
        "name": "string",
        "isBlueVerified": true,
        "verifiedType": "string",
        "profilePicture": "string",
        "coverPicture": "string",
        "description": "string",
        "location": "string",
        "followers": 1,
        "following": 1,
        "canDm": true,
        "createdAt": "string",
        "favouritesCount": 1,
        "hasCustomTimelines": true,
        "isTranslator": true,
        "mediaCount": 1,
        "statusesCount": 1,
        "withheldInCountries": [
          "string"
        ],
        "possiblySensitive": true,
        "pinnedTweetIds": [
          "string"
        ],
        "isAutomated": true,
        "automatedBy": "string",
        "unavailable": true,
        "message": "string",
        "unavailableReason": "string"
      },
      "entities": {
        "hashtags": [
          {
            "indices": [
              1
            ],
            "text": "string"
          }
        ],
        "urls": [
          {
            "display_url": "string",
            "expanded_url": "string",
            "indices": [
              1
            ],
            "url": "string"
          }
        ],
        "user_mentions": [
          {
            "id_str": "string",
            "name": "string",
            "screen_name": "string"
          }
        ]
      },
      "quoted_tweet": "string",
      "retweeted_tweet": "string",
      "isLimitedReply": true
    }
  ],
  "msg": "string"
}
Get Tweet Thread Context