SlideShare a Scribd company logo
Connecting to the pulse of the planet 
@andypiper 
Twitter APIs 
Andy Piper 
Developer Advocate 
@andypiper | #hackferencebrum
@andypiper
@andypiper 
255M+ 
Active users 
500M+ 
Tweets per day 
77% 
of users are 
outside the US 
2006 2014
@andypiper 
143,199 
Tweets per second 
5,700 
TPS on average
@andypiper 
Twitter is global, 
open and real-time
Twitter is the shortest distance between 
you (@) and what interests you most (#) 
@andypiper
@andypiper 
Twitter is there at 
world events
@andypiper
@andypiper
@andypiper
@andypiper
@andypiper 
Twitter is the pulse 
of the planet
@andypiper
@andypiper 
The Twitter platform 
and the Internet of Things
@andypiper 
Many objects tweet
@andypiper 
from plants… to ferries…
to houses… 
@andypiper
to sensors… 
@andypiper
@andypiper 
Smart environments
@andypiper 
Objects bring tweets to 
the physical world
@andypiper
@andypiper
@andypiper
@andypiper 
Object interactions 
can be driven by tweets 
https://twitter.com/apistrat/status/449159950049480704
Twitter is a great I/O channel 
@andypiper 
for the IoT 
https://www.flickr.com/photos/pulpolux/208661236
Twitter APIs deal both with the 
right now and what happened 
@andypiper
@andypiper 
Streaming APIs allow you to 
ingest what’s happening right now
@andypiper 
Streaming APIs allow you to 
ingest what’s happening right now 
POST https://stream.twitter.com/1.1/statuses/filter.json 
follow: 3946301 
track: #hackference 
locations: 13.3773,52.5202,13.3979,52.5150 
Data:
@andypiper 
Streaming APIs allow you to 
ingest what’s happening right now 
GET https://stream.twitter.com/1.1/statuses/sample.json 
Returns ~1% of all firehose data, statistically relevant.
@andypiper 
Streaming APIs allow you to 
ingest what’s happening right now 
GET https://stream.twitter.com/1.1/statuses/firehose.json 
Returns all firehose data, requires business deal.
@andypiper 
Streaming APIs allow you to 
ingest what’s happening right now 
{"created_at":"Sun Dec 01 21:44:59 +0000 2013","id":407264085194330112,"id_str":"407264085194330112","text":"u201c@DM_Minions: The minion mobile! http://t.co/Tq8AQoXcVyu201d shall I get it, @CourtneyLouu ud83dude0fud83dude18","source":"u003ca 
href="http://twitter.com/download/iphone" rel="nofollow"u003eTwitter for iPhoneu003c/au003e","truncated":false,"in_reply_to_status_id":407263303405023232,"in_reply_to_status_id_str":"407263303405023232","in_reply_to_user_id": 
948825632,"in_reply_to_user_id_str":"948825632","in_reply_to_screen_name":"DM_Minions","user":{"id":404024178,"id_str":"404024178","name":"emilyjade","screen_name":"_emilyjade","location":"","url":null,"description":"'what is essential, is invisible to 
the eye'","protected":false,"followers_count":156,"friends_count":287,"listed_count":0,"created_at":"Thu Nov 03 10:18:49 +0000 2011","favourites_count":379,"utc_offset":null,"time_zone":null,"geo_enabled":true,"verified":false,"statuses_count": 
8506,"lang":"en","contributors_enabled":false,"is_translator":false,"profile_background_color":"EBEBEB","profile_background_image_url":"http://abs.twimg.com/images/themes/theme7/bg.gif","profile_background_image_url_https":"https://abs.twimg.com/ 
images/themes/theme7/bg.gif","profile_background_tile":false,"profile_image_url":"http://pbs.twimg.com/profile_images/378800000811908687/bc82e20db7c7812a1f61f72998f948e9_normal.jpeg","profile_image_url_https":"https://pbs.twimg.com/ 
profile_images/378800000811908687/bc82e20db7c7812a1f61f72998f948e9_normal.jpeg","profile_banner_url":"https://pbs.twimg.com/profile_banners/404024178/ 
1385914936","profile_link_color":"990000","profile_sidebar_border_color":"DFDFDF","profile_sidebar_fill_color":"F3F3F3","profile_text_color":"333333","profile_use_background_image":true,"default_profile":false,"default_profile_image":false,"following":nul 
l,"follow_request_sent":null,"notifications":null},"geo":{"type":"Point","coordinates":[51.35264663,-1.15710757]},"coordinates":{"type":"Point","coordinates":[-1.15710757,51.35264663]},"place":{"id":"d009bfdb11c20f3e","url":"https://api.twitter.com/ 
1.1/geo/id/d009bfdb11c20f3e.json","place_type":"city","name":"Basingstoke and Deane","full_name":"Basingstoke and Deane, Hampshire","country_code":"GB","country":"United Kingdom","contained_within":[],"bounding_box":{"type":"Polygon","coordinates": 
[[[-1.4601689999999998,51.133537999999994],[-1.4601689999999998,51.383949],[-0.9748119999999999,51.383949],[-0.9748119999999999,51.133537999999994]]]},"attributes":{}},"contributors":null,"retweet_count":0,"favorite_count":0,"entities":{"hashtags": 
[],"symbols":[],"urls":[],"user_mentions":[{"screen_name":"DM_Minions","name":"DespicableMe Minions","id":948825632,"id_str":"948825632","indices":[1,12]},{"screen_name":"CourtneyLouu","name":"coourts","id":43456930,"id_str":"43456930","indices": 
[73,86]}],"media":[{"id":407263303325335552,"id_str":"407263303325335552","indices":[33,55],"media_url":"http://pbs.twimg.com/media/Babj0QzCQAAMrX4.jpg","media_url_https":"https://pbs.twimg.com/media/Babj0QzCQAAMrX4.jpg","url":"http://t.co/ 
Tq8AQoXcVy","display_url":"pic.twitter.com/Tq8AQoXcVy","expanded_url":"http://twitter.com/DM_Minions/status/407263303405023232/photo/1","type":"photo","sizes":{"small":{"w":339,"h":236,"resize":"fit"},"large":{"w":958,"h": 
666,"resize":"fit"},"thumb":{"w":150,"h":150,"resize":"crop"},"medium":{"w":599,"h":417,"resize":"fit"}},"source_status_id": 
407263303405023232,"source_status_id_str":"407263303405023232"}]},"favorited":false,"retweeted":false,"possibly_sensitive":false,"filter_level":"medium","lang":"en"} 
{"created_at":"Sun Dec 01 21:44:59 +0000 2013","id":407264086347747328,"id_str":"407264086347747328","text":"@DannyArratoon already eaten it but you can bring me another one?","source":"u003ca href="http://twitter.com/download/iphone" rel= 
"nofollow"u003eTwitter for iPhoneu003c/au003e","truncated":false,"in_reply_to_status_id":407263944844533761,"in_reply_to_status_id_str":"407263944844533761","in_reply_to_user_id": 
210579473,"in_reply_to_user_id_str":"210579473","in_reply_to_screen_name":"DannyArratoon","user":{"id": 
495068253,"id_str":"495068253","name":"eleanor","screen_name":"ell_eysselinck","location":"london","url":null,"description":null,"protected":false,"followers_count":430,"friends_count":345,"listed_count":0,"created_at":"Fri Feb 17 15:23:34 +0000 
2012","favourites_count":3934,"utc_offset":0,"time_zone":"London","geo_enabled":true,"verified":false,"statuses_count": 
7800,"lang":"en","contributors_enabled":false,"is_translator":false,"profile_background_color":"000000","profile_background_image_url":"http://a0.twimg.com/profile_background_images/635582704/ 
nud5dpj44ngj5bgv5k55.jpeg","profile_background_image_url_https":"https://si0.twimg.com/profile_background_images/635582704/nud5dpj44ngj5bgv5k55.jpeg","profile_background_tile":true,"profile_image_url":"http://pbs.twimg.com/profile_images/ 
378800000812022272/b0218f45cb51525440be4f5782aaba6b_normal.jpeg","profile_image_url_https":"https://pbs.twimg.com/profile_images/378800000812022272/b0218f45cb51525440be4f5782aaba6b_normal.jpeg","profile_banner_url":"https://pbs.twimg.com/ 
profile_banners/495068253/ 
1378837388","profile_link_color":"EB091C","profile_sidebar_border_color":"C0DEED","profile_sidebar_fill_color":"DDEEF6","profile_text_color":"333333","profile_use_background_image":true,"default_profile":false,"default_profile_image":false,"following":nul 
l,"follow_request_sent":null,"notifications":null},"geo":{"type":"Point","coordinates":[51.37097685,-0.21992044]},"coordinates":{"type":"Point","coordinates":[-0.21992044,51.37097685]},"place":{"id":"8840213b5fc1032a","url":"https://api.twitter.com/ 
1.1/geo/id/8840213b5fc1032a.json","place_type":"city","name":"Sutton","full_name":"Sutton, London","country_code":"GB","country":"United Kingdom","contained_within":[],"bounding_box":{"type":"Polygon","coordinates": 
[[[-0.24586899999999998,51.321324999999995],[-0.24586899999999998,51.393378999999996],[-0.117306,51.393378999999996],[-0.117306,51.321324999999995]]]},"attributes":{}},"contributors":null,"retweet_count":0,"favorite_count":0,"entities":{"hashtags": 
[],"symbols":[],"urls":[],"user_mentions":[{"screen_name":"DannyArratoon","name":"Danny","id":210579473,"id_str":"210579473","indices":[0,14]}]},"favorited":false,"retweeted":false,"filter_level":"medium","lang":"en"} 
{"created_at":"Sun Dec 01 21:44:59 +0000 2013","id":407264087085953025,"id_str":"407264087085953025","text":"@brontemaria22 #firstin","source":"u003ca href="http://twitter.com/download/iphone" rel="nofollow"u003eTwitter for iPhoneu003c/a 
u003e","truncated":false,"in_reply_to_status_id":407262865251643392,"in_reply_to_status_id_str":"407262865251643392","in_reply_to_user_id":771468884,"in_reply_to_user_id_str":"771468884","in_reply_to_screen_name":"brontemaria22","user":{"id": 
442104599,"id_str":"442104599","name":"zolf","screen_name":"FleurMarie32","location":"","url":null,"description":null,"protected":false,"followers_count":360,"friends_count":238,"listed_count":0,"created_at":"Tue Dec 20 19:13:40 +0000 
2011","favourites_count":563,"utc_offset":null,"time_zone":null,"geo_enabled":true,"verified":false,"statuses_count": 
3092,"lang":"en","contributors_enabled":false,"is_translator":false,"profile_background_color":"BADFCD","profile_background_image_url":"http://a0.twimg.com/profile_background_images/622665567/ 
46ehgxq1mfildvuk2ots.jpeg","profile_background_image_url_https":"https://si0.twimg.com/profile_background_images/622665567/46ehgxq1mfildvuk2ots.jpeg","profile_background_tile":true,"profile_image_url":"http://pbs.twimg.com/profile_images/ 
378800000689641927/ed04861205ea2348e935d4a0b0a198e5_normal.jpeg","profile_image_url_https":"https://pbs.twimg.com/profile_images/378800000689641927/ed04861205ea2348e935d4a0b0a198e5_normal.jpeg","profile_banner_url":"https://pbs.twimg.com/ 
profile_banners/442104599/ 
1383498191","profile_link_color":"FF0000","profile_sidebar_border_color":"F2E195","profile_sidebar_fill_color":"FFF7CC","profile_text_color":"0C3E53","profile_use_background_image":true,"default_profile":false,"default_profile_image":false,"following":nul 
l,"follow_request_sent":null,"notifications":null},"geo":{"type":"Point","coordinates":[51.24861223,0.06772169]},"coordinates":{"type":"Point","coordinates":[0.06772169,51.24861223]},"place":{"id":"5747f33800b71f4b","url":"https://api.twitter.com/1.1/ 
geo/id/5747f33800b71f4b.json","place_type":"city","name":"Sevenoaks","full_name":"Sevenoaks, Kent","country_code":"GB","country":"United Kingdom","contained_within":[],"bounding_box":{"type":"Polygon","coordinates":[[[0.033526,51.131789999999995], 
[0.033526,51.417970999999994],[0.344761,51.417970999999994],[0.344761,51.131789999999995]]]},"attributes":{}},"contributors":null,"retweet_count":0,"favorite_count":0,"entities":{"hashtags":[{"text":"firstin","indices":[15,23]}],"symbols":[],"urls": 
[],"user_mentions":[{"screen_name":"brontemaria22","name":"bronteee","id":771468884,"id_str":"771468884","indices":[0,14]}]},"favorited":false,"retweeted":false,"filter_level":"medium","lang":"en"} 
{"created_at":"Sun Dec 01 21:44:59 +0000 2013","id":407264087404707840,"id_str":"407264087404707840","text":"Totally forgot about all this stuff.","source":"u003ca href="http://twitter.com/download/iphone" rel="nofollow"u003eTwitter for iPhone 
u003c/au003e","truncated":false,"in_reply_to_status_id":null,"in_reply_to_status_id_str":null,"in_reply_to_user_id":null,"in_reply_to_user_id_str":null,"in_reply_to_screen_name":null,"user":{"id":45353664,"id_str":"45353664","name":"Jay 
Ferry","screen_name":"Jay_fezz","location":"London ","url":"http://www.facebook.com/jay_fezz","description":"Baker. Not A Candle Stick Maker. Im Perfectly Dysfunctional","protected":false,"followers_count":166,"friends_count":635,"listed_count": 
24,"created_at":"Sun Jun 07 15:06:56 +0000 2009","favourites_count":56,"utc_offset":0,"time_zone":"London","geo_enabled":true,"verified":false,"statuses_count": 
5758,"lang":"en","contributors_enabled":false,"is_translator":false,"profile_background_color":"BF1238","profile_background_image_url":"http://a0.twimg.com/profile_background_images/552535875/wcbs.jpg","profile_background_image_url_https":"https://
@andypiper 
Tweet: 140 characters 
~4KB of information 
{ 
"created_at": "Wed Oct 02 15:53:43 +0000 2013", 
"id": 385432417126739968, 
"id_str": "385432417126739968", 
"text": "Learn more about the powerful #Linux container engine @docker in this video intro with @solomonstre - http://t.co/QJLdA1762Y @TwitterOSS", 
"source": "web", 
"truncated": false, 
"in_reply_to_status_id": null, 
"in_reply_to_status_id_str": null, 
"in_reply_to_user_id": null, 
"in_reply_to_user_id_str": null, 
"in_reply_to_screen_name": null, 
"user": { 
"id": 1665823832, 
"id_str": "1665823832", 
"name": "Twitter University", 
"screen_name": "university", 
"location": "", 
"description": "Building a culture of learning for @TwitterEng and the world at large", 
"url": "http://t.co/c8IHJLE1Y8", 
"entities": { 
"url": { 
"urls": [{ 
"url": "http://t.co/c8IHJLE1Y8", 
"expanded_url": "http://youtube.com/twitteruniversity", 
"display_url": "youtube.com/twitteruniversu2026", 
"indices": [0, 22] 
}] 
},
REST APIs let you perform actions 
@andypiper 
and look at what happened
REST APIs let you perform actions 
@andypiper 
and look at what happened 
Tweets GET statuses/show/:id 
POST statuses/update 
Timelines GET statuses/home_timeline 
GET statuses/user_timeline 
GET statuses/mentions_timeline 
Search GET search/tweets 
… 
Users, Favorites, Direct Messages, Followings & Followers, 
Lists, Saved Searches, Trends, Geo, Spam Reporting
@andypiper 
Enrich mobile apps with 
live contextual data from Twitter
@andypiper
@andypiper 
The Human Sensor Network 
People are talking about the 
Golden Gate bridge. 
Most used words: 
blocked, closed, police, detour. 
Should I re-route your path?
@andypiper 
The Human Sensor Network 
Spike of tweets around a location 
5 miles in front of you. 
#festival #parking #sucks #cold
@andypiper 
Networked Transportation 
New DM from Zipcar. 
Want to drop current car at 
location Stanyan and Haight? 
Switch to Blue Prius and add 2 
hours to your location for free
Context Aware Transportation 
Based on your recent tweets, 
would you like us to book your 
Car2Go later today at 7pm 
around Howard and 11th 
@andypiper
Context Aware Transportation 
Based on your recent tweets, 
would you like us to book a ride 
with 
this Sunday? 
@andypiper
Let’s talk code! :) 
@andypiper
@andypiper
@andypiper
@andypiper
@andypiper
@andypiper
@andypiper 
Useful links 
Automation best practices 
t.co/automate 
Developer Rules of the Road 
t.co/develror
@andypiper 
More resources 
Streaming APIs 
t.co/streaming 
REST API 
t.co/rest 
Create apps 
t.co/apps 
Open Source @Twitter 
t.co/opensource 
Developer discussions 
t.co/discuss 
Certified Products 
t.co/certified
@andypiper
@andypiper 
#ThankYou 
Andy Piper 
@andypiper 
andypiper@twitter.com

More Related Content

Similar to Connecting to the pulse of the planet with Twitter APIs (20)

PDF
Connecting to the Pulse of the Planet with the Twitter Platform
Andy Piper
 
PDF
This is not about Tweeting and Driving
Sylvain Carle
 
PDF
Andy Piper, Developer Advocate, Twitter - Combining Context With Signals In T...
Techsylvania
 
PPTX
HATEOAS 101 - Opinionated Introduction to a REST API Style
Apigee | Google Cloud
 
PDF
Hendrickson data2 2012-gnip
Scott Hendrickson
 
PDF
500Startups @ Twitter
Raffi Krikorian
 
PDF
20131008 - Wajug - TweetWall Pro
Pascal Alberty
 
PDF
Twitter e suas APIs de Streaming - Campus Party Brasil 7
Luis Cipriani
 
PDF
CSE5656 Complex Networks - Gathering Data from Twitter
Marcello Tomasini
 
PDF
Data Access, Ownership and Control in Social Web Services: Issues for Twitter...
Cornelius Puschmann
 
PPT
Twitter API Trends (Pubcon 2009)
ayb
 
PDF
Getting Started with Twitter
Andy Piper
 
PPTX
Twitter API, Streaming and SharePoint 2013
Sebastian Huppmann
 
PPTX
Social Developers London update for Twitter Developers
Angus Fox
 
KEY
Twitter API 2.0
Alex Payne
 
PDF
Twitter Presentation: #APIConSF
Ryan Choi
 
PPTX
Twitter api
kaleem malick
 
XLS
Twitter Ecosystem
Shankar Saikia
 
PDF
20130504 - FeWeb - Twitter API
Pascal Alberty
 
Connecting to the Pulse of the Planet with the Twitter Platform
Andy Piper
 
This is not about Tweeting and Driving
Sylvain Carle
 
Andy Piper, Developer Advocate, Twitter - Combining Context With Signals In T...
Techsylvania
 
HATEOAS 101 - Opinionated Introduction to a REST API Style
Apigee | Google Cloud
 
Hendrickson data2 2012-gnip
Scott Hendrickson
 
500Startups @ Twitter
Raffi Krikorian
 
20131008 - Wajug - TweetWall Pro
Pascal Alberty
 
Twitter e suas APIs de Streaming - Campus Party Brasil 7
Luis Cipriani
 
CSE5656 Complex Networks - Gathering Data from Twitter
Marcello Tomasini
 
Data Access, Ownership and Control in Social Web Services: Issues for Twitter...
Cornelius Puschmann
 
Twitter API Trends (Pubcon 2009)
ayb
 
Getting Started with Twitter
Andy Piper
 
Twitter API, Streaming and SharePoint 2013
Sebastian Huppmann
 
Social Developers London update for Twitter Developers
Angus Fox
 
Twitter API 2.0
Alex Payne
 
Twitter Presentation: #APIConSF
Ryan Choi
 
Twitter api
kaleem malick
 
Twitter Ecosystem
Shankar Saikia
 
20130504 - FeWeb - Twitter API
Pascal Alberty
 

More from Andy Piper (20)

PDF
Adapt & Survive
Andy Piper
 
PDF
Rebooting A Community #DevRelCon
Andy Piper
 
PDF
Twitter APIs for #MediaHackday
Andy Piper
 
PDF
Imagining the Future, when the Future is already Now
Andy Piper
 
PDF
Building Twitter's SDKs for Android
Andy Piper
 
PDF
Developer Advocacy - A Life Less Ordinary
Andy Piper
 
PDF
Twitter APIs - the starter guide
Andy Piper
 
PDF
Internet ALL the Things - a walking tour of MQTT
Andy Piper
 
PDF
Why the Internet of Things will be built on Open Source
Andy Piper
 
PDF
MQTT - standards-based plumbing for the Internet of Things
Andy Piper
 
PDF
My Quantified Self and the promise of wearables
Andy Piper
 
PDF
Why Data, Code and Mobile converge in the Open Cloud
Andy Piper
 
PDF
From Cloud Computing to Platform as a Service – BCS Oxfordshire
Andy Piper
 
PDF
Why Apps, Data and Mobile Converge in the Open Cloud
Andy Piper
 
PDF
The Internet of Things is Made of Signals
Andy Piper
 
PDF
How to Write a Web App in fewer than 140 Characters
Andy Piper
 
PDF
MQTT, Eclipse Paho and Java - Messaging for the Internet of Things
Andy Piper
 
PDF
Run your Java apps on Cloud Foundry
Andy Piper
 
PDF
Cloud Foundry - Platform as a Service for vSphere
Andy Piper
 
PDF
Run your Java code on Cloud Foundry
Andy Piper
 
Adapt & Survive
Andy Piper
 
Rebooting A Community #DevRelCon
Andy Piper
 
Twitter APIs for #MediaHackday
Andy Piper
 
Imagining the Future, when the Future is already Now
Andy Piper
 
Building Twitter's SDKs for Android
Andy Piper
 
Developer Advocacy - A Life Less Ordinary
Andy Piper
 
Twitter APIs - the starter guide
Andy Piper
 
Internet ALL the Things - a walking tour of MQTT
Andy Piper
 
Why the Internet of Things will be built on Open Source
Andy Piper
 
MQTT - standards-based plumbing for the Internet of Things
Andy Piper
 
My Quantified Self and the promise of wearables
Andy Piper
 
Why Data, Code and Mobile converge in the Open Cloud
Andy Piper
 
From Cloud Computing to Platform as a Service – BCS Oxfordshire
Andy Piper
 
Why Apps, Data and Mobile Converge in the Open Cloud
Andy Piper
 
The Internet of Things is Made of Signals
Andy Piper
 
How to Write a Web App in fewer than 140 Characters
Andy Piper
 
MQTT, Eclipse Paho and Java - Messaging for the Internet of Things
Andy Piper
 
Run your Java apps on Cloud Foundry
Andy Piper
 
Cloud Foundry - Platform as a Service for vSphere
Andy Piper
 
Run your Java code on Cloud Foundry
Andy Piper
 
Ad

Recently uploaded (20)

PDF
What’s my job again? Slides from Mark Simos talk at 2025 Tampa BSides
Mark Simos
 
PDF
AI Agents in the Cloud: The Rise of Agentic Cloud Architecture
Lilly Gracia
 
PDF
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
PPTX
Mastering ODC + Okta Configuration - Chennai OSUG
HathiMaryA
 
PDF
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
PDF
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
PDF
SIZING YOUR AIR CONDITIONER---A PRACTICAL GUIDE.pdf
Muhammad Rizwan Akram
 
DOCX
Python coding for beginners !! Start now!#
Rajni Bhardwaj Grover
 
PPTX
MuleSoft MCP Support (Model Context Protocol) and Use Case Demo
shyamraj55
 
DOCX
Cryptography Quiz: test your knowledge of this important security concept.
Rajni Bhardwaj Grover
 
PDF
Automating Feature Enrichment and Station Creation in Natural Gas Utility Net...
Safe Software
 
PPTX
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
PPTX
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit
 
PPT
Ericsson LTE presentation SEMINAR 2010.ppt
npat3
 
PPTX
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
PPTX
Agentforce World Tour Toronto '25 - MCP with MuleSoft
Alexandra N. Martinez
 
PDF
Peak of Data & AI Encore AI-Enhanced Workflows for the Real World
Safe Software
 
PDF
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 
PDF
Future-Proof or Fall Behind? 10 Tech Trends You Can’t Afford to Ignore in 2025
DIGITALCONFEX
 
PPTX
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
What’s my job again? Slides from Mark Simos talk at 2025 Tampa BSides
Mark Simos
 
AI Agents in the Cloud: The Rise of Agentic Cloud Architecture
Lilly Gracia
 
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
Mastering ODC + Okta Configuration - Chennai OSUG
HathiMaryA
 
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
SIZING YOUR AIR CONDITIONER---A PRACTICAL GUIDE.pdf
Muhammad Rizwan Akram
 
Python coding for beginners !! Start now!#
Rajni Bhardwaj Grover
 
MuleSoft MCP Support (Model Context Protocol) and Use Case Demo
shyamraj55
 
Cryptography Quiz: test your knowledge of this important security concept.
Rajni Bhardwaj Grover
 
Automating Feature Enrichment and Station Creation in Natural Gas Utility Net...
Safe Software
 
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit
 
Ericsson LTE presentation SEMINAR 2010.ppt
npat3
 
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
Agentforce World Tour Toronto '25 - MCP with MuleSoft
Alexandra N. Martinez
 
Peak of Data & AI Encore AI-Enhanced Workflows for the Real World
Safe Software
 
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 
Future-Proof or Fall Behind? 10 Tech Trends You Can’t Afford to Ignore in 2025
DIGITALCONFEX
 
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
Ad

Connecting to the pulse of the planet with Twitter APIs

  • 1. Connecting to the pulse of the planet @andypiper Twitter APIs Andy Piper Developer Advocate @andypiper | #hackferencebrum
  • 3. @andypiper 255M+ Active users 500M+ Tweets per day 77% of users are outside the US 2006 2014
  • 4. @andypiper 143,199 Tweets per second 5,700 TPS on average
  • 5. @andypiper Twitter is global, open and real-time
  • 6. Twitter is the shortest distance between you (@) and what interests you most (#) @andypiper
  • 7. @andypiper Twitter is there at world events
  • 12. @andypiper Twitter is the pulse of the planet
  • 14. @andypiper The Twitter platform and the Internet of Things
  • 16. @andypiper from plants… to ferries…
  • 20. @andypiper Objects bring tweets to the physical world
  • 24. @andypiper Object interactions can be driven by tweets https://twitter.com/apistrat/status/449159950049480704
  • 25. Twitter is a great I/O channel @andypiper for the IoT https://www.flickr.com/photos/pulpolux/208661236
  • 26. Twitter APIs deal both with the right now and what happened @andypiper
  • 27. @andypiper Streaming APIs allow you to ingest what’s happening right now
  • 28. @andypiper Streaming APIs allow you to ingest what’s happening right now POST https://stream.twitter.com/1.1/statuses/filter.json follow: 3946301 track: #hackference locations: 13.3773,52.5202,13.3979,52.5150 Data:
  • 29. @andypiper Streaming APIs allow you to ingest what’s happening right now GET https://stream.twitter.com/1.1/statuses/sample.json Returns ~1% of all firehose data, statistically relevant.
  • 30. @andypiper Streaming APIs allow you to ingest what’s happening right now GET https://stream.twitter.com/1.1/statuses/firehose.json Returns all firehose data, requires business deal.
  • 31. @andypiper Streaming APIs allow you to ingest what’s happening right now {"created_at":"Sun Dec 01 21:44:59 +0000 2013","id":407264085194330112,"id_str":"407264085194330112","text":"u201c@DM_Minions: The minion mobile! http://t.co/Tq8AQoXcVyu201d shall I get it, @CourtneyLouu ud83dude0fud83dude18","source":"u003ca href="http://twitter.com/download/iphone" rel="nofollow"u003eTwitter for iPhoneu003c/au003e","truncated":false,"in_reply_to_status_id":407263303405023232,"in_reply_to_status_id_str":"407263303405023232","in_reply_to_user_id": 948825632,"in_reply_to_user_id_str":"948825632","in_reply_to_screen_name":"DM_Minions","user":{"id":404024178,"id_str":"404024178","name":"emilyjade","screen_name":"_emilyjade","location":"","url":null,"description":"'what is essential, is invisible to the eye'","protected":false,"followers_count":156,"friends_count":287,"listed_count":0,"created_at":"Thu Nov 03 10:18:49 +0000 2011","favourites_count":379,"utc_offset":null,"time_zone":null,"geo_enabled":true,"verified":false,"statuses_count": 8506,"lang":"en","contributors_enabled":false,"is_translator":false,"profile_background_color":"EBEBEB","profile_background_image_url":"http://abs.twimg.com/images/themes/theme7/bg.gif","profile_background_image_url_https":"https://abs.twimg.com/ images/themes/theme7/bg.gif","profile_background_tile":false,"profile_image_url":"http://pbs.twimg.com/profile_images/378800000811908687/bc82e20db7c7812a1f61f72998f948e9_normal.jpeg","profile_image_url_https":"https://pbs.twimg.com/ profile_images/378800000811908687/bc82e20db7c7812a1f61f72998f948e9_normal.jpeg","profile_banner_url":"https://pbs.twimg.com/profile_banners/404024178/ 1385914936","profile_link_color":"990000","profile_sidebar_border_color":"DFDFDF","profile_sidebar_fill_color":"F3F3F3","profile_text_color":"333333","profile_use_background_image":true,"default_profile":false,"default_profile_image":false,"following":nul l,"follow_request_sent":null,"notifications":null},"geo":{"type":"Point","coordinates":[51.35264663,-1.15710757]},"coordinates":{"type":"Point","coordinates":[-1.15710757,51.35264663]},"place":{"id":"d009bfdb11c20f3e","url":"https://api.twitter.com/ 1.1/geo/id/d009bfdb11c20f3e.json","place_type":"city","name":"Basingstoke and Deane","full_name":"Basingstoke and Deane, Hampshire","country_code":"GB","country":"United Kingdom","contained_within":[],"bounding_box":{"type":"Polygon","coordinates": [[[-1.4601689999999998,51.133537999999994],[-1.4601689999999998,51.383949],[-0.9748119999999999,51.383949],[-0.9748119999999999,51.133537999999994]]]},"attributes":{}},"contributors":null,"retweet_count":0,"favorite_count":0,"entities":{"hashtags": [],"symbols":[],"urls":[],"user_mentions":[{"screen_name":"DM_Minions","name":"DespicableMe Minions","id":948825632,"id_str":"948825632","indices":[1,12]},{"screen_name":"CourtneyLouu","name":"coourts","id":43456930,"id_str":"43456930","indices": [73,86]}],"media":[{"id":407263303325335552,"id_str":"407263303325335552","indices":[33,55],"media_url":"http://pbs.twimg.com/media/Babj0QzCQAAMrX4.jpg","media_url_https":"https://pbs.twimg.com/media/Babj0QzCQAAMrX4.jpg","url":"http://t.co/ Tq8AQoXcVy","display_url":"pic.twitter.com/Tq8AQoXcVy","expanded_url":"http://twitter.com/DM_Minions/status/407263303405023232/photo/1","type":"photo","sizes":{"small":{"w":339,"h":236,"resize":"fit"},"large":{"w":958,"h": 666,"resize":"fit"},"thumb":{"w":150,"h":150,"resize":"crop"},"medium":{"w":599,"h":417,"resize":"fit"}},"source_status_id": 407263303405023232,"source_status_id_str":"407263303405023232"}]},"favorited":false,"retweeted":false,"possibly_sensitive":false,"filter_level":"medium","lang":"en"} {"created_at":"Sun Dec 01 21:44:59 +0000 2013","id":407264086347747328,"id_str":"407264086347747328","text":"@DannyArratoon already eaten it but you can bring me another one?","source":"u003ca href="http://twitter.com/download/iphone" rel= "nofollow"u003eTwitter for iPhoneu003c/au003e","truncated":false,"in_reply_to_status_id":407263944844533761,"in_reply_to_status_id_str":"407263944844533761","in_reply_to_user_id": 210579473,"in_reply_to_user_id_str":"210579473","in_reply_to_screen_name":"DannyArratoon","user":{"id": 495068253,"id_str":"495068253","name":"eleanor","screen_name":"ell_eysselinck","location":"london","url":null,"description":null,"protected":false,"followers_count":430,"friends_count":345,"listed_count":0,"created_at":"Fri Feb 17 15:23:34 +0000 2012","favourites_count":3934,"utc_offset":0,"time_zone":"London","geo_enabled":true,"verified":false,"statuses_count": 7800,"lang":"en","contributors_enabled":false,"is_translator":false,"profile_background_color":"000000","profile_background_image_url":"http://a0.twimg.com/profile_background_images/635582704/ nud5dpj44ngj5bgv5k55.jpeg","profile_background_image_url_https":"https://si0.twimg.com/profile_background_images/635582704/nud5dpj44ngj5bgv5k55.jpeg","profile_background_tile":true,"profile_image_url":"http://pbs.twimg.com/profile_images/ 378800000812022272/b0218f45cb51525440be4f5782aaba6b_normal.jpeg","profile_image_url_https":"https://pbs.twimg.com/profile_images/378800000812022272/b0218f45cb51525440be4f5782aaba6b_normal.jpeg","profile_banner_url":"https://pbs.twimg.com/ profile_banners/495068253/ 1378837388","profile_link_color":"EB091C","profile_sidebar_border_color":"C0DEED","profile_sidebar_fill_color":"DDEEF6","profile_text_color":"333333","profile_use_background_image":true,"default_profile":false,"default_profile_image":false,"following":nul l,"follow_request_sent":null,"notifications":null},"geo":{"type":"Point","coordinates":[51.37097685,-0.21992044]},"coordinates":{"type":"Point","coordinates":[-0.21992044,51.37097685]},"place":{"id":"8840213b5fc1032a","url":"https://api.twitter.com/ 1.1/geo/id/8840213b5fc1032a.json","place_type":"city","name":"Sutton","full_name":"Sutton, London","country_code":"GB","country":"United Kingdom","contained_within":[],"bounding_box":{"type":"Polygon","coordinates": [[[-0.24586899999999998,51.321324999999995],[-0.24586899999999998,51.393378999999996],[-0.117306,51.393378999999996],[-0.117306,51.321324999999995]]]},"attributes":{}},"contributors":null,"retweet_count":0,"favorite_count":0,"entities":{"hashtags": [],"symbols":[],"urls":[],"user_mentions":[{"screen_name":"DannyArratoon","name":"Danny","id":210579473,"id_str":"210579473","indices":[0,14]}]},"favorited":false,"retweeted":false,"filter_level":"medium","lang":"en"} {"created_at":"Sun Dec 01 21:44:59 +0000 2013","id":407264087085953025,"id_str":"407264087085953025","text":"@brontemaria22 #firstin","source":"u003ca href="http://twitter.com/download/iphone" rel="nofollow"u003eTwitter for iPhoneu003c/a u003e","truncated":false,"in_reply_to_status_id":407262865251643392,"in_reply_to_status_id_str":"407262865251643392","in_reply_to_user_id":771468884,"in_reply_to_user_id_str":"771468884","in_reply_to_screen_name":"brontemaria22","user":{"id": 442104599,"id_str":"442104599","name":"zolf","screen_name":"FleurMarie32","location":"","url":null,"description":null,"protected":false,"followers_count":360,"friends_count":238,"listed_count":0,"created_at":"Tue Dec 20 19:13:40 +0000 2011","favourites_count":563,"utc_offset":null,"time_zone":null,"geo_enabled":true,"verified":false,"statuses_count": 3092,"lang":"en","contributors_enabled":false,"is_translator":false,"profile_background_color":"BADFCD","profile_background_image_url":"http://a0.twimg.com/profile_background_images/622665567/ 46ehgxq1mfildvuk2ots.jpeg","profile_background_image_url_https":"https://si0.twimg.com/profile_background_images/622665567/46ehgxq1mfildvuk2ots.jpeg","profile_background_tile":true,"profile_image_url":"http://pbs.twimg.com/profile_images/ 378800000689641927/ed04861205ea2348e935d4a0b0a198e5_normal.jpeg","profile_image_url_https":"https://pbs.twimg.com/profile_images/378800000689641927/ed04861205ea2348e935d4a0b0a198e5_normal.jpeg","profile_banner_url":"https://pbs.twimg.com/ profile_banners/442104599/ 1383498191","profile_link_color":"FF0000","profile_sidebar_border_color":"F2E195","profile_sidebar_fill_color":"FFF7CC","profile_text_color":"0C3E53","profile_use_background_image":true,"default_profile":false,"default_profile_image":false,"following":nul l,"follow_request_sent":null,"notifications":null},"geo":{"type":"Point","coordinates":[51.24861223,0.06772169]},"coordinates":{"type":"Point","coordinates":[0.06772169,51.24861223]},"place":{"id":"5747f33800b71f4b","url":"https://api.twitter.com/1.1/ geo/id/5747f33800b71f4b.json","place_type":"city","name":"Sevenoaks","full_name":"Sevenoaks, Kent","country_code":"GB","country":"United Kingdom","contained_within":[],"bounding_box":{"type":"Polygon","coordinates":[[[0.033526,51.131789999999995], [0.033526,51.417970999999994],[0.344761,51.417970999999994],[0.344761,51.131789999999995]]]},"attributes":{}},"contributors":null,"retweet_count":0,"favorite_count":0,"entities":{"hashtags":[{"text":"firstin","indices":[15,23]}],"symbols":[],"urls": [],"user_mentions":[{"screen_name":"brontemaria22","name":"bronteee","id":771468884,"id_str":"771468884","indices":[0,14]}]},"favorited":false,"retweeted":false,"filter_level":"medium","lang":"en"} {"created_at":"Sun Dec 01 21:44:59 +0000 2013","id":407264087404707840,"id_str":"407264087404707840","text":"Totally forgot about all this stuff.","source":"u003ca href="http://twitter.com/download/iphone" rel="nofollow"u003eTwitter for iPhone u003c/au003e","truncated":false,"in_reply_to_status_id":null,"in_reply_to_status_id_str":null,"in_reply_to_user_id":null,"in_reply_to_user_id_str":null,"in_reply_to_screen_name":null,"user":{"id":45353664,"id_str":"45353664","name":"Jay Ferry","screen_name":"Jay_fezz","location":"London ","url":"http://www.facebook.com/jay_fezz","description":"Baker. Not A Candle Stick Maker. Im Perfectly Dysfunctional","protected":false,"followers_count":166,"friends_count":635,"listed_count": 24,"created_at":"Sun Jun 07 15:06:56 +0000 2009","favourites_count":56,"utc_offset":0,"time_zone":"London","geo_enabled":true,"verified":false,"statuses_count": 5758,"lang":"en","contributors_enabled":false,"is_translator":false,"profile_background_color":"BF1238","profile_background_image_url":"http://a0.twimg.com/profile_background_images/552535875/wcbs.jpg","profile_background_image_url_https":"https://
  • 32. @andypiper Tweet: 140 characters ~4KB of information { "created_at": "Wed Oct 02 15:53:43 +0000 2013", "id": 385432417126739968, "id_str": "385432417126739968", "text": "Learn more about the powerful #Linux container engine @docker in this video intro with @solomonstre - http://t.co/QJLdA1762Y @TwitterOSS", "source": "web", "truncated": false, "in_reply_to_status_id": null, "in_reply_to_status_id_str": null, "in_reply_to_user_id": null, "in_reply_to_user_id_str": null, "in_reply_to_screen_name": null, "user": { "id": 1665823832, "id_str": "1665823832", "name": "Twitter University", "screen_name": "university", "location": "", "description": "Building a culture of learning for @TwitterEng and the world at large", "url": "http://t.co/c8IHJLE1Y8", "entities": { "url": { "urls": [{ "url": "http://t.co/c8IHJLE1Y8", "expanded_url": "http://youtube.com/twitteruniversity", "display_url": "youtube.com/twitteruniversu2026", "indices": [0, 22] }] },
  • 33. REST APIs let you perform actions @andypiper and look at what happened
  • 34. REST APIs let you perform actions @andypiper and look at what happened Tweets GET statuses/show/:id POST statuses/update Timelines GET statuses/home_timeline GET statuses/user_timeline GET statuses/mentions_timeline Search GET search/tweets … Users, Favorites, Direct Messages, Followings & Followers, Lists, Saved Searches, Trends, Geo, Spam Reporting
  • 35. @andypiper Enrich mobile apps with live contextual data from Twitter
  • 37. @andypiper The Human Sensor Network People are talking about the Golden Gate bridge. Most used words: blocked, closed, police, detour. Should I re-route your path?
  • 38. @andypiper The Human Sensor Network Spike of tweets around a location 5 miles in front of you. #festival #parking #sucks #cold
  • 39. @andypiper Networked Transportation New DM from Zipcar. Want to drop current car at location Stanyan and Haight? Switch to Blue Prius and add 2 hours to your location for free
  • 40. Context Aware Transportation Based on your recent tweets, would you like us to book your Car2Go later today at 7pm around Howard and 11th @andypiper
  • 41. Context Aware Transportation Based on your recent tweets, would you like us to book a ride with this Sunday? @andypiper
  • 42. Let’s talk code! :) @andypiper
  • 48. @andypiper Useful links Automation best practices t.co/automate Developer Rules of the Road t.co/develror
  • 49. @andypiper More resources Streaming APIs t.co/streaming REST API t.co/rest Create apps t.co/apps Open Source @Twitter t.co/opensource Developer discussions t.co/discuss Certified Products t.co/certified