Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Twitter API: REST and Streaming, what's the difference?

Tags:

twitter

Could anyone please summarize the differences between Twitter's REST API and its Streaming API?

And does either of them uses Push technology?

like image 837
Shuo Avatar asked Mar 23 '11 03:03

Shuo


People also ask

What is the difference between REST API and streaming API?

The difference between REST APIs and streaming APIs is: Streaming APIs updates are sent to the consumer when an event happens. REST APIs operate in a client-server architecture.

What is the difference between Twitter search API and streaming API?

With a specific keyword, you can typically only poll the last 5,000 tweets per keyword. Unlike Twitter's Search API where you are polling data from tweets that have already happened, Twitter's Streaming API is a push of data as tweets happen in near real-time.

What is the Twitter streaming API?

The Twitter API allows you to stream public Tweets from the platform in real-time so that you can display them and basic metrics about them.

CAN REST API be used for streaming?

The Wowza Streaming Engine™ software REST API allows you to configure nearly all functionality for your streaming needs, while also monitoring overall server utilization. Please note: Wowza offers the REST API per server, so customers need to configure each server independently for their service.


2 Answers

The REST API lets you query or modify a user's account. You don't need their permission to query their account, you do need it to modify their account. They provide permission through OAuth authentication.

The streaming API delivers tweets based on search terms or for specific users you request, along with info about the author, in real-time. You do not need the tweet author's permission. You must log into some Twitter account to use streaming, using either basic or OAuth authentication.

Neither uses push, but streaming is a continuous net connection, so it is real-time delivery, making it functionally similar to push.

like image 154
Adam Green Avatar answered Nov 03 '22 10:11

Adam Green


For anybody coming to this more recently, The REST API (v1.0) has now been retired with v1.1 being the only version. This Does now require authentication for everything, including reads.

Authentication required on all endpoints

In version 1.1, we're requiring applications to authenticate all of their requests with OAuth 1.0a or Application-only authentication. Not only will this visibility allow us to prevent abusive behavior, but it will also help us to further understand how categories of applications are using the API. We'll apply that understanding to better meet the needs of developers as we continue to evolve the platform. At this time, all authentication requires user context, but in the coming weeks we'll be pushing out support for a form of authentication not requiring a user context.

like image 29
Liam Avatar answered Nov 03 '22 10:11

Liam