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

Get User Mentions

Server:https://openapi.felo.ai
Client Libraries

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.

Query Parameters
  • userName
    Type: string
    required

    The user screen name to get mentions for.

  • sinceTime
    Type: integer Format: int64

    On or after a specified unix timestamp in seconds.

  • untilTime
    Type: integer Format: int64

    Before a specified unix timestamp in seconds.

  • cursor
    Type: string

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

Responses
  • 200
    Type: object · UserMentionsResponse

    Successful response

    • code
      Type: integer

      Integer numbers.

    • has_next_page
      Type: boolean
    • msg
      Type: string
    • next_cursor
      Type: string
    • status
      Type: string enum
      values
      • success
      • error
    • tweets
      Type: array object[] · Tweet[]
      • author
        Type: object · User
        • automatedBy
          Type: string
        • canDm
          Type: boolean
        • coverPicture
          Type: string
        • createdAt
          Type: string
        • description
          Type: string
        • favouritesCount
          Type: integer

          Integer numbers.

        • followers
          Type: integer

          Integer numbers.

        • following
          Type: integer

          Integer numbers.

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

          Integer numbers.

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

          Integer numbers.

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

        Integer numbers.

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

        Integer numbers.

      • quoteCount
        Type: integer

        Integer numbers.

      • quoted_tweet
        Type: string
      • replyCount
        Type: integer

        Integer numbers.

      • retweetCount
        Type: integer

        Integer numbers.

      • retweeted_tweet
        Type: string
      • source
        Type: string
      • text
        Type: string
      • type
        Type: string
      • url
        Type: string
      • viewCount
        Type: 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