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

Get Tweets by IDs

Сервер:https://openapi.felo.ai
Клиентские библиотеки

Twitter / X

​

Query public users, posts, communities and trends.

Twitter / X Операции

Get Tweets by IDs

​

Fetch the full content of specific tweets when you already know their numeric tweet IDs (accepts multiple IDs in one call). Use this to expand IDs surfaced by search, timelines, or replies into complete objects. Returns text, author, source client, language, creation time, and engagement counts (likes, retweets, replies, quotes, bookmarks, views). If you do not have IDs yet, start with get_twitter_tweet_advanced_search.

Query-параметры
  • tweet_ids
    Тип: array string[]
    обязательно

    Comma-separated list of tweet IDs.

Ответы
  • 200
    Тип: object

    Successful response

    • code
      Тип: integer

      Integer numbers.

    • msg
      Тип: string
    • status
      Тип: string
    • 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/tweets
curl 'https://openapi.felo.ai/v1/beta/twitter/tweets?tweet_ids=' \
  --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
    }
  ],
  "status": "string",
  "msg": "string",
  "code": 1
}
Get Tweets by IDs