Twitter exposes some of its functionality via an Application Programming Interface (API). This document is a reference for that functionality, and aims to serve as a reference for developers building tools that talk to Twitter.
The Twitter API tries to conform as much as possible to the design principles of Representational State Transfer (REST). You’ll find that you can simply change the file extension on most any request to get results in the format of your choice. This document notes which formats are available for each method.
The Easiest Way to Play Around with the Twitter API
If your system has curl (and it should!), you’ve already got a great way to poke around the Twitter API. Here are some examples:
- Get the public timeline, unauthenticated in rss: curl http://twitter.com/statuses/public_timeline.rss
- Get your friends timeline, authenticated in xml: curl -u email:password http://twitter.com/statuses/friends_timeline.xml
- or in JSON format: curl -u email:password http://twitter.com/statuses/friends_timeline.json
You can download the latest win32 command line curl from here.