Twitter’s latest update will make third party apps better
Twitter announced an update on Friday that should significantly improve the experience inside third-party Twitter apps: it’s giving developers far more access to its reverse chronological timeline. This update to Twitter’s recently launched API v2, the interface that developers use to get data from Twitter, is a new (and, in my opinion, encouraging) step in Twitter’s journey to better support developers.
As Twitter notes in its announcement post, the new API v2 feature gives developers a way to “retrieve the most recent Tweets and Retweets posted by the authenticated user and the accounts they follow.” In other words, a developer can ask to see the data that Twitter shows you when you load up the first party app with the “Latest Tweets” option selected, so their app can show it to you instead.
For third party clients like Tweetbot, the feature (or “endpoint” in developer parlance) is a very welcome one. Paul Haddad, one of Tweetbot’s developers, is quoted in Twitter’s announcement as saying that the old way to get a user’s time line “is one of our most used API calls.” The old version of the API was launched in 2012, so it was definitely getting long in the tooth — and developers using it faced more limits when trying to get a user’s timeline.
In an email to The Verge, Haddad explained that the change will make Tweetbot more responsive for users. “We’ll simply be able to refresh the timeline more often and allow users to scroll much further back in their timeline,” thanks to the fact that API v2 lets developers make more requests in a few ways. The old version, API v1.1, let you request the home timeline 15 times in a 15 minute window, and could return up to 800 tweets. API v2 supports up to 180 requests per user in that same timeframe, and retrieves 3,200 tweets.
From a development standpoint, he says, it makes things much simpler. “We currently use the v1.1 home timeline API to get a list of Tweets and then v2 APIs to fill in any v2 specific data (polls, cards, metrics, etc…). With this new v2 version we can get all that data in a single step.”
Throughout v2’s rollout (it went into testing in 2020, and was launched as the main way to interface with Twitter late last year), Twitter has made one thing very clear: it’s trying to make amends with developers, after years of making new features exclusive to its first party app. The company even removed restrictions from its terms of service that made it more difficult for third party clients to compete with the official app, such as limits to the number of users they could have.
Talk is cheap, and it wouldn’t be surprising if some developers weren’t sure whether Twitter was actually committed. But with Friday’s announcement, the company seems to be showing that it’s continuing the trend of giving developers access to crucial features, and Haddad says that it’s “noteworthy” that Twitter actually built and released a home timeline API for v2. “There’s a number of uses for this API but a big one is for third-party Twitter clients to be Twitter clients. The fact that they released this is an indication that they’re going to continue to allow and even encourage alternative clients.”