Twitter.com

Twitter API

Want to make a fancy badge, Twittermap, or timeline vizualization? We’ve exposed a few of the Twitter internals via JSON and XML for your creative pleasure.

All of the methods (except for the public timeline) require user authentication via Basic Auth. The username is the email address you have stored on Twitter, the password, your password.

Public Timeline

  • http://twitter.com/statuses/public_timeline.json
  • http://twitter.com/statuses/public_timeline.xml

Timeline of you and your friends

  • http://twitter.com/statuses/friends_timeline.json
  • http://twitter.com/statuses/friends_timeline.xml

A list of your friends and their current update

  • http://twitter.com/statuses/friends.json
  • http://twitter.com/statuses/friends.xml

A list of your followers and their current update

  • http://twitter.com/statuses/followers.json
  • http://twitter.com/statuses/followers.xml

Updating your Twitter

Best done with a HTTP POST, using a GET here as an example.

  • http://twitter.com/statuses/update.json?status=testing
  • http://twitter.com/statuses/update.xml?status=testing

That’s all for now. More to come! Please let us know if you have any ideas, problems, or suggestions.

ActionScript Developers!

Want to make a Twitter Flash app like Celly? This zip has source code, docs, and an example for the Twitter Actionscript 3 API. The only dependencies are the Adobe core library and a Base64 encoder, otherwise this is everything Flash developers need to make a Twitter app.