skip to Main Content

Twitter recently allowed verified users to Tweet more than 280 characters, up to 4000. When I use the API to retrieve one of these longer Tweets I don’t receive the full text – it’s cut off around 280 characters. I don’t see any notes about this in the Twitter API documentation, maybe I missed it. Are there any additional fields/expansions I need to request when retrieving a Tweet? Here are the fields and expansions I’m currently using (in Python):

tweet_fields_list = ["id",
                     "text",
                     "author_id",
                     "created_at",
                     "conversation_id",
                     "in_reply_to_user_id",
                     "referenced_tweets",
                     "attachments",
                     "entities"]

expansions_list = ["referenced_tweets.id", "attachments.media_keys"]

media_fields_list = ["media_key","type","url"]

2

Answers


  1. Unfortunately it is not possible currently. It appears that they are still applying 280 characters limit whether you are Twitter Blue subs or not.

    If you exceed the 280 character limit, the api returns a 400 bad request error.

    Take a look: https://twitter.com/daily_reviewss/status/1690131882153758720

    enter image description here

    Login or Signup to reply.
  2. Try adding tweet.fields=note_tweet to the query to get "Information about Tweets with more than 280 characters." per the docs.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search