SlideShare a Scribd company logo
Jon Bulava
@jbulava
Editor-in-chief, Developer Relations @Twitter. Master of
web technology. Top it off with some photography and
video production.
Follow
- Why is Twitter important?
- API overview
- Organization
- Rate limits
- Versioning
- Demos
- Open discussion
AGENDA
- Connect your users with their interests
- Distribution on a global scale
- Open and real-time
WHY IS TWITTER IMPORTANT?
Streaming APIsREST APIs
API OVERVIEW
Ingest what’s
happening
right now
Perform
actions
Access what
happened
Public API
Media API
Collections API
TON API
API ORGANIZATION
Streaming APIsREST APIs
User streams
Site streams
Public streams
API ORGANIZATION
Streaming APIsREST APIs
POST statuses / filter
GET statuses / sample
GET statuses / firehose
User streams
Site streams
Public streams
GET site
GET user
Public API
GET statuses/user_timeline
GET statuses/show/:id
POST statuses/update
GET search/tweets
GET followers/list
GET trends/place
Media API
POST media/upload
POST media/upload (INIT)
POST media/upload (APPEND)
POST media/upload (FINALIZE)
POST media/metadata/create
GET media/upload (STATUS)
API RATE LIMITS
Streaming APIsREST APIs
Reasons for limiting:
• Backoff strategy not
implemented
• Frequent breaks and
reconnecting
• Too many connections
Limit notices
{
"limit":{
"track":1234
}
}
15 minute windows
Most limits are either:
• 15 calls / 15 minutes
• 180 calls / 15 minutes
Streaming APIsREST APIs Ads APIs
API VERSIONING
Ads APIs
API VERSIONING
• Frequent updates means aggressive versioning
• MAJOR and MINOR numbers used (e.g. 2.3)
• Backward incompatible increases MAJOR
• Backward compatible increases MINOR
• Only need to specify MAJOR number in call
Example:
https://ads-api.twitter.com/1/accounts/abc1/tailored_audiences
DEMO
Documentation
dev.twitter.com
Streaming API
t.co/streaming
REST API
t.co/rest
DEVELOPER RESOURCES
Create App
t.co/apps

Open Source Libs
t.co/libs
Code Examples
t.co/code
TwitterCommunity.com
Thank You
@jbulava

More Related Content

PDF
Trekr - final presentation
PPTX
Fragment me
 
KEY
Building Drupal Apps for Distributions
PPTX
Manual Testing
PDF
Building Native Apps With Titanium Mobile
PPTX
Stringcast Open
KEY
OpenACT - Meet1 - Intro to APIs
PPTX
YouTube API: Dive In
Trekr - final presentation
Fragment me
 
Building Drupal Apps for Distributions
Manual Testing
Building Native Apps With Titanium Mobile
Stringcast Open
OpenACT - Meet1 - Intro to APIs
YouTube API: Dive In

Similar to API-Craft NYC - Overview of the Twitter APIs with demos (20)

PPTX
Social mediaprogramming part2-java-jax-london
PDF
Seattle bot + Twitter data prezo
PDF
GSP East 2008: Open Social: Open For Business
PPT
Yahoo! Application Platform (YAP)
PDF
Twitch Extensions 101
PPTX
FGS 2011: Panel: Metrics From Top Game Developers
ODP
Confessions of-a-gadget-holic
PPT
Platform Play Web Social And Mobile For P Camp09
PDF
HackPR at UPR in Mayaguez - September 2015
PDF
Designing Your API
PPT
HTML5 based PivotViewer for Visualizing LInked Data
PPTX
Youtube api at Glance
PPTX
Yahoo Open Platform Stack
PDF
apidays LIVE Australia 2020 - Federating API Development at Australia’s large...
PDF
SoundCloud's Toolbox for Microservices
PDF
Devtribe a/ b testing on multiple platforms with recurring and paying users
PPT
the_wonderful_world_of_widgets-lawrence_coburn.ppt
PPT
API Strategy Presentation
PPT
YAP Overview - Startups
PDF
JOSA TechTalks - RESTful API Concepts and Best Practices
Social mediaprogramming part2-java-jax-london
Seattle bot + Twitter data prezo
GSP East 2008: Open Social: Open For Business
Yahoo! Application Platform (YAP)
Twitch Extensions 101
FGS 2011: Panel: Metrics From Top Game Developers
Confessions of-a-gadget-holic
Platform Play Web Social And Mobile For P Camp09
HackPR at UPR in Mayaguez - September 2015
Designing Your API
HTML5 based PivotViewer for Visualizing LInked Data
Youtube api at Glance
Yahoo Open Platform Stack
apidays LIVE Australia 2020 - Federating API Development at Australia’s large...
SoundCloud's Toolbox for Microservices
Devtribe a/ b testing on multiple platforms with recurring and paying users
the_wonderful_world_of_widgets-lawrence_coburn.ppt
API Strategy Presentation
YAP Overview - Startups
JOSA TechTalks - RESTful API Concepts and Best Practices
Ad

Recently uploaded (20)

PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Approach and Philosophy of On baking technology
PPT
Teaching material agriculture food technology
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PPTX
Spectroscopy.pptx food analysis technology
PPTX
Programs and apps: productivity, graphics, security and other tools
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Network Security Unit 5.pdf for BCA BBA.
DOCX
The AUB Centre for AI in Media Proposal.docx
PPTX
Big Data Technologies - Introduction.pptx
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PPTX
sap open course for s4hana steps from ECC to s4
“AI and Expert System Decision Support & Business Intelligence Systems”
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Review of recent advances in non-invasive hemoglobin estimation
Approach and Philosophy of On baking technology
Teaching material agriculture food technology
Dropbox Q2 2025 Financial Results & Investor Presentation
Spectroscopy.pptx food analysis technology
Programs and apps: productivity, graphics, security and other tools
Digital-Transformation-Roadmap-for-Companies.pptx
Network Security Unit 5.pdf for BCA BBA.
The AUB Centre for AI in Media Proposal.docx
Big Data Technologies - Introduction.pptx
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Advanced methodologies resolving dimensionality complications for autism neur...
NewMind AI Weekly Chronicles - August'25-Week II
sap open course for s4hana steps from ECC to s4
Ad

API-Craft NYC - Overview of the Twitter APIs with demos

  • 1. Jon Bulava @jbulava Editor-in-chief, Developer Relations @Twitter. Master of web technology. Top it off with some photography and video production. Follow
  • 2. - Why is Twitter important? - API overview - Organization - Rate limits - Versioning - Demos - Open discussion AGENDA
  • 3. - Connect your users with their interests - Distribution on a global scale - Open and real-time WHY IS TWITTER IMPORTANT?
  • 4. Streaming APIsREST APIs API OVERVIEW Ingest what’s happening right now Perform actions Access what happened
  • 5. Public API Media API Collections API TON API API ORGANIZATION Streaming APIsREST APIs User streams Site streams Public streams
  • 6. API ORGANIZATION Streaming APIsREST APIs POST statuses / filter GET statuses / sample GET statuses / firehose User streams Site streams Public streams GET site GET user Public API GET statuses/user_timeline GET statuses/show/:id POST statuses/update GET search/tweets GET followers/list GET trends/place Media API POST media/upload POST media/upload (INIT) POST media/upload (APPEND) POST media/upload (FINALIZE) POST media/metadata/create GET media/upload (STATUS)
  • 7. API RATE LIMITS Streaming APIsREST APIs Reasons for limiting: • Backoff strategy not implemented • Frequent breaks and reconnecting • Too many connections Limit notices { "limit":{ "track":1234 } } 15 minute windows Most limits are either: • 15 calls / 15 minutes • 180 calls / 15 minutes
  • 8. Streaming APIsREST APIs Ads APIs API VERSIONING
  • 9. Ads APIs API VERSIONING • Frequent updates means aggressive versioning • MAJOR and MINOR numbers used (e.g. 2.3) • Backward incompatible increases MAJOR • Backward compatible increases MINOR • Only need to specify MAJOR number in call Example: https://ads-api.twitter.com/1/accounts/abc1/tailored_audiences
  • 10. DEMO
  • 11. Documentation dev.twitter.com Streaming API t.co/streaming REST API t.co/rest DEVELOPER RESOURCES Create App t.co/apps
 Open Source Libs t.co/libs Code Examples t.co/code