4. The Twitter APIs
REST API
Twitter web site functionality
Read / write / DM
Search API
Search in realtime
Streaming API
Maintain a connection
Get live tweets
5. How do we use it?
Check the Docs!
https://dev.twitter.com/docs/api
Construct a URL, hit it and catch the result!
http://search.twitter.com/search.json?q=madlab
Test using the twitter console:
https://dev.twitter.com/console
7. What to do with it?
• Display Tweets - http://visibletweets.com
• Summarise tweets
– Using web APIs, e.g. Classify with uclassify.com
• Visualise Tweets
– http://www.edfenergy.com/energy-of-the-
nation/infographic.shtml
– http://www.emoto2012.org
9. Watch Out!
• Rate Limit!
• 150 / 350 (no auth / auth) requests per hour
• API provides mechanism to check your quota
– Data storage!
• Very easy to get a LOT of tweets!
– SQL database / flat files / NoSQL
– Stay within Twitter API T&Cs!!
10. Let me know what you build!
Tweet me: @willsimm
w.simm@lancs.ac.uk
Follow Catalyst: @catalystproj
Notas do Editor
whatssocila media data: tweets / status updates (FB / Twitter) Pictures - Instgram / flickr foursquare locations all have networks of influence much more Concentrate on twitter
so what can you get from twitter: tweets! user profiles network info - who connected to who
How do we get it? twitter has whats called APIs three types: