Felo API PlatformFelo API Platform
v0.1.0-beta
OpenAPI 3.1.0

Get User Mentions

服务器:https://openapi.felo.ai
客户端库

Twitter / X

​

Query public users, posts, communities and trends.

Get User Mentions

​

Get tweets that mention a given @handle, 20 per page. This is the only user-scoped X endpoint that supports a time window: pass sinceTime and/or untilTime as Unix timestamps in seconds to bound the range. Use this for monitoring — brand mentions, inbound replies, reputation tracking, or 'what happened to this account in the last 24 hours'. Returns tweets with has_next_page and next_cursor. For the account's own posts rather than mentions of it, use get_twitter_user_tweet_timeline.

查询参数
  • userName
    类型: string
    必填

    The user screen name to get mentions for.

  • sinceTime
    类型: integer 格式: int64

    On or after a specified unix timestamp in seconds.

  • untilTime
    类型: integer 格式: int64

    Before a specified unix timestamp in seconds.

  • cursor
    类型: string

    The cursor to paginate through the results. First page is empty.

响应
  • 200
    类型: object · UserMentionsResponse

    Successful response

    • code
      类型: integer

      Integer numbers.

    • has_next_page
      类型: boolean
    • msg
      类型: string
    • next_cursor
      类型: string
    • status
      类型: string 枚举
      值
      • success
      • error
    • tweets
      类型: array object[] · Tweet[]
      • author
        类型: object · User
        • automatedBy
          类型: string
        • canDm
          类型: boolean
        • coverPicture
          类型: string
        • createdAt
          类型: string
        • description
          类型: string
        • favouritesCount
          类型: integer

          Integer numbers.

        • followers
          类型: integer

          Integer numbers.

        • following
          类型: integer

          Integer numbers.

        • hasCustomTimelines
          类型: boolean
        • id
          类型: string
        • isAutomated
          类型: boolean
        • isBlueVerified
          类型: boolean
        • isTranslator
          类型: boolean
        • location
          类型: string
        • mediaCount
          类型: integer

          Integer numbers.

        • message
          类型: string
        • name
          类型: string
        • pinnedTweetIds
          类型: array string[]
        • possiblySensitive
          类型: boolean
        • profile_bio
          类型: object
          • description
            类型: string
          • entities
            类型: object
            • description
              类型: object
              • urls
                类型: array object[]
                • display_url
                  类型: string
                • expanded_url
                  类型: string
                • indices
                  类型: array integer[]
                • url
                  类型: string
            • url
              类型: object
              • urls
                类型: array object[]
                • display_url
                  类型: string
                • expanded_url
                  类型: string
                • indices
                  类型: array integer[]
                • url
                  类型: string
        • profilePicture
          类型: string
        • statusesCount
          类型: integer

          Integer numbers.

        • type
          类型: string
        • unavailable
          类型: boolean
        • unavailableReason
          类型: string
        • url
          类型: string
        • userName
          类型: string
        • verifiedType
          类型: string
        • withheldInCountries
          类型: array string[]
      • bookmarkCount
        类型: integer

        Integer numbers.

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

        Integer numbers.

      • quoteCount
        类型: integer

        Integer numbers.

      • quoted_tweet
        类型: string
      • replyCount
        类型: integer

        Integer numbers.

      • retweetCount
        类型: integer

        Integer numbers.

      • retweeted_tweet
        类型: string
      • source
        类型: string
      • text
        类型: string
      • type
        类型: string
      • url
        类型: string
      • viewCount
        类型: integer

        Integer numbers.

    application/json
  • 400

    The request could not be processed. Check the request parameters.

  • 401

    A valid Felo API key is required.

  • 402

    The request cannot proceed because a billing requirement is not met.

  • 403

    The account is not permitted to perform this operation.

  • 429

    A request or spending limit has been reached.

  • 502

    The service could not complete the request.

  • 503

    The API or billing service is temporarily unavailable.

  • 504

    The service timed out while processing the request.

  • default

    The operation failed. Keep the response request ID when contacting Felo support.

Request Example for get/v1/beta/twitter/user/mentions
curl 'https://openapi.felo.ai/v1/beta/twitter/user/mentions?userName=' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{
  "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",
        "profile_bio": {
          "description": "string",
          "entities": {
            "description": {
              "urls": [
                {
                  "display_url": "string",
                  "expanded_url": "string",
                  "indices": [
                    1
                  ],
                  "url": "string"
                }
              ]
            },
            "url": {
              "urls": [
                {
                  "display_url": "string",
                  "expanded_url": "string",
                  "indices": [
                    1
                  ],
                  "url": "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
    }
  ],
  "has_next_page": true,
  "next_cursor": "string",
  "status": "success",
  "msg": "string",
  "code": 1
}
Get User Mentions