Babe, I've changed! Twitter wants to try a relationship again with devs after first major API tweaks in years

Shouty social network hopes external coders can make it a better place

For the first time in eight years, Twitter plans to introduce a major revision to its API that describes how developers can access the platform's data.

In doing so, the shouty social network is making yet another attempt to stabilize its development platform and earn the trust of individual, academic, and corporate coders whose software might just make the company more valuable.

Twitter's data licensing revenue – drawn mostly from selling bulk data access to partners and corporate customers for tweet analysis – reached $125.4m in Q1 2020 (PDF), or about 15 per cent of its $808m revenue that quarter. While most of the company's income comes from selling ads, data licensing revenue, up 17 per cent year-over-year, is growing faster than ad revenue.

During a media briefing about the API revision on Tuesday, Ian Cairns, product lead for the Twitter API, emphasized the importance that developers have played in the evolution of Twitter since the biz first made v1 of its API available in 2006.

He also acknowledged how the company's frequent platform policy and technical changes had complicated relations with third-party developers.

"We've made some mistakes, and learned along the way," he said.

CEO Jack Dorsey said as much in October 2015, back when Twitter held developer conferences. He promised a reboot of the company's relationship with developers, which really went south after v1.1 of the API was announced in 2012.

And yet in 2017, Twitter sold its Fabric platform for mobile development to Google, tossing a set of tools it had pitched to developers. And two years ago, the company's decision to discontinue its streaming API further inconvenienced various third-party apps that relied on it. The basic problem is that API changes made without sufficient warning and developer consultation can break apps and harm businesses that depend on them.

Signs of a turnaround appeared last year with Twitter Developer Labs, a resource intended to provide developers with early access to technical information and APIs.

Guy pointing at a shirt reading 'Follow me'

Twitter API overhaul threatens to seriously shaft apps... again


With the arrival of Twitter API v2 on Thursday, perhaps things will be different. Priyanka Shetty, product lead at Twitter, explained that developers have told the company that they want flexibility, parity, and clarity.

Flexibility and clarity represent obvious asks. Parity in this case means that devs have't been thrilled with the three-tiered scheme that includes the standard Twitter API, the premium API rolled out in 2018, and enterprise API that came out of the company's 2014 Gnip acquisition.

Twitter's three distinct APIs will eventually be phased out in favor of the single rebuilt v2 API with multiple product tracks (Standard, Academic Research, and Business), each provisioned for one of three possible access levels (Basic, Elevated, and Custom). Pricing hasn't been disclosed but Standard Basic access will be free.

Since the API renovation isn't finished yet, Twitter is offering early access to a handful of new APIs endpoints that allow devs to stream tweets in real time, analyze past conversations, measure tweet performance, and interact with the service programmatically in ways not previously possible.

These revised API endpoints are all available under the Standard track, with Basic access. They touch on various aspects of the social network's data:

● Updates to the Tweet object
○ Tweet annotations
○ New conversation id
○ Optional expansion to include referenced Tweets
○ Metrics data in Tweet objects
○ Current poll results and poll options hydrated as part of Tweets

● Updates to the user object
○ Pinned Tweet in user objects

● Updates that apply to both the user object and Tweet object
○ Customize response data using the fields parameter
○ Simplified and updated JSON response objects

● Updates to recent search
○ 100% of matching Tweets in search queries

● Updates to filtered stream
○ Update streaming filters without disconnecting
○ Spam filtering

● Updates that apply to both filtered stream and recent search
○ More expressive query language for filtered stream and search

● Other updates
○ A new developer portal
○ An OpenAPI spec

A roadmap has been laid out to help developers understand Twitter's development timeline. Twitter had also planned to share more details in other developer-oriented posts but decided to delay publication due to the major security incident on Wednesday. We're told there's no evidence so far that the account hijackings, said to have been a coordinated social engineering attack to gain access to internal tools, had anything to do with the API.

The Twitter API v2 is also intended to better serve academic researchers, who sometimes resorted to scraping data because they couldn't afford the cost of the enterprise API.

Cairns said the Twitter API provides a way for developers to make the social network better for its users. As an example, he suggested that developers may wish to build tools to help users who receive a lot of hateful replies to their tweets via the hide replies capability introduced last year. Doing so manually would involve reviewing each insult individually, so a programmatic tool for burying vitriol might be a worthwhile project.

"Our hope with making the API available is that developers can build tools to do this," said Cairns.

Twitter, of course, could undertake such a project itself and make it a standard feature. But the biz wants to leave such things to outside developers so it can focus on the core service. ®

Other stories you might like

  • Stolen university credentials up for sale by Russian crooks, FBI warns
    Forget dark-web souks, thousands of these are already being traded on public bazaars

    Russian crooks are selling network credentials and virtual private network access for a "multitude" of US universities and colleges on criminal marketplaces, according to the FBI.

    According to a warning issued on Thursday, these stolen credentials sell for thousands of dollars on both dark web and public internet forums, and could lead to subsequent cyberattacks against individual employees or the schools themselves.

    "The exposure of usernames and passwords can lead to brute force credential stuffing computer network attacks, whereby attackers attempt logins across various internet sites or exploit them for subsequent cyber attacks as criminal actors take advantage of users recycling the same credentials across multiple accounts, internet sites, and services," the Feds' alert [PDF] said.

    Continue reading
  • Big Tech loves talking up privacy – while trying to kill privacy legislation
    Study claims Amazon, Apple, Google, Meta, Microsoft work to derail data rules

    Amazon, Apple, Google, Meta, and Microsoft often support privacy in public statements, but behind the scenes they've been working through some common organizations to weaken or kill privacy legislation in US states.

    That's according to a report this week from news non-profit The Markup, which said the corporations hire lobbyists from the same few groups and law firms to defang or drown state privacy bills.

    The report examined 31 states when state legislatures were considering privacy legislation and identified 445 lobbyists and lobbying firms working on behalf of Amazon, Apple, Google, Meta, and Microsoft, along with industry groups like TechNet and the State Privacy and Security Coalition.

    Continue reading
  • SEC probes Musk for not properly disclosing Twitter stake
    Meanwhile, social network's board rejects resignation of one its directors

    America's financial watchdog is investigating whether Elon Musk adequately disclosed his purchase of Twitter shares last month, just as his bid to take over the social media company hangs in the balance. 

    A letter [PDF] from the SEC addressed to the tech billionaire said he "[did] not appear" to have filed the proper form detailing his 9.2 percent stake in Twitter "required 10 days from the date of acquisition," and asked him to provide more information. Musk's shares made him one of Twitter's largest shareholders. The letter is dated April 4, and was shared this week by the regulator.

    Musk quickly moved to try and buy the whole company outright in a deal initially worth over $44 billion. Musk sold a chunk of his shares in Tesla worth $8.4 billion and bagged another $7.14 billion from investors to help finance the $21 billion he promised to put forward for the deal. The remaining $25.5 billion bill was secured via debt financing by Morgan Stanley, Bank of America, Barclays, and others. But the takeover is not going smoothly.

    Continue reading

Biting the hand that feeds IT © 1998–2022