Felo API PlatformFelo API Platform

Data API / X / User

Get User Tweet Timeline

Retrieve a user's own tweets by numeric userId, newest first, matching the order shown on their profile in the X app. Up to 20 tweets per page; pass the returned cursor for more. Optionally include replies and the parent tweet of each reply. Use this to read what an account publishes over time. Time-range filtering is NOT supported here — if you need tweets within a specific time window, use get_twitter_user_mentions (which accepts sinceTime/untilTime) or get_twitter_tweet_advanced_search with date operators in the query. If you only have a @handle, get_twitter_user_last_tweets accepts either handle or ID.

Параметры

запрос

  • userIdstringНеобязательный

    User ID of the user whose timeline to retrieve.

  • includeRepliesbooleanНеобязательный

    Whether to include replies in the results. Defaults to false.

  • includeParentTweetbooleanНеобязательный

    Whether to include the parent tweet when a tweet is a reply. Defaults to false.

  • cursorstringНеобязательный

    Cursor for paginating through results. Leave empty for the first page.

Пример запроса

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

Ответ

Поля ответа

  • statusstringНеобязательный

    Допустимые значения: success · error

  • codeintegerНеобязательный

    Provider status code.

  • msgstringНеобязательный
  • dataobjectНеобязательный
  • tweetsobject[]Необязательный
  • pin_tweetНеобязательный
  • has_next_pagebooleanНеобязательный
  • next_cursorНеобязательный