Felo API PlatformFelo API Platform

数据 API / X / User

Get User Last Tweets

Get a user's most recent tweets, accepting either userName (@handle) or userId — useful when you have not resolved the handle to an ID yet. Optionally include replies. Cursor-paginated. Returns tweets under data with has_next_page and next_cursor. Use get_twitter_user_tweet_timeline instead when you already have the numeric ID and want the full profile-order timeline with parent-tweet expansion.

参数

查询

  • userIdstring可选

    User ID of the user

  • userNamestring可选

    Screen name of the user

  • cursorstring可选

    Cursor for pagination

  • includeRepliesboolean可选

    Include replies in the results

请求示例

curl -X GET "https://openapi.felo.ai/v1/beta/twitter/user/last_tweets" \
  -H "Authorization: Bearer $FELO_API_KEY"

响应

响应字段

  • statusstring可选

    允许值: success · error

  • codeinteger可选

    Provider status code.

  • msgstring可选
  • dataobject可选
  • tweetsobject[]可选
  • pin_tweet可选
  • has_next_pageboolean可选
  • next_cursor可选