SlideShare ist ein Scribd-Unternehmen logo
1 von 13
Downloaden Sie, um offline zu lesen
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

Weitere ähnliche Inhalte

Ähnlich wie API-Craft NYC - Overview of the Twitter APIs with demos

Social mediaprogramming part2-java-jax-london
Social mediaprogramming part2-java-jax-londonSocial mediaprogramming part2-java-jax-london
Social mediaprogramming part2-java-jax-london
Khanderao Kand
 
the_wonderful_world_of_widgets-lawrence_coburn.ppt
the_wonderful_world_of_widgets-lawrence_coburn.pptthe_wonderful_world_of_widgets-lawrence_coburn.ppt
the_wonderful_world_of_widgets-lawrence_coburn.ppt
zachbrowne
 

Ähnlich wie API-Craft NYC - Overview of the Twitter APIs with demos (20)

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

Kürzlich hochgeladen

Kürzlich hochgeladen (20)

Intro in Product Management - Коротко про професію продакт менеджера
Intro in Product Management - Коротко про професію продакт менеджераIntro in Product Management - Коротко про професію продакт менеджера
Intro in Product Management - Коротко про професію продакт менеджера
 
1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT
1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT
1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT
 
WebAssembly is Key to Better LLM Performance
WebAssembly is Key to Better LLM PerformanceWebAssembly is Key to Better LLM Performance
WebAssembly is Key to Better LLM Performance
 
Long journey of Ruby Standard library at RubyKaigi 2024
Long journey of Ruby Standard library at RubyKaigi 2024Long journey of Ruby Standard library at RubyKaigi 2024
Long journey of Ruby Standard library at RubyKaigi 2024
 
Overview of Hyperledger Foundation
Overview of Hyperledger FoundationOverview of Hyperledger Foundation
Overview of Hyperledger Foundation
 
ADP Passwordless Journey Case Study.pptx
ADP Passwordless Journey Case Study.pptxADP Passwordless Journey Case Study.pptx
ADP Passwordless Journey Case Study.pptx
 
Working together SRE & Platform Engineering
Working together SRE & Platform EngineeringWorking together SRE & Platform Engineering
Working together SRE & Platform Engineering
 
Microsoft CSP Briefing Pre-Engagement - Questionnaire
Microsoft CSP Briefing Pre-Engagement - QuestionnaireMicrosoft CSP Briefing Pre-Engagement - Questionnaire
Microsoft CSP Briefing Pre-Engagement - Questionnaire
 
(Explainable) Data-Centric AI: what are you explaininhg, and to whom?
(Explainable) Data-Centric AI: what are you explaininhg, and to whom?(Explainable) Data-Centric AI: what are you explaininhg, and to whom?
(Explainable) Data-Centric AI: what are you explaininhg, and to whom?
 
Design Guidelines for Passkeys 2024.pptx
Design Guidelines for Passkeys 2024.pptxDesign Guidelines for Passkeys 2024.pptx
Design Guidelines for Passkeys 2024.pptx
 
TopCryptoSupers 12thReport OrionX May2024
TopCryptoSupers 12thReport OrionX May2024TopCryptoSupers 12thReport OrionX May2024
TopCryptoSupers 12thReport OrionX May2024
 
Event-Driven Architecture Masterclass: Integrating Distributed Data Stores Ac...
Event-Driven Architecture Masterclass: Integrating Distributed Data Stores Ac...Event-Driven Architecture Masterclass: Integrating Distributed Data Stores Ac...
Event-Driven Architecture Masterclass: Integrating Distributed Data Stores Ac...
 
Extensible Python: Robustness through Addition - PyCon 2024
Extensible Python: Robustness through Addition - PyCon 2024Extensible Python: Robustness through Addition - PyCon 2024
Extensible Python: Robustness through Addition - PyCon 2024
 
ERP Contender Series: Acumatica vs. Sage Intacct
ERP Contender Series: Acumatica vs. Sage IntacctERP Contender Series: Acumatica vs. Sage Intacct
ERP Contender Series: Acumatica vs. Sage Intacct
 
Event-Driven Architecture Masterclass: Challenges in Stream Processing
Event-Driven Architecture Masterclass: Challenges in Stream ProcessingEvent-Driven Architecture Masterclass: Challenges in Stream Processing
Event-Driven Architecture Masterclass: Challenges in Stream Processing
 
Portal Kombat : extension du réseau de propagande russe
Portal Kombat : extension du réseau de propagande russePortal Kombat : extension du réseau de propagande russe
Portal Kombat : extension du réseau de propagande russe
 
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdf
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdfIntroduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdf
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdf
 
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...
 
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...
 
Your enemies use GenAI too - staying ahead of fraud with Neo4j
Your enemies use GenAI too - staying ahead of fraud with Neo4jYour enemies use GenAI too - staying ahead of fraud with Neo4j
Your enemies use GenAI too - staying ahead of fraud with Neo4j
 

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