Twitter API 2.0
A VIEW INTO THE PLATFORM ROADMAP
Alex Payne
Twitter Platform Lead
Agenda
‣Where we’re at.
‣Where we’re going.
‣Where you think we should be.
The Platform: Numbers
28,000 registered applications.
30,000 developers keeping up with changes.
Hundreds of millions of requests per day.
$23+ million invested in Twitter-powered startups.
The Platform: Team@al3x @noradio @raffi @rsarver
The Platform: APIs
The Twitter Platform is a suite of APIs:
1.REST
2.Search
3.Streaming
REST API
Do everything a user can do, and more:
‣Post tweets.
‣Get timelines of tweets.
‣View and manipulate the social graph.
‣Send and retrieve direct messages.
‣Modify account settings.
Search API
Discover trends, view historical trends.
Search for tweets:
‣by term (ex: “CRV”)
‣by user (ex “from:jack”)
‣by location (ex: “near:SF within:15mi”)
‣much more...
Streaming API
Push tons of data to partners in near-realtime.
Currently streaming:
‣samples of the set of all public tweets
‣search results
‣just tweets by specified users
‣more coming soon...
The New Stuff!
Geolocation
‣Per-status geolocation: new lat and long
parameters.
‣More accurate “near:” search results.
‣Room to grow into more complex geodata via
GeoRSS and GeoJSON standards.
Apple Push
‣Developers have implemented Apple Push on
their own, and that’s cool!
‣But we want to handle it for you.
‣Working prototype, ready for production soon.
api.twitter.com
‣A simple change that helps us better serve you.
‣Isolates API traffic so we can direct it within our
cluster.
‣Live for testing right now.
Versioning
‣Another way we can keep your apps working
better.
‣http://api.twitter.com/2/example/method.xml
‣Additions say within a version, modifications and
removals bump to a new version.
‣Each version supported for at least six months.
Search API Cleanup
‣Right now, Search API results deviate from the
main (REST) API.
‣We’re going to fix it, and move the Search API
methods into the new api.twitter.com domain.
More Streams
‣The Streaming API has been a big success.
‣We need to know what else you want streamed...
‣Changes to the social graph?
‣Favorites?
‣Retweets?
More OAuth
‣Helping push the standard forward.
‣Mechanism for a one-time exchange of
username:password credentials for a token
(“guns for cash”).
‣More “Sign in with Twitter”.
Address Book API
‣A way to find Twitter users given email addresses.
‣Secure and spammer-hostile.
‣Familiar if you’ve used similar APIs from webmail
providers.
Support
‣Building out a team just for developer support.
‣Faster responses to your questions.
‣More documentation, more example code.
‣A better developer community site and
experience.
More...
‣More Platform Engineers on staff at Twitter to
build the tools you need.
‣More ways for users to discover your apps.
‣API monitoring available publicly.