DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
What's in store for DevOps in 2023? Hear from the experts in our "DZone 2023 Preview: DevOps Edition" on Fri, Jan 27!
Save your seat
  1. DZone
  2. Data Engineering
  3. Databases
  4. Taking a Fresh Look at the Twitter API

Taking a Fresh Look at the Twitter API

It's easy to think of Twitter's API being about tweeting, friends, following people, and hashtags, but they have an mix that tells a story about Twitter's journey.

Kin Lane user avatar by
Kin Lane
·
Oct. 17, 16 · Opinion
Like (4)
Save
Tweet
Share
4.59K Views

Join the DZone community and get the full member experience.

Join For Free

I am working on profiling the Twitter API again. I thought their stack of APIs has evolved significantly beyond what we tend to think of as the Twitter API, and was worth taking another look at. It is easy to think of the Twitter API being about tweeting, friends, following people, and #hashtags, but they have an interesting mix that I think tells its own story about Twitter's journey.

Here is the current Twitter API stack:

  • Public REST API: the public REST APIs provide programmatic access to read and write the Twitter data (what we think of when we talk about the Twitter API).
  • Media API: the API for managing photo, videos, or animated GIFs that are used by other Twitter API endpoints when tweeting, direct messaging, and others.
  • Collections API: the API for managing collections of tweets to tell specific stories, providing a single URL that represents each Twitter collection.
  • The TON (Twitter Object Nest) API: allowing implementers to upload media and various assets to Twitter, allowing for resumable, and single file uploads.
  • Curator API: provides broadcasters their curator-created streams for on-air graphics systems, or other digital displays. 
  • Streaming APIs: deliver new responses to REST API queries over a long-lived HTTP connection, providing a regular stream of tweets from the platform.
  • Ads API: the ads API gives partners a way to integrate Twitter advertising management in their product. Selected partners have the ability create their own tools to manage Twitter Ad campaigns while easily integrating into existing, cross-channel advertising management solutions.
  • Gnip: Gnip is Twitter’s enterprise API platform, delivering real-time and historical Twitter firehose data for large use applications.

It is interesting to think about Twitter's long API evolution that got them here. I hear people often reference Twitter as the most extreme example of a public API out there. Granted, it is definitely the original example and has a very public element to it, but it also has several APIs that require partner status or special permissions to access the documentation available publicly. This is pushing back on the Twitter stereotype often used when we discuss APIs.

While most API providers will never reach Twitter scale, I think there are lessons in growth present here: that you don't always have to be 100% public, that you'll probably need streaming and higher volume solutions, including sensible handling of heavy media objects like images and video, as well as make money (do not forget to make money). It makes me sad that monetization on the Twitter platform is all about advertising, a huge missed opportunity for them in my opinion, but the advertising API is still worth documenting alongside the others.

OK, that concludes my fresh look at the Twitter API stack. I'm going through each of them and documenting all available endpoints while profiling their current approach to the business of API operations. I figured that I better document everything before they get purchased by someone for Christmas. I haven't heard back on my offer yet, so I'm guessing I was outbid. 

API twitter Fresh (IDE)

Published at DZone with permission of Kin Lane, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • How to Develop a Portrait Retouching Function
  • Why Does DevOps Recommend Shift-Left Testing Principles?
  • A Guide To Successful DevOps in Web3
  • The Future of Cloud Engineering Evolves

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends: